A spring boot api application.
./mvnw spring-boot:run- Get: Getting a Run Info
curl -x GET localhost:8080/runs
// or
curl -s localhost:8080/run
// for pretty printing.. using json_pp or we can use jp
curl -s localhost:8080/run | json_pp
- Create: Creating A Run
curl -X POST localhost:8080/run \
-H 'Content-Type: application/json' \
-d '{ "id": 3, "title": "Third Run", "startOn" : "2025-03-15T21:33:05.104952507", "stopOn":"2025-03-15T21:34:05.104957073", "miles":20, "location":"INDOOR" }'Available at localhost:8080/h2-console