Closed scottandee closed 2 weeks ago
Develop API endpoint to soft-delete a single user
api/v1/users/:userId
DELETE
Authorization: Bearer <token>
Endpoint DELETE /api/v1/users/:userId
/api/v1/users/:userId
Parameters:
userId
Successful Response
{ "status": "success", "message": "User Deleted Successfully", "user": { "id": "String", "name": "String", "phone_number": "String" } }
Error Response:
{ "status":string, "message": string, "status_code":int }
Enable soft-deletion of user records from the user Details Page.
make it clear what role can delete a user. Also, soft delete
Description
Develop API endpoint to soft-delete a single user
Acceptance Criteria
api/v1/users/:userId
DELETE
requests.Authorization: Bearer <token>
Request
Endpoint
DELETE
/api/v1/users/:userId
Parameters:
userId
: stringExpected Outcome
Successful Response
Error Response:
Purpose
Enable soft-deletion of user records from the user Details Page.
Requirements
Checklist
Unittests