qhana_plugin_runner.api package

Submodules

Module contents

Module containing all API related code of the project.

class qhana_plugin_runner.api.RootView

Bases: MethodView

get() Dict[str, str]

Get the Root API information containing the links other endpoints of this api.

methods: t.ClassVar[t.Collection[str] | None] = {'GET'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

class qhana_plugin_runner.api.VersionsRootSchema(*, only: Sequence[str] | AbstractSet[str] | None = None, exclude: Sequence[str] | AbstractSet[str] = (), many: bool = False, context: dict | None = None, load_only: Sequence[str] | AbstractSet[str] = (), dump_only: Sequence[str] | AbstractSet[str] = (), partial: bool | Sequence[str] | AbstractSet[str] | None = None, unknown: str | None = None)

Bases: MaBaseSchema

opts: SchemaOpts = <marshmallow.schema.SchemaOpts object>
qhana_plugin_runner.api.register_root_api(app: Flask)

Register the API with the flask app.