magpie.api.swagger

Package Contents

Functions

api_schema(request: pyramid.request.Request) → magpie.typedefs.JSON

Return JSON Swagger specifications of Magpie REST API.

api_swagger(request)

Swagger UI route to display the Magpie REST API schemas.

get_logger(name: magpie.typedefs.Str, level: Optional[int] = None, force_stdout: bool = None, message_format: Optional[magpie.typedefs.Str] = None, datetime_format: Optional[magpie.typedefs.Str] = None) → logging.Logger

Immediately sets the logger level to avoid duplicate log outputs from the root logger and this logger when

includeme(config)

Attributes

LOGGER

magpie.api.swagger.api_schema(request: pyramid.request.Request)magpie.typedefs.JSON[source]

Return JSON Swagger specifications of Magpie REST API.

magpie.api.swagger.api_swagger(request)[source]

Swagger UI route to display the Magpie REST API schemas.

magpie.api.swagger.get_logger(name: magpie.typedefs.Str, level: Optional[int] = None, force_stdout: bool = None, message_format: Optional[magpie.typedefs.Str] = None, datetime_format: Optional[magpie.typedefs.Str] = None)logging.Logger[source]

Immediately sets the logger level to avoid duplicate log outputs from the root logger and this logger when level is logging.NOTSET.

magpie.api.swagger.LOGGER[source]
magpie.api.swagger.includeme(config)[source]