TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.35k stars 563 forks source link

API endpoint to see what recipe(s) are planned for only today #3173

Closed Hoffelhas closed 4 months ago

Hoffelhas commented 4 months ago

Is your feature request related to a problem? Please describe.

I'm looking for a way to extract what recipe is planned for 'today' through the API. Going to 'https://tandoor.bks110.nl/api/meal-plan/' however only gives a total overview of everything in the meal-plan. The software (Homepage docker) reading the API callback on my end isn't able to do any required filtering, which means I'm not able to isolate what recipe is planned for 'today'.

Describe the solution you'd like

Ideally I would like to use an API endpoint like 'meal-plan-today', which gives a similar result as 'meal-plan' but limited to the results from today.

smilerz commented 4 months ago

All of the APIs have parameters to filter results.

Hoffelhas commented 4 months ago

How would I do this exactly? If I e.g. select the 'from date'/'to date', it gives me a 400 error, since it also requires the recipe name and meal type.

image

Meal type makes sense, but the goal is to eventually obtain the recipe name from the API, which is now required as input for the filter.

smilerz commented 4 months ago

How are you constructing the url?