Skip to content

OpenAPI schema endpoint

Erwan Rouchet requested to merge schemaview into master

Requires !759 (merged) — closes #264 (closed)

This adds a new endpoint at /api/v1/schema/ that serves the OpenAPI schema. The custom SchemaGenerator has been updated to ensure that, unlike DRF's default behavior, endpoints that cannot be accessed by a user are still sent in schemas; this will allow the API client to access the schema immediately without requiring the user to login, or avoid re-downloading and patching its schema on login or logout. This also avoids issues with computed defaults that returned objects such as the local ImageServer as PyYAML !!python/object tags.

Edited by Erwan Rouchet

Merge request reports

Loading