Favorites
Favorites endpoints for the Smart Recipe Book
These are authenticated endpoints. You can visit authentication to register an account.
These endpoints allow you to manage your favorited recipes. When you list favorites, the full recipe object is included so you don't need a second fetch. Favorites are unique per user and recipe — you cannot favorite the same recipe twice.
These endpoints support pagination and sorting. Read more about these features here.
The Favorite model
| Prop | Type | Default |
|---|---|---|
id | string | - |
recipeId | string | - |
recipe | Recipe | - |
owner | Profile | - |
created | Date | - |
Get all favorites
Retrieve all favorited recipes for the currently authenticated user. Returns full recipe objects.
Add to favorites
Add a recipe to your favorites.
If the recipe does not exist you will receive a 404 Not Found error. If you have already favorited this recipe you will receive a 409 Conflict error.
Remove from favorites
Remove a recipe from your favorites. Note that the URL parameter is the recipe ID, not the favorite ID.
Returns an empty 204 No Content response on success.
If you have not favorited this recipe you will receive a 404 Not Found error.