0.1.5 • Published 10 years ago
recipes-app v0.1.5
Learn Recipes
Base Python API for a series of on-going recipe learning projects in various front-end frameworks.
Flavours
API Endpoints
Read:
curl -i http://localhost:5000/recipes
-X GET
Create:
curl -i http://localhost:5000/recipes
-X POST
-H "Content-Type: application/json"
-d '{"name":"Banana Cake","description":"Delectable banana cake!","ingredients":["Banana","Flour"]}'
Delete:
Assume that 123456789
is the model's primary key in MongoDB.
curl -i http://localhost:5000/recipes/123456789
-X DELETE