katiekeel / qs-express-api

0 stars 0 forks source link

PATCH /api/v1/foods/:id #4

Closed thedanielvogelsang closed 6 years ago

thedanielvogelsang commented 7 years ago

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

thedanielvogelsang commented 7 years ago

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