Flask RESTful API services Boilerplate with Swagger-UI

Featured image

A minimal boilerplate for creating RESTful services using Flask, SQLAlchemy and Flask-RestPlus. This boilerplate has swagger-UI added to it for easy documentation of the endpoints. The boilerplate also has capabilities for adding a database engine to your API services with the help of SQLAlchemy.

What it includes?

Setting up:

Directory structure:

├── src
│   ├── core
|   |   ├── db_connection.py
|   |   ├── models.py
│   ├── instance
|   |   ├── config.py
|   |   ├── flask_app.py
│   ├── misc
|   |   ├── constants.py
|   |   ├── db_misc_functions.py
|   |   ├── response_generator.py
|   |   ├── service_logger.py
│   ├── routes
|   |   ├── item_1
|   |   |   ├── item_1_route_1.py
|   |   ├── item_2
|   |   |   ├── item_2_route_1.py
│   ├── namespaces.py
├── config.ini
├── requirements.txt
├── run.py

Running the program:

Feel free to fork the boilerplate on GitHub for your personal use.


If you liked this project, please consider buying me a coffee

Buy me a coffeeBuy me a coffee