Tech-Student-Labs / cnd_cotton_factory_exercise

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

Pants Product Details #3

Open mosdevly opened 3 years ago

mosdevly commented 3 years ago

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

Pants
    type: String
    inseam: Integer
    waist: Integer
    size: String (read only representation of waist x inseam)
    color: String
    designer: String
    price: BigDecimal

Pants come in the following types: athletic, jeans, culottes, dungarees. The top designers are: Encoded, Jeanery, Trouser Wouser.

This work may include:

All code must be 100% tested. This will 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 accept JSON

Responses: