Version handler¶
Version Handler
Module realize version handler.
- class luna_sender.app.handlers.version_handler.VersionHandler(request)[source]¶
Handler for getting version
- async get()[source]¶
Resource is reached by address ‘/version’
- GET /version¶
Request to receive service version
- Request Headers:
LUNA-Request-Id – request id
Example response:
HTTP/1.1 200 OK LUNA-Request-Id: 1516179740,af3fb041-1a55-43e6-9ac2-a361aa43295 Content-Type: application/json
- version¶
- response normal version¶
- Object Properties:
Version (version) – version of server
{ "Version": { "api": 7712, "major": 486, "minor": 4895, "patch": 9385 } }
- Status Codes:
200 OK – Ok
500 Internal Server Error – internal server error
- Return type:
HTTPResponse