Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA REST API returns 404

Angel Montenegro June 18, 2012

Hi, I'm trying to use the JIRA rest API to get a list of all projects, however, for all queries that i tried it returns 404 status.

In example http://<host>/rest/api/latest/project should return all project, however, it returns 404.

How do I know if the REST API is enabled? Shold the user be an administrator to access do REST calls?

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
RambanamP
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 19, 2012

The REST is not supported on jira 4.1.2, see the versions history

http://docs.atlassian.com/jira/REST/

SRIDHAR October 25, 2012

I am using Jira 5.0 and i am having the following problem. can you please help to resolve it.

C:\US\curl-7.23.1-win64-nossl>curl -D- -u admin:passwd -X POST --data @C:\Users\folder\Desktop\testRest.json -H "Content-Type: application/json" http://myjiraInstance:2990/rest/api/2/issue

HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Thu, 25 Oct 2012 17:58:16 GMT
Connection: close

RambanamP
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.
October 25, 2012

check the bellow link to know how to pass data

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+APIs

SRIDHAR October 26, 2012

I started working based on the same link as reference. I have turned ON Remote API. I am not able to figureout why i am still getiing bad request.

Tom Towkach October 26, 2012

What else does it say after the 404?

0 votes
SRIDHAR October 30, 2012

I am able to fix this. i am able to create issues using curl tool .

0 votes
Tom Towkach October 25, 2012

i get a 401. Do you have Remote API turned on?

kabelo June 5, 2018

How do turn that on?

0 votes
Angel Montenegro June 18, 2012

Am using version 4.1.2 of JIRA

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events