Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 494 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 494 Bytes

Spring Validation Example

This project demonstrates Spring Validations using Spring Boot.

Read a full description of this repository on my blog post about Spring validation.

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"