ucsb-cs156-s23 / team02-s23-7pm-2

Home Page:https://ucsb-cs156-s23.github.io/team02-s23-7pm-2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add DELETE endpoint for a specific record in ClothingBrand table

Arik opened this issue · comments

commented

Add DELETE endpoint for a specific record in ClothingBrand table.

Acceptance Criteria:

  • In ClothingBrandController.java there is code for an
    endpoint DELETE /api/ClothingBrand?id=123 endpoint
    that deletes the record if it exists, and returns 200 (ok) and
    the text record 123 deleted, or returns 404 (Not Found) and
    the text record 123 not found if it does not.
  • The Swagger-UI endpoints for this endpoint is well documented
    so that any member of the team can understand how to use it.
  • The endpoint works as expected on localhost.
  • The endpoint works as expected when deployed to Dokku.
  • There is full test coverage (Jacoco) for the new code in
    ClothingBrandController.java
  • There is full mutation test coverage (Pitest) for new code in
    ClothingBrandController.java