@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api M-Bus HTTPD API
@base /
@version 0.3.5
@endpoints 7
@toc mbus(7)

@endpoint GET /mbus/api
@returns(200)
@errors {404}

@endpoint GET /mbus/hat
@returns(200) {product: str, productId: str, productVer: str, uuid: str, vendor: str}
@errors {404}

@endpoint POST /mbus/hat/on
@returns(200)
@errors {404}

@endpoint POST /mbus/hat/off
@returns(200)
@errors {404}

@endpoint POST /mbus/scan/{device}/{baudrate}
@required {device: str, baudrate: int(int32)}
@returns(200)
@errors {400, 404}

@endpoint POST /mbus/get/{device}/{baudrate}/{address}
@required {device: str, baudrate: int(int32), address: str(string)}
@returns(200)
@errors {400, 404}

@endpoint POST /mbus/getMulti/{device}/{baudrate}/{address}/{maxframes}
@required {device: str, baudrate: int(int32), address: str(string), maxframes: int(int32)}
@returns(200)
@errors {400, 404}

@end
