diff options
| author | Caine <caine@jihakuz.xyz> | 2026-04-02 17:51:12 +0100 |
|---|---|---|
| committer | Caine <caine@jihakuz.xyz> | 2026-04-02 17:51:12 +0100 |
| commit | 946c7de20cab78a47edbeae8fa65fe86a51511dd (patch) | |
| tree | 5e8c76be65259062a36eef736f1fcfd8ffd72580 /kitchen/urls.py | |
| parent | 27f91fb877f4502804c932a28546ab6c745cc103 (diff) | |
Add create-meta-recipe endpoint with nested slots/options/bases
- POST /api/create-meta-recipe/ creates full meta-recipe in one call
- PUT /api/create-meta-recipe/ updates existing (requires id)
- Auto-resolves ingredients by name/alias, creates new if not found
- Returns full nested response with _created_ingredients list
- New writable serializers: MetaRecipeWriteSerializer, SlotWriteSerializer, etc.
Diffstat (limited to 'kitchen/urls.py')
| -rw-r--r-- | kitchen/urls.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kitchen/urls.py b/kitchen/urls.py index 2eabc81..ff3745f 100644 --- a/kitchen/urls.py +++ b/kitchen/urls.py @@ -22,4 +22,5 @@ urlpatterns = [ path("bulk-pantry-add/", views.bulk_pantry_add, name="bulk-pantry-add"), path("generate-shopping-list/", views.generate_shopping_list, name="generate-shopping-list"), path("import-recipe/", views.import_recipe_url, name="import-recipe"), + path("create-meta-recipe/", views.create_meta_recipe, name="create-meta-recipe"), ] |
