gcd-ca
is sample app using Clean Architecture way
- Install docker - doc
- Clone or download project
- Navigate to
gcd-ca
directory - run
docker-compose up -d --build
Create task to calculate GCD
POST http://{app_host}/api/v1/task?n1={param_1}&n2={param_2}
param_1
- The first integer paramparam_2
- The second integer param
Return identifier of created task in UUID format
Get status of task
GET http://{app_host}/api/v1/task/{task_identifier}
task_identifier
- Task identifier in UUID format
Response format: application/xml Response body:
{
"identifier": "e4e2763c-5ffe-4839-ae9c-d031dea4a278",
"status": "DONE",
"n1": 195,
"n2": 45,
"result": 15
}
This project is licensed with the MIT license.