pip install -r requirements.txt
pip install -e .
python __main__.py
The backend is a Python Flask application. Connexion library maps the apis from the openapi definition to the Flask routing.
Api functions are all defined inside APP_NAME/controllers. Function stubs are automatically generated: just replace your function body with the desired code. Since the stubs are automatically generated, using other modules outside the controllers as helpers and services to implement the code logic is recommended.
- Edit ../api/openapi.yaml as needed
- Remove/comment the controllers exclusion on .openapi-generator-ignore file
- Run
harness-generate .
from your deployment root - Merge the files inside APP_NAME/controllers. For instance, you can use git or ide history)
- Restore the .openapi-generator-ignore file