Api rest dont work. Using with nginx server and latest version mantisbt
Posted: 22 Mar 2023, 14:24
Mantis version: 2.25.6
nginx version 1.16.1
1) added a parameter that allows access to the REST in the config /config/config_inc.php :
2) I generated a token under the admin in BT
3) I added several APIs In Postman. One of them is getting a list of all projects.
4) I added a token to the APIs headers, and added my host to the URL
5) I send a request, get the code 200, but this is not json, this is the html of the login page..
What's wrong? Why does not it work?
nginx version 1.16.1
1) added a parameter that allows access to the REST in the config /config/config_inc.php :
Code: Select all
$g_webservice_rest_enabled = ON;
3) I added several APIs In Postman. One of them is getting a list of all projects.
4) I added a token to the APIs headers, and added my host to the URL
5) I send a request, get the code 200, but this is not json, this is the html of the login page..
What's wrong? Why does not it work?