allieIsOkay / allieIsOkay/quantified-self-api

Add endpoint for removing food items from meals

Aperta
#13 0 commenti 0 reazioni 1 assegnatario Rivendicata da @allieIsOkay Vedi su GitHub
Lingua principale
JavaScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As a User,

I should be able to delete a specific food item from a specific meal in the system by submitting a DELETE request to the 'api/v1/mealse/:meal_id/foods/:id' where :meal_id is the ID of a meal in the system and :id is the ID of a food in the system and the meal.

A valid response will have a 204 status code and return no response body.

An invalid response will return a 404 status code and return a response as follows:
```
{
"error" : "Meal or Food not found"
}
```

- [x] Tested
- [x] Documented

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.