Skip to content

sudeshmu/flask-api-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Flask App

Basic template to develop an API with Flask, Flask-RESTful and Flask-RESTful-Swagger

Usage

Clone the repo:

git clone https://github.com/bonzanini/flask-api-template
cd flask-api-template

Create virtualenv:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python setup.py develop # or install if you prefer

Run the sample server

python runserver.py

Try the endpoints:

curl -XGET http://localhost:5000/dummy
curl -XPOST -H "Content-Type: application/json" http://localhost:5000/hello -d '{"name": "World"}'

Swagger docs available at http://localhost:5000/api/spec.html

License

MIT, see LICENSE file

About

Simple template to build API's with Flask, Flask-RESTful and Flask-RESTful-Swagger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%