Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.1 KB

File metadata and controls

61 lines (43 loc) · 1.1 KB

build-workflow test

Docker Java Springboot w/ Postgres, Dockerized

Simple proof-of-concept boilerplate for dockerized Java Springboot API, with postgresql service in Docker Compose.

Run

docker-compose up

List Todos

GET localhost:8080/api/v1/todos

Get Todo

GET localhost:8080/api/v1/todos/{id}

Create Todo

POST localhost:8080/api/v1/todos

Body:

{
  "title": "test",
  "description": "test description",
  "completed": false
}

Update Todo

PUT localhost:8080/api/v1/todos/{id}

Body:

{
  "title": "test",
  "description": "updated description",
  "completed": true
}

Delete Todo

DELETE localhost:8080/api/v1/todos/{id}