Skip to content

boilerplate for dockerized springboot api + postgres deployed by docker-compose. simple to-do api, accompanied with workflows for github actions to build+test docker stack

Notifications You must be signed in to change notification settings

jdleo/docker-java-springboot-postgres-api

Repository files navigation

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}

About

boilerplate for dockerized springboot api + postgres deployed by docker-compose. simple to-do api, accompanied with workflows for github actions to build+test docker stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published