Sample spring boot application connecting to a Postgres DB
- Docker
- Build the docker image locally using
./gradlew jibDockerBuild
- Start the containers using docker compose
docker-compose up
- Use the provided Postman collection to hit the application endpoints
- Alternatively, use the following curl commands
- Create / Update customer
curl --location --request PUT 'localhost:8080/customer/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "John Smith"
}'
- Fetch customer
curl --location --request GET 'localhost:8080/customer/1'
- Delete customer
curl --location --request DELETE 'localhost:8080/customer/1'