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'),
|
||||
|
||||
@@ -27,6 +27,8 @@ urlpatterns = [
|
||||
path('hydration/manual/<uuid:identifier>/', api.hydration_manual_entry),
|
||||
path('hydration/settings/', api.hydration_settings),
|
||||
path('recipes/', recipe_api.recipe_search),
|
||||
path('recipes/cook-later/', recipe_api.recipe_cook_later_collection),
|
||||
path('recipes/cook-later/<uuid:identifier>/', recipe_api.recipe_cook_later_item),
|
||||
path('recipes/create/', recipe_api.recipe_create),
|
||||
path('recipes/<uuid:identifier>/', recipe_api.recipe_item),
|
||||
path('recipes/<uuid:identifier>/variations/', recipe_api.recipe_variation),
|
||||
|
||||
Reference in New Issue
Block a user