hngprojects / hng_boilerplate_java_web

Apache License 2.0
155 stars 43 forks source link

Feat: Implement CRUD operations for products within an organization #658

Open Am0du opened 1 month ago

Am0du commented 1 month ago

Description: Implement the following CRUD (Create, Read, Update, Delete) operations for managing products within an organization:

  1. Create a Product

    • Endpoint: POST /organisation/{org_id}/products
    • Description: Allows an admin user to create a product under a specific organization.
    • Pre-Authorization: Admin role required.
  2. Delete a Product

    • Endpoint: DELETE /products/{product_id}
    • Description: Allows an admin user to delete a product by its ID.
    • Pre-Authorization: Admin role required.
  3. Edit a Product

    • Endpoint: PUT /products
    • Description: Allows an admin user to edit an existing product.
    • Pre-Authorization: Admin role required.

Acceptance Criteria:

Error Handling: