bartender.web.application#

Functions#

get_app(→ fastapi.FastAPI)

Get FastAPI application.

use_route_names_as_operation_ids(→ None)

Simplify operation IDs.

Module Contents#

bartender.web.application.get_app() fastapi.FastAPI#

Get FastAPI application.

This is the main constructor of an application.

Returns:

application.

Return type:

fastapi.FastAPI

bartender.web.application.use_route_names_as_operation_ids(app: fastapi.FastAPI) None#

Simplify operation IDs.

So that generated API clients have simpler function names.

Should be called only after all routes have been added.

Parameters:

app (fastapi.FastAPI) – FastAPI app

Return type:

None