tech-student-labs / cnd_cotton_factory_exercise Goto Github PK
View Code? Open in Web Editor NEWClass team project to develop a Spring Web microservice
Class team project to develop a Spring Web microservice
Please do some research to add Sweaters to our product line. There's many kinds of sweaters so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Sweater
type: String
sleeve: Integer
neck: Integer
chest: Integer
size: String
customSize: String (read only representation of chest x neck x sleeve)
color: String
longSleeve: Boolean
price: BigDecimal
Restrictions
cardigan, pullover, turtle neck, vest
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.
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:
size
or customSize
Please do some research to add accessories to our product line. There's many kinds of accessories: socks, scarves, cuff links, etc. So please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Accessory
type: String
size: Integer
material: String
designer: String
color: String
price: BigDecimal
Requirements
belt, socks, scarf, cuff link, tie clip
cotton, silk, leather, metal
Encoded, Footsy, Stepper Leper
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.
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:
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.
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:
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
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.
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:
customSize
.Please do some research to add Jackets our product line. There's many kinds of shirts so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Jacket
season: String
size: String
color: String
style: String
adultSize: Boolean
price: BigDecimal
Requirements
winter, spring, summer, fall
.denim, hooded, overcoat, bomber
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.
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:
Please do some research to add Slacks to our product line. There's many kinds of Slacks so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Slacks
type: String
inseam: Integer
waist: Integer
size: String (read only representation of waist x inseam)
color: String
designer: String
price: BigDecimal
casual, formal
.Encoded, Slick, 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.
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:
Please do some research to add Shirts to our product line. There's many kinds of shirts so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Shirt
type: String
sleeve: Integer
neck: Integer
size: String
customSize: String (read only representation of neck x sleeve)
color: String
longSleeve: Boolean
price: BigDecimal
Restrictions
tee, dress, polo, henley
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.
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
Response
size
or customSize
Please do some research to add Skirts to our product line. There's many kinds of Skirts so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Skirt
type: String
waistSize: Integer
length: Integer
size: String
customSize: String (read only representation of waist x length)
color: String
price: BigDecimal
Restrictions
layered, wrap, mini
.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.
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:
customSize
.Please do some research to add accessories to our product line. There's many kinds of accessories so please use your best judgement to implement a solution that doesn't require adding a bunch of models.
Tie
type: String
length: Integer
width: Integer
material: String
designer: String
color: String
price: BigDecimal
Requirements
bow tie, neck tie
cotton, silk, nylon
Encoded, Footsy, Stepper Leper
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.
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:
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
heels, athletic, boot, sandal
normal, ankle, knee
canvas, leather, rubber
Encoded, Footsy, Stepper Leper
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.
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.