Example of real-world spring validation use cases
Java
Latest commit 5123ca9 Dec 22, 2016 @brendanbenson Initial commit
Permalink
Failed to load latest commit information.
applications/product-api Initial commit Dec 23, 2016
components Initial commit Dec 23, 2016
gradle/wrapper Initial commit Dec 23, 2016
.gitignore Initial commit Dec 23, 2016
README.md Initial commit Dec 23, 2016
build.gradle Initial commit Dec 23, 2016
gradlew Initial commit Dec 23, 2016
gradlew.bat Initial commit Dec 23, 2016
settings.gradle Initial commit Dec 23, 2016
test-products-endpoint.xml Initial commit Dec 23, 2016

README.md

Spring Validation Example

This project demonstrates Spring Validations using Spring Boot.

To run the application:

./gradlew bootRun

To send a request to the products endpoint:

curl -X POST -H "Content-Type: application/json" -d '{
    "name": "Avocado",
    "price": 79,
    "sku": "AV87"
}' "http://localhost:8080/products"