Closed sirlawglobal closed 2 months ago
comments are standalone and not under user
Endpoint and response payload adjusted , Header authentication and Testing added.
All these have been fixed . Need mentor review.
@markessien pls help us look into this..
Mark needs to review first
@highb33kay @Ameenah-Ameenah @highb33kay @prondubuisi
Please we need second approval!
Description
Implement an endpoint that deletes a comment(s) from a post, and ensures error handling and safe deletion of the data.
Acceptance Criteria
Endpoint
api/v1/comments/:comment_id
.DELETE
request.Authentication
Response Handling.
204 OK
status code, and success message upon successful deletion.404 Not Found
or401 Unauthorized
status code and error message when an error occurs.Endpoint Example
Expected Successful Response
Expected Error Responses
Purpose
A feature which allows for deletion of comments on a post.
Requirements
Expected Outcome
The endpoint should delete a user's comments from a post.
Unit Testing
Participants Slack_id:
@Agnes Kariuki, fastApi @Michelle Ndiangui , laravel @akanji Lawrence, nodejs