Tech-Student-Labs / cnd_cotton_factory_exercise

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

Shoes Product Details #2

Open mosdevly opened 3 years ago

mosdevly commented 3 years ago

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

Shoe
    size: Integer
    height: String
    type: String
    material: String
    designer: String
    laced: Boolean
    price: BigDecimal

Requirements

This work will probably include:

All code must be 100% tested. This might require more than one PR so keep this issue open so you can use it 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:

mosdevly commented 3 years ago

It's not required, especially for local development. Feel free to use H2 for that, for now.