{ "uuid": "4c04c4f7-f993-4850-bbe2-33794046d700", "lastMigration": 19, "name": "M-Bus HTTPD API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "1fe7dc59-cc91-4cf4-bbb9-0c5e1e72931a", "documentation": "Returns this API specification", "method": "get", "endpoint": "mbus/api", "responses": [ { "uuid": "29396141-22ff-4067-96b4-03c655cb8dcb", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "text/x-yaml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0020889b-11df-4c5a-a332-d3ad291cee68", "body": "", "latency": 0, "statusCode": 404, "label": "Not found", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "1fd279c7-a63f-4f2e-a31d-595e54b5988e", "documentation": "Gets data from the slave identified by {address}", "method": "post", "endpoint": "mbus/get/:device/:baudrate/:address", "responses": [ { "uuid": "84071ddb-51ce-4ea5-a5b1-ad2b5c3b6aef", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0e47d190-220f-4b34-8ea2-4f819710ac00", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "067937a8-3239-4f2b-88c0-0318064c094e", "body": "", "latency": 0, "statusCode": 404, "label": "Not found (or M-Bus HTTPD is unauthorized to access it, or to change baud rate to that specified, etc)", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "41864a39-b867-4224-b617-aca1cdd0c6d2", "documentation": "Gets data from the slave identified by {address}, and supports multiple responses from the slave", "method": "post", "endpoint": "mbus/getMulti/:device/:baudrate/:address/:maxframes", "responses": [ { "uuid": "9efffc55-94a6-47d7-8171-30aa0050ce67", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "38a1da2b-09e9-42b6-9523-c370ad083176", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "b54c5d68-7f3e-4ce6-b149-fa42c3f0374c", "body": "", "latency": 0, "statusCode": 404, "label": "Not found (or M-Bus HTTPD is unauthorized to access it, or to change baud rate to that specified, etc)", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "13ab7612-083f-4d6e-885c-dae45bc9bd3f", "documentation": "Gets Raspberry Pi Hat information", "method": "get", "endpoint": "mbus/hat", "responses": [ { "uuid": "aa12f5d1-19ee-4ce1-9351-21a85c66d0f8", "body": "{\n \"addr\": 30,\n \"enabled\": true,\n \"index\": 1\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "eb596326-a46c-4933-8034-178a0d4fa93f", "body": "", "latency": 0, "statusCode": 404, "label": "Not found", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "e7b9d193-b029-4553-8022-354bcce26623", "documentation": "Turns off power to the M-Bus", "method": "post", "endpoint": "mbus/hat/off", "responses": [ { "uuid": "4c40906f-92fc-4f9b-aa32-a0fc9c61b893", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "37440110-e2f5-4bab-9ede-bd74e5ff4f77", "body": "", "latency": 0, "statusCode": 404, "label": "Not found", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "36bd113e-73f0-4467-9119-87cc68d56ac4", "documentation": "Turns on power to the M-Bus", "method": "post", "endpoint": "mbus/hat/on", "responses": [ { "uuid": "52ccf78a-05b5-4e81-aa67-7c515e7a5bb8", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "fbfb6074-b655-4580-b0c2-0b0d30dcbb80", "body": "", "latency": 0, "statusCode": 404, "label": "Not found", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "3d224fb4-afcf-432d-93bd-e02520aac18a", "documentation": "Scan the specified device for slaves", "method": "post", "endpoint": "mbus/scan/:device/:baudrate", "responses": [ { "uuid": "c5b9a62a-3ff6-4420-b2c5-fa7c7ced5382", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ef99f712-d356-4683-adeb-a65d2966600f", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c3ff5809-5534-4cdd-969e-ff0d1de8a0f5", "body": "", "latency": 0, "statusCode": 404, "label": "Not found (e.g. device not found, or M-Bus HTTPD is unauthorized to access it, or to change baud rate to that specified, device not responding etc)", "headers": [ { "key": "Content-Type", "value": "text/plain" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ] }