Skip to content

kataokaa/task-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  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"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors