Since you're using postman, I'm assuming you're in a dev environment. In this case, it might be simpler to get going with the auth header, which is a base-64 encoded username/password. From the documentation here:
Supplying Basic Auth headers
If you need to you may construct and send basic auth headers yourself. To do this you need to perform the following steps:
Build a string of the form username:password
Base64 encode the string
Supply an "Authorization" header with content "Basic " followed by the encoded string. For example, the string "fred:fred" encodes to "ZnJlZDpmcmVk" in base64, so you would make the request as follows.
curl -D- -X GET -H "Authorization: Basic ZnJlZDpmcmVk" -H "Content-Type: application/json" "http://kelpie9:8081/rest/api/2/issue/QA-31"
In the Headers
section of Postman, add Authorization
with Basic <base64-encoded-username:password>
Don't forget to also add the header Content-Type
as application/json
(You can use base64encode.org to quickly encode your username/password).
Don't forget to put the string in as username-colon-password (username:password
)
raw
and settingcontent-type
toapplication/json
? what response do you get? – Michele Ricciardi Oct 12 '16 at 22:15http://localhost:8090/jira/rest/auth/1/session
– Michele Ricciardi Oct 12 '16 at 22:19