Simple answer - install JIRA.
The REST API is available automatically, and is, in all currently supported versions, a requirement for a good part of the system to work.
There's nothing to "enable", it's already there, and you can't turn it off (without hacking core core)
Then, what is the default URL of JIRA? I was trying to access it from Jenkins at http://hostname:8080/rest/api/2/. I even tried http://hostname:8081/rest/api/2/ and http://hostname:8080/jira/rest/api/2/. But none of them helped me in getting the response. any help is really appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/
But, yes, it is <your jira base url>/rest/api/<version> so http://hostname:8080/rest/api/2/ is right, assuming a recent version of jira and a base url of http://hostname:8080
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any documentation for version 7.6.2? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try adjusting the url to see it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The REST URL just returnd HTTP Error 405.
That is useless.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your call to the REST API is incorrect, it's asking Jira to do something the API does not do - check the calls you are making are supported and valid, and that the account you are using has permission to perform the requested action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding the tag JIRA so you get more responses, karthik!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.