Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackendRequestAdapter no possibility to build a GET request #192

Open
javalonde opened this issue Jun 21, 2021 · 1 comment
Open

BackendRequestAdapter no possibility to build a GET request #192

javalonde opened this issue Jun 21, 2021 · 1 comment

Comments

@javalonde
Copy link

Hi,

Am I wrong that there is no way to build a GET request with BackendRequestAdapter ?

I need for exampel get a list of projects:

/rest/api/3/project

Regards
Mik

@mcoqblin-hiptest
Copy link
Collaborator

Hello,

We are able to make GET requests correctly in our projects. Did you check the API endpoint you implemented on your side?

For clarification the custom API for BackendRequestAdapter is supposed to accept a POST request only, but in the request body will be specified the method and path of the request you wanted to make to Jira.

So in your case your API will be called with the following request body:

{
  method: 'GET',
  path: '/rest/api/3/project',
  data: {}
}

Then your API can use this information to make an actual call to Jira and forward the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants