Add cook later
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user