Strange behavior of REST API
Posted: 12 Jan 2020, 12:10
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?
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?