mxcubeweb.core.server.openapidoc#

Functions

to_openapi_path(route)

Adds the "{" "}" to the route arguments that OpenAPI requires

Classes

OpenAPISpec(name, url_prefix, api_version, ...)

mxcubeweb.core.server.openapidoc.to_openapi_path(route: str) str[source]#

Adds the “{” “}” to the route arguments that OpenAPI requires

Parameters:

route (str) – The route

Returns:

the openapi path, with the {} srounding the arguments

Return type:

returns