Tech-Student-Labs / cnd_cotton_factory_exercise

Class team project to develop a Spring Web microservice
0 stars 4 forks source link

Dress Product Detail #5

Open mosdevly opened 3 years ago

mosdevly commented 3 years ago

Please do some research to add Dresses to our product line. There's many kinds of dresses so please use your best judgement to implement a solution that doesn't require adding a bunch of models.

Dress
    type: String
    waistSize: Integer
    hipSize: Integer
    length: Integer
    size: String
    customSize: String (read only representation of waist x length)
    color: String
    price: BigDecimal

Restrictions

This work will probably include:

All code must be 100% tested. This might require more than one PR so keep this issue open for use on each PR dedicated to this feature.

All questions and concerns should be discussed here before any code is submitted. After code is submitted use the relevant PR to discuss the implementation.

Specs

URI HTTP Request REST Method Response Description
/api/products/{product_name} GET List 200 OK A listing of all available products.
/api/products/{product_name} POST Create 201 CREATED Create a new product.
/api/products/{product_name}/{productId} GET Read 200 OK Details for a specific product.
/api/products/{product_name}/{productId} PUT Update 200 OK Update a specific product.
/api/products/{product_name}/{productId} PATCH Update 200 OK Partially update a specific product.
/api/products/{product_name}/{productId} DELETE Delete 204 NO CONTENT Delete a specific product.

Requests: JSON

Responses: