Retrieve the details for a task on the TODO list

GET /tasks/{taskId}

Returns the details for a task from the TODO list by identifier

Path parameters

  • taskId integer Required

    The ID of the task to operate on

Responses

  • 200 application/json

    Returns the details of the retrieved task

    Hide response attributes Show response attributes object
    • id integer

      The unique identifier for a task.

    • A brief summary of the task.

    • status string

      The current status of the task, which can be 'new', 'in progress', or 'completed'.

      Values are new, in progress, or completed. Default value is new.

GET /tasks/{taskId}
curl \
 -X GET https://api.todolist.local/v1/tasks/3 \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": 3,
  "status": "new",
  "description": "Read a book"
}