dso_api.dynamic_api.openapi module
Extensions for the OpenAPI schema generator, that provides application-specific descriptions.
The main logic can be found in rest_framework_dso.openapi
.
- class dso_api.dynamic_api.openapi.DynamicApiSchemaGenerator(*args, **kwargs)
Bases:
DSOSchemaGenerator
This further extends the generic schema generator from
rest_framework_dso
with the application-specific knowledge found in DSO-API.- schema_overrides = {'components': {'securitySchemes': {'oauth2': {'flows': {'implicit': {'authorizationUrl': 'https://iam.amsterdam.nl/auth/realms/datapunt-ad/protocol/openid-connect/', 'scopes': {}}}, 'type': 'oauth2'}}}, 'security': [{'oauth2': []}], 'servers': [{'url': 'https://api.data.amsterdam.nl/'}]}
Allow to override the schema