{"note":"OpenAPI conversion -- returning structured metadata","name":"mbus-local","description":"M-Bus HTTPD API","version":"0.3.5","base_url":"/","endpoints":7,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api M-Bus HTTPD API\n@base /\n@version 0.3.5\n@endpoints 7\n@toc mbus(7)\n\n@endpoint GET /mbus/api\n@desc Returns this API specification\n@returns(200) OK\n@errors {404: Not found}\n\n@endpoint GET /mbus/hat\n@desc Gets Raspberry Pi Hat information\n@returns(200) {product: str, productId: str, productVer: str, uuid: str, vendor: str} # OK\n@errors {404: Not found}\n\n@endpoint POST /mbus/hat/on\n@desc Turns on power to the M-Bus\n@returns(200) OK\n@errors {404: Not found}\n\n@endpoint POST /mbus/hat/off\n@desc Turns off power to the M-Bus\n@returns(200) OK\n@errors {404: Not found}\n\n@endpoint POST /mbus/scan/{device}/{baudrate}\n@desc Scan the specified device for slaves\n@required {device: str # The serial device to scan - /dev/ is pre-pended to {device} by M-Bus HTTPD before scanning, baudrate: int(int32) # Baudrate to communicate with M-Bus devices}\n@returns(200) OK\n@errors {400: Bad request, 404: 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)}\n\n@endpoint POST /mbus/get/{device}/{baudrate}/{address}\n@desc Gets data from the slave identified by {address}\n@required {device: str # The serial device to scan - /dev/ is pre-pended to {device} by M-Bus HTTPD before scanning, baudrate: int(int32) # Baudrate to communicate with M-Bus devices, address: str(string) # The slave device to get data from}\n@returns(200) OK\n@errors {400: Bad request, 404: Not found (or M-Bus HTTPD is unauthorized to access it, or to change baud rate to that specified, etc)}\n\n@endpoint POST /mbus/getMulti/{device}/{baudrate}/{address}/{maxframes}\n@desc Gets data from the slave identified by {address}, and supports multiple responses from the slave\n@required {device: str # The serial device to scan - /dev/ is pre-pended to {device} by M-Bus HTTPD before scanning, baudrate: int(int32) # Baudrate to communicate with M-Bus devices, address: str(string) # The slave device to get data from, maxframes: int(int32) # The slave device to get data from}\n@returns(200) OK\n@errors {400: Bad request, 404: Not found (or M-Bus HTTPD is unauthorized to access it, or to change baud rate to that specified, etc)}\n\n@end\n"}