Strange behavior of REST API

General discussion of Mantis.

Moderators: Developer, Contributor

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

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: 25
Joined: Aug 27, 2019 8:55 am
Location: USA
Contact:

Re: Strange behavior of REST API

Post by TerranceM »

What version you are using?

Post Reply