qunicorn_core.api package
Subpackages
Submodules
qunicorn_core.api.jwt module
Module containing JWT security features for the API.
- class qunicorn_core.api.jwt.DemoUser(username: str)
Bases:
objectThis class should be replaced by the actual user class!
- qunicorn_core.api.jwt.JWT = <flask_jwt_extended.jwt_manager.JWTManager object>
Basic JWT security scheme.
- class qunicorn_core.api.jwt.JWTMixin
Bases:
objectExtend Blueprint to add security documentation and jwt handling
- qunicorn_core.api.jwt.JWT_REFRESH_SCHEME = {'bearerFormat': 'JWT', 'description': 'The jwt refresh token as returned by login. Must only be used to get a new access token.', 'scheme': 'bearer', 'type': 'http'}
Security schemes to be added to the swagger.json api documentation.
- qunicorn_core.api.jwt.JWT_SCHEME = {'bearerFormat': 'JWT', 'description': 'The jwt access token as returned by login or refresh.', 'scheme': 'bearer', 'type': 'http'}
JWT security scheme for JWT refresh tokens.
- qunicorn_core.api.jwt.register_jwt(app: Flask)
Register jwt manager with flask app.
qunicorn_core.api.util module
Module contents
Module containing all API related code of the project.
- class qunicorn_core.api.RootView
Bases:
MethodView
- class qunicorn_core.api.VersionsRootSchema(*, only: Optional[Union[Sequence[str], Set[str]]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: dict | None = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str | None = None)
Bases:
MaBaseSchema- opts: SchemaOpts = <marshmallow.schema.SchemaOpts object>
- qunicorn_core.api.register_root_api(app: Flask)
Register the API with the flask app.