_ycebnaua_praktika1/openapi_mock.json
2023-06-03 20:50:55 +03:00

115 lines
3.2 KiB
JSON

{
"uuid": "5ea1e52b-5df9-4503-ab2c-6513fdc53d16",
"lastMigration": 27,
"name": "Mocks",
"endpointPrefix": "",
"latency": 0,
"port": 3001,
"hostname": "",
"folders": [],
"routes": [
{
"uuid": "ea43e328-6bbc-43ba-a12a-de222a28fd8b",
"type": "http",
"documentation": "",
"method": "get",
"endpoint": "sensval",
"responses": [
{
"uuid": "cead61d4-7745-455c-a3a9-cb8854cefcc2",
"body": "{\n \"LED1\": {{boolean}},\n \"LED2\": {{boolean}},\n \"LED3\": {{boolean}},\n \"button1State\": {{boolean}},\n \"button2State\": {{boolean}},\n \"button3State\": {{boolean}},\n \"temperature\": {{float 10 30}},\n \"pressure\": {{float 800 1200}},\n \"ambient_light\": {{int 0 255}},\n \"red_light\": {{int 0 255}},\n \"green_light\": {{int 0 255}},\n \"blue_light\": {{int 0 255}},\n \"lightness\": {{int 0 255}},\n \"acceleration_x\": {{float 0 1}},\n \"acceleration_y\": {{float 0 1}},\n \"acceleration_z\": {{float 0 1}},\n {{#repeat 8 comma=true}}\n \"leds{{add @index 1}}\": {\n \"red\": {{int 0 255}},\n \"green\": {{int 0 255}},\n \"blue\": {{int 0 255}}\n },\n {{/repeat}}\n}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "166a5c8a-d866-4e93-91c6-c9cf21fbbf04",
"type": "http",
"documentation": "",
"method": "post",
"endpoint": "postvalue",
"responses": [
{
"uuid": "a7ae227a-8ca7-49bc-8577-d30af6ee16e9",
"body": "POST body was:\n{{body}}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
}
],
"rootChildren": [
{
"type": "route",
"uuid": "ea43e328-6bbc-43ba-a12a-de222a28fd8b"
},
{
"type": "route",
"uuid": "166a5c8a-d866-4e93-91c6-c9cf21fbbf04"
}
],
"proxyMode": false,
"proxyHost": "",
"proxyRemovePrefix": false,
"tlsOptions": {
"enabled": false,
"type": "CERT",
"pfxPath": "",
"certPath": "",
"keyPath": "",
"caPath": "",
"passphrase": ""
},
"cors": true,
"headers": [],
"proxyReqHeaders": [
{
"key": "",
"value": ""
}
],
"proxyResHeaders": [
{
"key": "",
"value": ""
}
],
"data": []
}