spruhaN / nutrition_pal

1 stars 1 forks source link

Product Ideas (Sam Todd) #10

Open SamuelTodd opened 1 month ago

SamuelTodd commented 1 month ago
  1. One complex endpoint recommendation would be to add a GET /search/ function for meals which would allow the user to view meals in the database according to a variety of filters or specifications. For example, users would be able to search for a meals that use certain ingredients or meals that are above or below certain calorie totals. This would allow users to get inspiration for meals from the database with the help of your application. If you are going to implement search in a similar way to the potion shop, make sure to create the metadata for the database in a separate file called database.py so that you are not recreating the metadata every time you use the search function. This will prevent unnecessarily slow queries for the user.
  2. A second complex endpoint would be a GET /summary/{customer_id} that provides a snapshot of relevant information for that day to the user. It would return the users names, all workouts completed, all meals consumed, and a counter for their calories. This would allow the user to get a quick overview of all the different information that they have recorded for that day without having to go and access each of the endpoints individually.