Application Module¶
pipelines.rest_api.application ¶
get_openapi_specs ¶
Used to autogenerate OpenAPI specs file to use in the documentation.
See docs/_src/api/openapi/generate_openapi_specs.py
Source code in pipelines/rest_api/application.py
use_route_names_as_operation_ids ¶
Simplify operation IDs so that generated API clients have simpler function names (see https://fastapi.tiangolo.com/advanced/path-operation-advanced-configuration/#using-the-path-operation-function-name-as-the-operationid). The operation IDs will be the same as the route names (i.e. the python method names of the endpoints) Should be called only after all routes have been added.