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
Object Properties:
  • api (integer) – number of api version

  • major (integer) – number of major version

  • minor (integer) – number of major version

  • patch (integer) – number of patch version

response normal version
Object Properties:
  • Version (version) – version of server

JSON Example
{
    "Version": {
        "api": 8191,
        "major": 5064,
        "minor": 3002,
        "patch": 9979
    }
}
Status Codes:
Return type:

HTTPResponse