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/user/:id/calories #29

Closed
zeinjendeya opened this issue Jan 31, 2021 · 0 comments
Closed

GET api/v1/user/:id/calories #29

zeinjendeya opened this issue Jan 31, 2021 · 0 comments

Comments

@zeinjendeya
Copy link
Collaborator

zeinjendeya commented Jan 31, 2021

Description:

this route fetches the daily calories for the specified user.

Request body:

{
 x: 'y'
}

Authentication

if(req.cookies){
//use get calories queries
} else {
res.state(402).json({state: 402 , message: "unautherized"})
}

Tests:

to be a successful test: the data returned should be a number/object

#26 #11 #13 #16

@zeinjendeya zeinjendeya changed the title GET /calories/user GET api/v1/calories/user Feb 1, 2021
@zeinjendeya zeinjendeya changed the title GET api/v1/calories/user GET api/v1/user/calories Feb 1, 2021
@imansedky5 imansedky5 changed the title GET api/v1/user/calories GET api/v1/user/id/food/:id/calories Feb 1, 2021
@imansedky5 imansedky5 changed the title GET api/v1/user/id/food/:id/calories GET api/v1/user/:id/calories Feb 1, 2021
@khamis-hesham khamis-hesham mentioned this issue Feb 2, 2021
3 tasks
@hassanelnajjar hassanelnajjar mentioned this issue Feb 5, 2021
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants