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

Create an endpoint where the blood alcohol level can be queried #25

Closed
3 tasks done
Tschonti opened this issue Jul 5, 2024 · 0 comments · Fixed by #31
Closed
3 tasks done

Create an endpoint where the blood alcohol level can be queried #25

Tschonti opened this issue Jul 5, 2024 · 0 comments · Fixed by #31
Assignees
Labels
backend good first issue Good for newcomers

Comments

@Tschonti
Copy link
Member

Tschonti commented Jul 5, 2024

  • Do some research on how blood alcohol level is calculated.
  • Create a GET /users/bac endpoint and a service method to query the necessary data and calculate the value.
  • create a DTO for the return value

This endpoint will eventually return the blood alcohol level of the signed-in user. However, right now the DrinkActions are not connected to the users. So you can do the calculation based on all the drinkActions in the database, we'll add the filter for the user later. Also, the gender and weight of the user will probably be needed for the calculation, you can hardcode some parameters for that, but make sure it will be easily extendable once we have this data (after #23 and #24)

@Tschonti Tschonti added good first issue Good for newcomers backend labels Jul 5, 2024
@VarMattew VarMattew self-assigned this Jul 15, 2024
@VarMattew VarMattew linked a pull request Jul 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants