rpymostat.engine.apiserver module

class rpymostat.engine.apiserver.APIServer(dbconn=None)[source]

Bases: object

Main class for the Klein-based API server.

app

Global class attribute pointing to a Klein instance.

handle_root(_self, request)[source]

root resource (/) request handler. This should only be called by the Kelin app as a route.

This serves the GET / endpoint.

@TODO this should return some helpful information, like the server version and a link to the docs, as well as where to obtain the source code and a link to the status page.

Parameters: