Prerequisites:
- JAVA 17 JDK
- Maven
How to:
- How to build:
mvn clean package spring-boot:repackage
- How to run:
java -jar target/demo-0.0.1-SNAPSHOT.jar
- Write unit tests
- Complete remaining integration tests
- Complete missing endpoint: 4. Exposes a REST endpoint to allow for updating of any of the fields of a single product
- Fix issue with @PostConstruct and integration tests
- Endpoint namings can be improved: /products/byName and /products/byCategory
- URL can be moved to application.properties
GET http://localhost:8080/api/v1/products/byName?name=Handmade Plastic Fish
GET http://localhost:8080/api/v1/products/byCategory?category=Books&inStock=false
GET http://localhost:8080/api/v1/products/byCategory?category=Books
PUT http://localhost:8080/api/v1/products?name=Handmade Plastic Fish&stockLevel=44