This repository contains two projects with Spring Boot Stack, one in Java and another in Kotlin, both projects have the same endpoints and business rules.
Inside a project just type:
mvn spring-boot:run
All examples use HTTPie
http POST :8080/persons id=1 firstName='John' lastName='Nash' age=40
http POST :8080/persons id=2 firstName='Mary' lastName='Jane' age=32
http POST :8080/persons id=3 firstName='Carl' lastName='Junior' age=21
http :8080/persons