Noob_test/Ticket Mock API.json

102 lines
2.5 KiB
JSON

{
"uuid": "51a1d02d-6cf4-4254-b0b6-5ec3400b8558",
"lastMigration": 33,
"name": "Ticket Mock API",
"endpointPrefix": "",
"latency": 0,
"port": 8080,
"hostname": "",
"folders": [],
"routes": [
{
"uuid": "75f18ed9-f146-456b-93f9-9de1f1a677c6",
"type": "http",
"documentation": "",
"method": "post",
"endpoint": "graphql",
"responses": [
{
"uuid": "50ff5216-ff57-41a6-9dad-d5a275cec327",
"body": "{\n \"data\": {\n \"createTicket\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"__typename\": \"TicketObject\",\n \"category\": {\n \"id\": \"{{body.variables.category_id}}\",\n \"title\": \"Техническая поддержка\"\n }\n }\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "body",
"modifier": "$.query",
"value": "\\bcreateTicket\\b",
"invert": false,
"operator": "regex"
}
],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": "FALLBACK",
"streamingMode": null,
"streamingInterval": 0
}
],
"rootChildren": [
{
"type": "route",
"uuid": "75f18ed9-f146-456b-93f9-9de1f1a677c6"
}
],
"proxyMode": true,
"proxyHost": "https://admin.dev.dipal.ru",
"proxyRemovePrefix": false,
"tlsOptions": {
"enabled": false,
"type": "CERT",
"pfxPath": "",
"certPath": "",
"keyPath": "",
"caPath": "",
"passphrase": ""
},
"cors": true,
"headers": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS"
},
{
"key": "Access-Control-Allow-Headers",
"value": "Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With"
}
],
"proxyReqHeaders": [
{
"key": "x-company-id",
"value": "65437401ae3af6f8ffcdbaf8"
}
],
"proxyResHeaders": [
{
"key": "",
"value": ""
}
],
"data": [],
"callbacks": []
}