Closed AMdabour closed 2 weeks ago
This should be a soft delete. For compliance purposes you don't permanently delete user information immediately, soft delete in the db
Are you guys going to be working on this? if you are, please add an in progress label, else my team would be working on it.
@chukssomzzy i will wok on it but i don't have access on the repo so i couldn't add in progress label
@chukssomzzy if you have access, could you add it for me please
Do you have nodejs or python dev on your team yet?
Our slack IDs @Ahmed_Dabour @Ashade_Samson
@Ahmed_Dabour - FastAPI @Ashade_Samson - Nest.js
@FreemanBoss could you label our issue to be in progress
Please sorry just seeing this. Should I still label it?
Yes please @FreemanBoss
Done!
Description
Create an API endpoint to soft delete a customer. This endpoint will handle the soft deletion of customer records by marking them as deleted and ensure proper validation and error handling.
Acceptance Criteria
API Endpoint Implementation:
api/v1/customers/{customerId}
.Data Validation and Authorization:
Response:
Request Example:
DELETE /api/customers/{customerId}
Successful Response:
Error Response:
if a valid customer ID provided but no customer with this ID found in the database
Purpose
Provides a backend service to delete customer records securely, ensuring only authorized admins can perform this action.
Requirements
Expected Outcome
API endpoint allows admins to delete customer records securely, returning appropriate success and error responses.
Status Codes
Testing