lso.routes.default

Default route located at the root URL /.

For now only includes a single endpoint that responds with the current version of the API and LSO.

class lso.routes.default.Version(*, api, module)

Bases: BaseModel

Simple model for returning a version number of both the API and the lso module.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

lso.routes.default.version()

Return the version numbers of the API version, and the module version.

Returns:

Version object with both API and lso versions numbers.