./mvnw spring-boot:run
curl -X POST localhost:8080/agreements -H "Content-Type: application/json" -d '{"name": "myAgreement", "signedBy": "Jhon Doe", "products": [e": "Product 1", "price": 100.50, "products": [{"name": "Product 2", "price": 50.30, "products": []}]}]}'
curl localhost:8080/agreements/myAgreement -H "Content-Type: application/json"
You can find a generated file called myAgreement.