Provide a public REST API endpoint to access the same data returned by /gateway/api/v1/recommendations endpoint

XMLWordPrintable

    • Jira Software

      Summary

      The gateway/api/v1/recommendations endpoint autoCompleteUrl returned via the following endpoint and it is currently inaccessible from both the app back-end and front-end as it is an internal endpoint and returns 401 error when accessing via OAuth 2.0:

      Steps to Reproduce

      Make a call to the following endpoint via OAuth 2.0

      curl --location 'https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxxx'

      Using the response you got from the endpoint above, make a get request to the autoCompleteUrl via Oauth 2.0 like the ff:

      curl --location 'https://api.atlassian.com/ex/jira/{cloudId}/gateway/api/v1/recommendations' \
      --header 'Authorization: Bearer xxxxx' 

      Results When Accessing via OAuth 2.0

      When trying to access the /gateway/api/v1/recommendations endpoint via Bearer token, we get 401 error.

      { "code": 401,    "message": "Unauthorized"}

      Results When Accessing via Basic OAuth

      When trying to access the /gateway/api/v1/recommendations endpoint via Basic OAuth, we get 404 error.

       

      Oops, you've found a dead link.Go back to the previous pageGo to the Home PageAtlassian JIRA Project Management Software (v1001.0.0-SNAPSHOT#100266-Rev:417f29f)About JIRAReport a problemAtlassian
      

      Workaround

      Currently there is no workaround.

            Assignee:
            Unassigned
            Reporter:
            Rosa Faghihi (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: