Recipe Book
Comments
Comment management endpoints for the Smart Recipe Book
These are authenticated endpoints. You can visit authentication to register an account.
These endpoints allow you to edit and delete your own comments. To create a comment or list comments for a recipe, see the Recipes endpoints:
GET /recipe-book/recipes/<recipeId>/comments— List comments for a recipePOST /recipe-book/recipes/<recipeId>/comments— Add a comment to a recipe
The Comment model
| Prop | Type | Default |
|---|---|---|
id | string | - |
text | string | - |
recipeId | string | - |
author | Profile | - |
created | Date | - |
updated | Date | - |
Update comment
PUT/recipe-book/comments/<id>
Edit a comment by its id. Only the author of the comment can update it.
Delete comment
DELETE/recipe-book/comments/<id>
Delete a comment by its id. Only the author of the comment can delete it.
Returns an empty 204 No Content response on success.