magpie.api.swagger¶
Submodules¶
Attributes¶
Functions¶
|
Return JSON Swagger specifications of Magpie REST API. |
|
Swagger UI route to display the Magpie REST API schemas. |
|
Immediately sets the logger level to avoid duplicate log outputs from the root logger and this logger when |
|
Package Contents¶
- 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: int | None = None, force_stdout: bool = None, message_format: magpie.typedefs.Str | None = None, datetime_format: magpie.typedefs.Str | None = 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
.