This is a template for a simple flask api using flask-restful and MongoDB.
Prereqs:
- Python 2.7+
- Virtual Env
- Mongo
- Pymongo
To get started in Terminal:
git clone https://github.com/jhschwartz/flask-api-template.gitcd flask-api-templatevirtualenv flasksource flask/bin/activatepip install -r requirements.txtchmod a+x run.py./run.py- Make api calls (ex:
curl http://localhost:5000/api/v1.0/todosor use Postman [reccomended]) - Make your own api, in
app/api/api.pyor by creating api files inapp/api(remember to import new files inapp/api/__init__.py)