Strange behavior of REST API

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
IuriyLb
Posts: 11
Joined: 25 Dec 2019, 19:52

Strange behavior of REST API

Post by IuriyLb »

1. If I send a request to /api/rest without token, I get "401 API token required"
2. If I send a request to /api/rest with the wrong token, I get "403 API token not found"
3. If I send a request to /api/rest with the correct token, I get "Page Not Found. The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our home page at the link below. "

4. If I send a request to /api/rest/projects/ with the correct token, then I get the authorization page.

As far as I understand, the first three cases work fine, but the last one - something is wrong. It looks like the /projects/ API does not exist and throws me into the usual authorization scenario.

What I'm doing wrong?
TerranceM
Posts: 26
Joined: 27 Aug 2019, 13:55
Location: USA

Re: Strange behavior of REST API

Post by TerranceM »

What version you are using?
Post Reply