- The server listens on port 8282
- The client listens on port 8080
- both projects have a swagger ui on the root endpoint
Example post request to the client:
{
"method": "amount",
"number": 1000
}
Other possible values for method:
| Method | Description |
|---|---|
| nothing | Returns a random beer |
| amount | Returns the amount of beer |
| id | Returns a beer with that id |
First, you need to build the project with maven:
mvn clean install -P api_test
Then just run the docker-compose:
docker-compose up -d