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
Dresses come in the following types: tunic, gown, wrap, tutu and only dress shirts can have sleeve and neck measurements.
Dresses must either have a size OR they must have waist, length and hip measurements, but not both.
This work will probably include:
Entities
Repositories
Services
Controllers
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:
Dress data as JSON
Should not include sleeve or neck measurements; only customSize.
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.
Restrictions
tunic, gown, wrap, tutu
and only dress shirts can have sleeve and neck measurements.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
Requests: JSON
Responses:
customSize
.