Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bajcmartinez/flask-api-starter-kit

Flask API Starter Kit
https://github.com/bajcmartinez/flask-api-starter-kit

api flask python starter-kit swagger

Last synced: 3 months ago
JSON representation

Flask API Starter Kit

Awesome Lists containing this project

README

        

# Flask API Starter Kit

Sample API layout structure to be used as a baseline for other apps

## Dependencies

- [flask](https://palletsprojects.com/p/flask/): Python server of choise
- [flasgger](https://github.com/flasgger/flasgger): Used to generate the swagger documentation
- [flask-marshmallow](https://flask-marshmallow.readthedocs.io/en/latest/): My favourite serializer
- [apispec](https://apispec.readthedocs.io/en/latest/): Required for the integration between marshmallow and flasgger

## Set Up

1. Check out the code
2. Install requirements
```
pipenv install
```
3. Start the server with:
```
pipenv run python -m flask run
```

4. Visit http://localhost/api for the home api

4. Visit http://localhost/apidocs for the swagger documentation

## Tests

The code is covered by tests, to run the tests please execute

```
pipenv run python -m unittest
```