Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 609 Bytes

File metadata and controls

35 lines (28 loc) · 609 Bytes

API_Test

Usage

  • 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

Project setup

Run with Docker

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