Open Am0du opened 1 month ago
Description: Implement the following CRUD (Create, Read, Update, Delete) operations for managing products within an organization:
Create a Product
POST /organisation/{org_id}/products
Delete a Product
DELETE /products/{product_id}
Edit a Product
PUT /products
Acceptance Criteria:
Error Handling:
UnAuthorizedException
NotFoundException
Description: Implement the following CRUD (Create, Read, Update, Delete) operations for managing products within an organization:
Create a Product
POST /organisation/{org_id}/products
Delete a Product
DELETE /products/{product_id}
Edit a Product
PUT /products
Acceptance Criteria:
POST /organisation/{org_id}/products
endpoint creates a product under the specified organization.DELETE /products/{product_id}
endpoint deletes the specified product.PUT /products
endpoint updates the specified product with new data.Error Handling:
UnAuthorizedException
with a 403 status code.NotFoundException
with a 404 status code.