- Build the Application:
./gradlew build -x test - Start the Stack:
docker-compose up --build
- Verify:
The API will be available at
http://localhost:8080.
Request:
curl -X POST -H "Content-Type: text/plain" -d "https://github.com/kataokaa" http://localhost:8080/api/tasksResponse:
{
"id": 101,
"description": "https://github.com/kataokaa",
"status": "PENDING",
"result": null
}Request:
curl http://localhost:8080/api/tasks/101Response (After Processing):
{
"id": 101,
"status": "COMPLETED",
"result": "http://localhost:8080/s/a1b2c3"
}