Hi all,
I'm doing some simple experimenting with JIRA's REST API, and all I can seem to get is 404 errors. I'm using Basic Authentication. If I purposely corrupt the username or password, I get "401 - Basic Authentication Failure," so this suggests to me the URL is correct, the API exists and is ready to accept requests from authorized users like me. I've tried simple stuff like
curl -D- -u myname:mypassword -X GET -H "Content-Type: application/json" https://confluence.mycompany.net/rest/api/latest/myself
and
curl -D- -u myname:mypassword -X GET -H "Content-Type: application/json" https://confluence.mycompany.net/rest/api/latest/user?username=username
and other such things, and get nothing but a 404.
Any ideas about what I might be doing wrong?
Mmm, you appear to be using Jira REST urls to contact a Confluence system...
For Confluence, try /rest/api/content
For Jira, your REST urls look right, except for starting with Confluence.
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.
It took me a while to spot it! I was just fiddling with a REST interface and tried one of your calls which worked fine with localhost. Did it three times before noticing!
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.