Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meal Endpoint: POST /api/v1/meals/:meal_id/foods/:id #13

Closed
squeemishly opened this issue Aug 30, 2017 · 0 comments
Closed

Meal Endpoint: POST /api/v1/meals/:meal_id/foods/:id #13

squeemishly opened this issue Aug 30, 2017 · 0 comments
Assignees

Comments

@squeemishly
Copy link
Collaborator

POST /api/v1/meals/:meal_id/foods/:id - adds the food with :id to the meal with :meal_id
This creates a new record in the MealFoods table to establish the relationship between this food and meal. If the meal/food cannot be found, a 404 will be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants