Run the following command to start the application using Docker Compose:
docker-compose up
Welcome to the application:
http://localhost:8095
You can get it using the following URI:
http://localhost:8095/counter/counters
Method: GET
To create and add counter to DB, use the following URI:
http://localhost:8095/counter/counters/add-new-counter
Method: GET
To delete a counter by ID, use the following URI:
http://localhost:8095/counter/counters/delete-counter
Method: GET
You can get it using the following URI:
http://localhost:8095/counter/get-counter?counterId=1057
Method: GET
Returns:
Value: 300
To increment counter by value, use the following URI:
http://localhost:8095/counter/increment-counter
Request JSON:
{
"counterId":1057,
"incrementCount":20
}
Method: POST
Returns: New value of counter, 320