Api rest dont work. Using with nginx server and latest version mantisbt

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
hzs
Posts: 1
Joined: 22 Mar 2023, 14:04

Api rest dont work. Using with nginx server and latest version mantisbt

Post by hzs »

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 :

Code: Select all

$g_webservice_rest_enabled = ON;
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?
Attachments
Captura de pantalla 2023-03-22 a las 15.24.03.png
Captura de pantalla 2023-03-22 a las 15.24.03.png (78.99 KiB) Viewed 1091 times
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Api rest dont work. Using with nginx server and latest version mantisbt

Post by atrol »

Might help some way viewtopic.php?t=28220
Please use Search before posting and read the Manual
Post Reply