Skip to content

Add CRUD endpoints and recipe operations for shopping lists - #737

Merged
joostlek merged 2 commits into
joostlek:mainfrom
domodom30:feature/shopping-list-crud
Jun 22, 2026
Merged

joostlek merged 2 commits into
joostlek:mainfrom
domodom30:feature/shopping-list-crud

Conversation

@domodom30

Copy link
Copy Markdown
Contributor

Proposed Changes

Add the missing CRUD endpoints for shopping lists, plus helpers to add/remove recipes.

  • get_shopping_list(list_id) — GET /api/households/shopping/lists/{id}
  • create_shopping_list(name) — POST /api/households/shopping/lists
  • update_shopping_list(list_id, name) — PUT /api/households/shopping/lists/{id}
  • delete_shopping_list(list_id) — DELETE /api/households/shopping/lists/{id}
  • add_recipe_to_shopping_list(list_id, recipe_id, *, scale) — POST /api/households/shopping/lists/{id}/recipe/{recipe_id}
  • remove_recipe_from_shopping_list(list_id, recipe_id, *, scale) — POST /api/households/shopping/lists/{id}/recipe/{recipe_id}/delete

Bug fix: Add missing group_id field to ShoppingList model — required to pass the correct payload when updating a list.

Tests included for all new endpoints.

Related Issues

Splits out the shopping list CRUD part of #730.

Also adds missing group_id field to ShoppingList model, needed
to pass the correct payload when updating a list.
@domodom30
domodom30 force-pushed the feature/shopping-list-crud branch from a16c896 to 795133a Compare June 4, 2026 11:47

@joostlek joostlek left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But there's a merge conflict

Resolve add/add conflicts in tests/test_mealie.py and
tests/__snapshots__/test_mealie.ambr by keeping both the shopping-list
CRUD tests and the favorites/ratings tests (joostlek#738).
@domodom30
domodom30 force-pushed the feature/shopping-list-crud branch from d5a9818 to 09d132f Compare June 22, 2026 10:12
@joostlek
joostlek merged commit 7e01851 into joostlek:main Jun 22, 2026
12 checks passed
domodom30 added a commit to domodom30/python-mealie that referenced this pull request Jun 22, 2026
Resolve conflicts in tests by keeping both the mealplan CRUD tests and
the shopping-list/favorites tests now present in main (joostlek#737, joostlek#738).
domodom30 added a commit to domodom30/python-mealie that referenced this pull request Jun 22, 2026
Resolve conflicts in tests by keeping both the organizers tests
(categories, tags, tools, foods, units) and the shopping-list/favorites
tests now present in main (joostlek#737, joostlek#738).
domodom30 added a commit to domodom30/python-mealie that referenced this pull request Jun 22, 2026
Resolve conflicts in tests by keeping both the organizers tests and the
mealplan tests now merged into main (joostlek#736), alongside the shopping-list
and favorites tests (joostlek#737, joostlek#738).
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants