Forums

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

I want to test the rest api of jira but getting 404 error when trying to access it

Mainak Sen June 15, 2020

This is my projects page in Jira cloud :

https://dawnofautomation.atlassian.net/secure/BrowseProjects.jspa?selectedProjectType=software

 

But when I am trying to access the rest api by https://dawnofautomation.atlassian.net/rest/api

or

https://dawnofautomation.atlassian.net/jira/rest/api  I am not being able to access the same 

The issue might be a very trivial one but I am not being able to find the cause .

Can you please help me out .

 

 

2 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2020

What happens when you try the urls that REST is actually available on?

Mainak Sen June 16, 2020

Thanks for your prompt response .

now its working ,can you please provide me with any documentation on how to authenticate Jira  cloud  with  anything apart from basic authentication .

I will be using rest-assured library to  automate my Jira API test cases ...

But I  do not want to use the basic authentication via API token which I have been doing . Is there any workaround ??

Any help  in this regard would be much appreciated .

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 16, 2020

I think Warren beat me to it - the guide he's pointed to shows you the urls you need to use and leads to authentication docs.

Like Dario B likes this
0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2020

Hi @Mainak Sen 

You haven't really said what you have done so far, which would help us to guide you. This is the REST API guide which will hopefully help you. If you are actually trying /rest/api with nothing beyond that, there's your problem - see the guide. What have you done in terms of authentication?

Finally, and I'm not sure one way or the other about this, but does the free product plan offer access to the API? I would think yes.

Mainak Sen June 16, 2020

Thanks for your response Warren

As part of my process of learning API testing,I was trying to comment an issue in Jira via Postman 

I authenticated via basic authentication providing username and my API token 

but while trying to  access issue I was getting 404 error .

Now its working .

Like Dario B likes this
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2020

Hi @Mainak Sen ,

Just to double-check, is further support needed or everything is now clear and you are able to add a comment using REST API? 

Cheers,
Dario

Mainak Sen June 21, 2020

Hi Dario.I am good regarding this  as of now .Thanks for your support . Referring the API guide.If i find any problem hereafter I will definitely let you know 

Like Dario B likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events