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

GET api/v1/category/:categoryId/food #28

Closed
zeinjendeya opened this issue Jan 31, 2021 · 0 comments · Fixed by #107
Closed

GET api/v1/category/:categoryId/food #28

zeinjendeya opened this issue Jan 31, 2021 · 0 comments · Fixed by #107

Comments

@zeinjendeya
Copy link
Collaborator

zeinjendeya commented Jan 31, 2021

Description:

  • when the user chooses a category it will send a request to the server to get the meal in this category from his meals.

Request body:

{
 x: 'y'
}

meal param is the name of the meal-type

Quireis:

getMeal(mealID)
//SELECT * from meal where mealID= ${mealID}
//mealName from req.params.meal

Authentication

if(req.cookies){
//do something
} else {
re.state(402).json({ state: 402, message: "unauthorized"})
}

Tests:

to be a successful test: the data returned should be an object

#17 #13 #26

@zeinjendeya zeinjendeya changed the title GET /food/:meal GET api/v1/food/:meal Feb 1, 2021
@lina-jamal lina-jamal changed the title GET api/v1/food/:meal GET api/v1/food/:category Feb 8, 2021
@lina-jamal lina-jamal changed the title GET api/v1/food/:category GET api/v1/food/:categoryId Feb 8, 2021
@khamis-hesham khamis-hesham changed the title GET api/v1/food/:categoryId GET api/v1/category/:categoryId/food/:foodId Feb 8, 2021
@zeinjendeya zeinjendeya changed the title GET api/v1/category/:categoryId/food/:foodId GET api/v1/user/:id/category/:categoryId/food/:foodId Feb 8, 2021
@zeinjendeya zeinjendeya changed the title GET api/v1/user/:id/category/:categoryId/food/:foodId GET api/v1/user/:id/category/:categoryId/food Feb 8, 2021
@zeinjendeya zeinjendeya linked a pull request Feb 9, 2021 that will close this issue
@lina-jamal lina-jamal changed the title GET api/v1/user/:id/category/:categoryId/food GET api/v1/category/:categoryId/food Feb 11, 2021
@lina-jamal lina-jamal added Done and removed to do labels Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants