http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
Open up terminal window, run
$ python app.pyRunning on http://127.0.0.1:5000/
Since this RESTful API requires an authorized user. Opens up another terminal window, run command below. Should result in a list of tasks.
curl -u username:password -i http://localhost:5000/todo/api/v1.0/tasksGet specific task (2)
curl -i http://localhost:5000/todo/api/v1.0/tasks/2Get all tasks
curl -u username:password -i http://localhost:5000/todo/api/v1.0/tasks @app.route('/todo/api/v1.0/tasks', methods=['GET'])Create new task
curl -u username:password -i -H "Content-Type: application/json" -X POST -d '{"title":"Write a letter"}' http://localhost:5000/todo/api/v1.0/tasksUpdate task (2)
curl -u username:password -i -H "Content-Type: application/json" -X PUT -d '{"description":"This is a test","done":false}' http://localhost:5000/todo/api/v1.0/tasks/2Delete a task (2)
curl -u username:password -i -X "DELETE" http://localhost:5000/todo/api/v1.0/tasks/2