Closed jeffmaine240 closed 1 month ago
@jeffmaine240 following REST API convention that was shared, this endpoint should be named as thus:
DELETE v1/api/users/:userId
@jeffmaine240 following REST API convention that was shared, this endpoint should be named as thus:
DELETE v1/api/users/:userId
fixed sir
fixed sir
userId is not snake_case
{
"status": "success",
"message": "Account Deleted Successfully",
"user": {
"userId": "String",
"name": "String",
"phone_number": "String"
}
}
@jeffmaine240 The delete should be soft delete at the first instance, and then it'll be eventually deleted from the system after a set period. But for this task, you should soft delete (you don't have to handle to final delete as that would need some admin decision), every other specs you have remains
@jeffmaine240 The delete should be soft delete at the first instance, and then it'll be eventually deleted from the system after a set period. But for this task, you should soft delete (you don't have to handle to final delete as that would need some admin decision), every other specs you have remains
fixed the issue again sir
@jeffmaine240 I missed this earlier, you don't need to return the user info when an account is deleted, just status code and message
@jeffmaine240 I missed this earlier, you don't need to return the user info when an account is deleted, just status code and message
fixed now sir
Description
A feature that allows soft deletion functionality for user accounts to ensure users can initiate the deletion process but allow Admin user finalize the permanent removal from the system.
Acceptance Criteria
The endpoint should be accessible at
api/v1/users/:user_id
The endpoint should accept HTTP DELETE requests.
The endpoint should be secured to ensure that only authenticated users can access the endpoint
Requests to the endpoint must include a valid authentication token in the Authorization header. Authorization: Bearer
Upon successful soft deletion, return a status code of 204.
Request
api/v1/users/:user_id
Expected Outcome
Provide a JSON response confirming the soft deletion with the user's basic details.
Purpose
Requirement:
Checklist