This is a boilerplate API with Java to add CRUD operations to a postgreSQL database.
API address is:
http://localhost:8080
GET /api/users
GET /api/users/{uid}
POST /api/users
Parameter | Type | Description |
---|---|---|
firstName |
string |
Required. |
lastName |
string |
Required. |
email |
string |
Required. |
PUT /api/users/{uid}
Parameter | Type | Description |
---|---|---|
firstName |
string |
Required. |
lastName |
string |
Required. |
email |
string |
Required. |
DELETE /api/users/{uid}
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