Spring Data for H2 example
H2 database runs at runtime and does not need installation
curl -X POST \
http://localhost:8080/persons \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"name": "Cem Serit",
"age": 27
}'
curl -X PUT \
http://localhost:8080/persons/dbbb332b-069b-4c9b-8ddd-e8d952d6263c \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"name": "Cem",
"age": 27
}'
curl -X GET \
http://localhost:8080/persons
curl -X GET \
http://localhost:8080/persons/dbbb332b-069b-4c9b-8ddd-e8d952d6263c
curl -X DELETE \
http://localhost:8080/persons/8781d82d-08bc-4148-b00f-4ad7750b4934