Code built following Real Python tutorials:
- Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 1
- Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 2
- Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 3
Some modificationes were made:
- source code was placed in
src
folder instead of root folder - docstrings in numpydoc format were added
- type hints were added
For using this code, follow next steps:
-
Create an environment
-
Install project requirements:
pip install -r requirements
-
Create the database:
python build_database.py
-
Run the API:
python -m src