Add cook later

This commit is contained in:
Joren de Graaf
2026-10-15 19:58:33 +02:00
parent b72283818c
commit f36f05b9bc
27 changed files with 523 additions and 129 deletions
+6
View File
@@ -143,6 +143,12 @@ def schema(request):
'patch': operation('Update hydration settings', 'food:write', HYDRATION_SETTINGS),
},
'/recipes/': {'get': operation('Search own recipes by query, category, and limit', 'food:read')},
'/recipes/cook-later/': {
'get': operation('List Cook Later recipes with search and pagination', 'food:read'),
'post': operation('Idempotently add a visible recipe to Cook Later', 'food:write',
{'type': 'object', 'required': ['recipe_id'], 'properties': {'recipe_id': {'type': 'string'}}}),
},
'/recipes/cook-later/{id}/': {'delete': operation('Remove recipe from Cook Later', 'food:write')},
'/recipes/create/': {'post': operation('Create own recipe with optional Idempotency-Key', 'food:write', RECIPE)},
'/recipes/{id}/': {
'get': operation('Read own recipe with ingredients, subrecipes, and variations', 'food:read'),