REST API on 4.3

James December 15, 2015

Im trying to get my reST php program to ork with out production jira.

This works:curl -u zaasadmin:nagios https://zafindev.com/jira/rest/api/latest/issue/NTJ-1.json

but this doesnt – but it does work on jira7.0

[curl -D- -u zaasadmin:nagios --data @mkissuedatafile -H "Content-Type: application/json" https://zafindev.com/jira/rest/api/latest/issue/
HTTP/1.1 405 Method Not Allowed
Server: Apache-Coyote/1.1
X-AREQUESTID: 940x181150x1
Set-Cookie: JSESSIONID=C6AE356453C5C85E43A4C5061F92CC92; Path=/; Secure
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=AKZE-MI2G-0ILZ-Q016|ed1dd069625462a35803df7d55051e9712164dff|lin; Path=/jira
X-AUSERNAME: zaasadmin
Allow: OPTIONS
Content-Type: text/html;charset=utf-8
Content-Length: 980
Date: Tue, 15 Dec 2015 15:40:23 GMT

<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>[root@zsms-t01 test]#

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 15, 2015

The REST API for 4.3 and 7.0 is very different, even the urls are not the same.  Try coding for the urls and calls over at https://docs.atlassian.com/jira/REST/4.3/

Suggest an answer

Log in or Sign up to answer