Testing Comment Route API #49
Closed
manojtsx
announced in
Announcements
Replies: 2 comments
-
Tried to delete the comment by editor role through : http://localhost:3001/api/comment/delete/66b5e309db5148746b5e320a Note: The content id is correctly written Problem: shows "You are not authorized to delete this comment" while editor should be authorized to delete comments |
Beta Was this translation helpful? Give feedback.
0 replies
-
Tried to delete own comment by the author through: http://localhost:3001/api/comment/delete/66b5e309db5148746b5e320a Note: Both the user id and comment id are correct Problem: Shows "Comment not found" error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
POST /api/comment/add
- Comment on the content.PUT /api/comment/:id
- Edit the content.GET /api/comment/comments
- Get comment by contentGET /api/comment/
- Get all comments listDELETE /api/comment/delete/:id
- Delete commentNote : After every API call, don't forget to check the db to track changes.
Beta Was this translation helpful? Give feedback.
All reactions