katiekeel / qs-express-api

0 stars 0 forks source link

POST /api/v1/foods #3

Open thedanielvogelsang opened 6 years ago

thedanielvogelsang commented 6 years ago

{ food: { name: "Name of food here", calories: "Calories here"} }

thedanielvogelsang commented 6 years ago

If food is successfully created, the food item will be returned. If the food is not successfully created, a 400 status code will be returned. Both name and calories are required fields.