This is a basic flask api template that can be used to build flask applications
- Change directory to Flask_App and then run
python -m pip install -r requirements.txt
- Once all requirements are installed do
python run.py
- Go to localhost for the swagger page
- Database models are defined inside Flask_App/Main/Models
- They are automatically initialized inside of the database when the application is started
- Endpoint controllers are defined inside Flask_App/Main/Controllers
- api objects must be defined inside of the controller module
- api objects must be imported inside Flask_App/Main/init.py
- Import the api object in create_app
- Add the api as a namespace to the api for endpoint creation
- Services can be defined as needed. They are not needed as part of the Flask Startup