We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create an API endpoint to allow users to delete a product by its ID.
The purpose of this endpoint is to provide a way for users to delete products from our database by their ID.
/api/v1/products/{product_id}
200 OK
404 Not Found
500 Internal Server Error
{ "message": "Product deleted successfully", "status_code": 200 }
{ "status": "Not Found", "message": "Product not found", "status_code": 404 }
{ "status": "An unexpected error occurred", "message": "Internal server error", "status_code": 500 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Create an API endpoint to allow users to delete a product by its ID.
Acceptance Criteria
Purpose
The purpose of this endpoint is to provide a way for users to delete products from our database by their ID.
Requirements
/api/v1/products/{product_id}
.200 OK
and unsuccessful requests404 Not Found
, and500 Internal Server Error
.Request Example
/api/v1/products/{product_id}
Successful Response
Unsuccessful Response
Unit Tests
Expected Outcome
The text was updated successfully, but these errors were encountered: