Skip to content

saikat709/runnerz-api-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runnerz

A spring boot api application.

# To run the project

./mvnw spring-boot:run

# To test API endpoints - Using curl

  1. 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
  1. 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" }'

H2 - ImMemory Database

Available at localhost:8080/h2-console

About

A project creating with Spring Boot of Java, an api backend for keep tracking or runs.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages