172 lines
3.4 KiB
JSON
172 lines
3.4 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "62121509-c7ee-4d92-9684-337a1d96a6ac",
|
|
"name": "MantisBT",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
|
|
"_exporter_id": "39926215"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Create Token",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "beHEFeDe-eE0YdTIK098naY0-iirvISx",
|
|
"type": "text",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "YdTsu-wuBfc4ekVDZpfk0K4dvjmoH6Z-",
|
|
"type": "text",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "DBSC0FHDatcHiScox5vm2GPuNnNrezqM",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "http://localhost/mantisBT/api/rest/users/:user_id/token",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"path": [
|
|
"mantisBT",
|
|
"api",
|
|
"rest",
|
|
"users",
|
|
":user_id",
|
|
"token"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "user_id",
|
|
"value": "5",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Create issue",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "beHEFeDe-eE0YdTIK098naY0-iirvISx",
|
|
"type": "text",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "YdTsu-wuBfc4ekVDZpfk0K4dvjmoH6Z-",
|
|
"type": "text",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "GefLBxeHyHDL9DXkGqX4qQ7Cayquqdaj",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\r\n \"summary\": \"ATM Fault\",\r\n \"description\": \"ATM Fault\",\r\n \"additional_information\": \"{ATM ID : 678UCBA00988, debit_card : 600226543567}\",\r\n \"steps_to_reproduce\" :\"Money got debited from account\",\r\n \"project\": {\r\n \"id\": 1\r\n }\r\n}\r\n",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": "http://localhost/mantisBT/api/rest/issues/"
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get a issue by issue id",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "GefLBxeHyHDL9DXkGqX4qQ7Cayquqdaj",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "http://localhost/mantisBT/api/rest/issues/:issue_id",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"path": [
|
|
"mantisBT",
|
|
"api",
|
|
"rest",
|
|
"issues",
|
|
":issue_id"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "issue_id",
|
|
"value": "43"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "post note",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "DBSC0FHDatcHiScox5vm2GPuNnNrezqM",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\r\n \"text\": \"test note\",\r\n \"view_state\": {\r\n \t\"name\": \"public\"\r\n }\r\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost/mantisBT/api/rest/issues/:issue_id/notes",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"path": [
|
|
"mantisBT",
|
|
"api",
|
|
"rest",
|
|
"issues",
|
|
":issue_id",
|
|
"notes"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "issue_id",
|
|
"value": "43"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
} |