REST APIs child are OK but main page returns 404 Edited

I can access all "children" from REST API, but when trying to connect to main page always got 404 error. I need this correct to use with Testlink.

I.e.: When I type the command below in my browser always got the correct JSON reply:

http://mypage.com:8080/rest/api/latest/user?username=myuser

{"self": "http://mypage.com:8080/rest/api/2/user?username=myuser","key": "myuser","name": "myname","emailAddress": "myemail","avatarUrls": {"16x16":

(...)

"displayName": "myname","active": true,"timeZone": "America/Sao_Paulo","groups": {"size": 24,"items": []},"expand": "groups"}

But when I type just the main page always got this:

http://mypage:8080/rest/api/latest/

<status>
 <status-code>404</status-code>
 <message>
 null for uri: http://mypage:8080/rest/api/latest/
 </message>
</status>

Please, what am I doing wrong?

1 answer

This widget could not be displayed.

Hi Evaldo,

I don't belive you're doing anything wrong.  When I go to the "parent" endpoint I get a 404 and an "Oops, you've found a dead link" page.  If I do this directly in the browser I get a blank page with no text.

Some endpoints are not publically available to hit which I'm assuming is what's going on here.  Reviewing the API documentation doesn't provide any mentions of directly accessing the "parent" end point as you can with createmeta, issue, etc.

Cheers,

Branden

Branden,

It seems the application I'm running is trying to get "myself" REST option, but the answer is error 404.

The option is on the link bellow:

https://developer.atlassian.com/static/rest/jira/6.1.html#d2e3408

What I'm getting in return is:

<status><status-code>404</status-code> <message>null for uri: http : // mypage.com:8080/rest/api/latest/myself</message></status>

Should I configure something else?

When I run the command bellow everything works perfectly:

http : / / mypage/jira/rest/api/latest/user?username=myuser



 

I resolved the issue changing my application php file to get user?username=myuser instead of myself.

Thanks a lot.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you