OpenAPI Applications
OpenAPI applications are Connexion applications. Connexion extends Flask to enable the use of OpenAPI specification files. It also adds support for Swagger UI and a few other goodies.
Endpoint Differences
OpenAPI applications do not use Blueprints. Instead, OpenAPI applications rely on an OpenAPI specification file, found at kitchen_openapi/openapi.yaml
.
Each API base URL is listed under paths
. Then, rather than using the route decorator, URLs are mapped to functions with the OperationId
parameter for each HTTP operation.
The application.py
file does not contain an endpoint to display all endpoints. Rather, Swagger UI is made available at the URL /ui
.