feat: User-specific Recipe Ratings (#3345)

This commit is contained in:
Michael Genson 2024-04-11 21:28:43 -05:00 committed by GitHub
commit 2a541f081a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 1497 additions and 443 deletions

View file

@ -181,8 +181,12 @@ users_reset_password = "/api/users/reset-password"
"""`/api/users/reset-password`"""
users_self = "/api/users/self"
"""`/api/users/self`"""
users_self_favorites = "/api/users/self/favorites"
"""`/api/users/self/favorites`"""
users_self_group = "/api/users/self/group"
"""`/api/users/self/group`"""
users_self_ratings = "/api/users/self/ratings"
"""`/api/users/self/ratings`"""
utils_download = "/api/utils/download"
"""`/api/utils/download`"""
validators_group = "/api/validators/group"
@ -490,6 +494,21 @@ def users_id_image(id):
return f"{prefix}/users/{id}/image"
def users_id_ratings(id):
"""`/api/users/{id}/ratings`"""
return f"{prefix}/users/{id}/ratings"
def users_id_ratings_slug(id, slug):
"""`/api/users/{id}/ratings/{slug}`"""
return f"{prefix}/users/{id}/ratings/{slug}"
def users_item_id(item_id):
"""`/api/users/{item_id}`"""
return f"{prefix}/users/{item_id}"
def users_self_ratings_recipe_id(recipe_id):
"""`/api/users/self/ratings/{recipe_id}`"""
return f"{prefix}/users/self/ratings/{recipe_id}"