Repository navigation
Conversation
joostlek
requested changes
Jun 2, 2026
joostlek
left a comment
Owner
There was a problem hiding this comment.
I like the direction this is going. Mind splitting this up per category? That way it's a bit easier to review
…ts and favorites - Add create/update/delete recipe endpoints with typed MutateRecipe model - Add get/update/delete mealplan endpoints - Add get/create/update/delete shopping list endpoints - Add add/remove recipe to shopping list endpoints - Add get foods and get units endpoints - Add get/add/remove recipe favorites endpoints - Add rate_recipe endpoint - Add FoodsResponse, UnitsResponse, RecipeFavoritesResponse, MutateRecipe models - Add group_id field to ShoppingList model - Fix async property version -> get_version() method - Fix module docstring - Export new public types from __init__.py
The favorites endpoint returns ratings objects, not recipe summaries. RecipeFavoritesResponse.ratings now uses list[RecipeRating] instead of list[BaseRecipe].
The field is not always present in the API response.
This was referenced Jun 4, 2026
Contributor
Author
|
Closing in favour of 5 focused PRs as requested:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Extend the client with CRUD endpoints across recipes, mealplans, shopping lists, foods, units, and recipe favorites.
Recipe organizers (read-only)
get_categories(per_page)—GET /api/organizers/categoriesget_tags(per_page)—GET /api/organizers/tagsget_tools(per_page)—GET /api/organizers/toolsRecipes
create_recipe(name)—POST /api/recipesupdate_recipe(slug, MutateRecipe)—PUT /api/recipes/{slug}delete_recipe(slug)—DELETE /api/recipes/{slug}Mealplans
get_mealplan(mealplan_id)—GET /api/households/mealplans/{id}update_mealplan(...)—PUT /api/households/mealplans/{id}delete_mealplan(mealplan_id)—DELETE /api/households/mealplans/{id}Shopping lists
get_shopping_list(list_id)—GET /api/households/shopping/lists/{id}create_shopping_list(name)—POST /api/households/shopping/listsupdate_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}/deleteFoods & Units
get_foods(per_page)—GET /api/foodsget_units(per_page)—GET /api/unitsRecipe favorites & ratings
get_recipe_favorites()—GET /api/users/self/favoritesadd_recipe_favorite(recipe_slug)—POST /api/users/{id}/favorites/{slug}remove_recipe_favorite(recipe_slug)—DELETE /api/users/{id}/favorites/{slug}rate_recipe(recipe_slug, rating, is_favorite)—POST /api/users/{id}/ratings/{slug}New models:
Tool,CategoriesResponse,TagsResponse,ToolsResponse,FoodsResponse,UnitsResponse,RecipeRating,RecipeFavoritesResponse,MutateRecipeBug fixes:
group_idfield toShoppingListmodelRecipeFavoritesResponse— field renamed toratings: list[RecipeRating](endpoint returns rating objects, not recipe summaries)asyncpropertyversion→get_version()methodInstruction.titlefield ordering (optional field moved after required fields)Tests and Syrupy snapshots included for all new endpoints.
Related Issues
N/A