Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I check my JIRA REST API is working or not?

Ayan Basak February 15, 2022

I want to check my JIRA REST API is properly working or not.

1 answer

1 accepted

1 vote
Answer accepted
Pramodh M
Community Champion
February 15, 2022

Hi @Ayan Basak 

To check whether API you have formulated to either get the data or update the data in Jira is proper you can add "-i" header flag which returns status code 200 if it's OK

For example - GET Issue returns details regarding Issue

 
curl -i --request GET \ 
--url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
 
Returns the Issue data along with header which contains Status as well
 
Let me know if you have any queries
 
Thanks,
Pramodh
Ayan Basak February 16, 2022

Thank you so much for your help. @Pramodh M 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events