502 Error REST API Postman

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
winjit.test
Posts: 1
Joined: 01 Nov 2018, 12:35

502 Error REST API Postman

Post by winjit.test »

I have installed mantis on my system. Below are the details.
Bitnami WAMP 7.1.23
Mantis Version: 2.18.0

In config_inc.php
$g_webservice_rest_enabled = ON;

IN Postman i am getting 502 Operation no permitted. Below is the JSON

In Header
Authorization" : Here i have added token created from My Account > Create API Token
Content-Type" : "application/json"

{
"summary": "Sample REST issue",
"description": "Description for sample REST issue.",
"additional_information": "More info about the issue",
"project": {
"id": 1,
"name": "demo"
},
"category": {
"id": 1,
"name": "general"
},
"handler": {
"name": "deepakv"
},
"view_state": {
"id": 10,
"name": "public"
},
"priority": {
"name": "normal"
},
"severity": {
"name": "trivial"
},
"reproducibility": {
"name": "always"
},
"sticky": false,
"tags": [
{
"name": "mantis"
}
]
}

and also when i am trying to access REST API (http://localhost/mantis/api/rest/index.php).
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.

Visit the Home Page
Post Reply