Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 774 Bytes

File metadata and controls

43 lines (37 loc) · 774 Bytes
  1. Build the Application:
    ./gradlew build -x test
  2. Start the Stack:
    docker-compose up --build
  3. Verify: The API will be available at http://localhost:8080.

API Usage

1. Submit a URL (Create Task)

Request:

curl -X POST -H "Content-Type: text/plain" -d "https://github.com/kataokaa" http://localhost:8080/api/tasks

Response:

{
    "id": 101,
    "description": "https://github.com/kataokaa",
    "status": "PENDING",
    "result": null
}

2. Check Status

Request:

curl http://localhost:8080/api/tasks/101

Response (After Processing):

{
    "id": 101,
    "status": "COMPLETED",
    "result": "http://localhost:8080/s/a1b2c3"
}