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.
This commit is contained in:
Caine
2026-04-02 17:51:12 +01:00
parent 27f91fb877
commit 189d72b797
4 changed files with 2465 additions and 0 deletions
+1
View File
@@ -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"),
]