Skip to content

alluster/docker-java-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java SpringBoot REST API with Docker + PostgreSQL database

This is a boilerplate API with Java to add CRUD operations to a postgreSQL database.

API Reference

API address is:

  http://localhost:8080

Get all users

  GET /api/users

Get user

  GET /api/users/{uid}

Add user

  POST /api/users
Parameter Type Description
firstName string Required.
lastName string Required.
email string Required.

Update user

  PUT /api/users/{uid}
Parameter Type Description
firstName string Required.
lastName string Required.
email string Required.

Delete user

  DELETE /api/users/{uid}

Installation

Use Docker on your local machine and make sure it's running.

  cd docker-api-example
  docker-compose up

To view Adminer GUI to PostgreSQL in your browser navigate to:

  localhost:8070

About

Java SpringBoot API with Docker + PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages