Repository navigation
Add recipe favorites and ratings endpoints - #738
Merged
Merged
Conversation
Adds RecipeRating and RecipeFavoritesResponse models and exposes get_recipe_favorites, add_recipe_favorite, remove_recipe_favorite and rate_recipe on MealieClient.
domodom30
force-pushed
the
feature/favorites-ratings
branch
from
June 4, 2026 11:44
0ff73d3 to
fe2fe22
Compare
joostlek
approved these changes
Jun 22, 2026
domodom30
added a commit
to domodom30/python-mealie
that referenced
this pull request
Jun 22, 2026
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). Co-Authored-By: Claude Opus 4.8 <[email protected]>
domodom30
added a commit
to domodom30/python-mealie
that referenced
this pull request
Jun 22, 2026
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
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 favorites/ratings tests (joostlek#738), and drop the duplicate _get_user_id helper now provided by main.
domodom30
added a commit
to domodom30/python-mealie
that referenced
this pull request
Jun 22, 2026
Resolve conflicts in models.py and tests by keeping both the organizers models/tests (categories, tags, tools, foods, units) and the favorites/ratings additions from main (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 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).
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
Add endpoints to manage recipe favorites and ratings for the current user.
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}The user ID is fetched once from
GET /api/users/selfand cached on the client instance to avoid repeated round-trips.New models:
RecipeRating,RecipeFavoritesResponseTests included for all new endpoints.
Related Issues
Splits out the favorites/ratings part of #730.