A TODO-Task list application (1.0.0)

Download OpenAPI specification:Download

A simple application to handle tasks.

task

Task management

Get the list of all tasks

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a new task

Request Body schema: application/json
completed
boolean

indicates if a taks is completed or not

description
required
string

description of the task

Responses

Request samples

Content type
application/json
{
  • "completed": true,
  • "description": "My important task"
}

Response samples

Content type
application/json
{
  • "completed": true,
  • "description": "My important task",
  • "id": "e1cb23d0-6cbe-4a29-b586-bfa424bc93fd"
}

Get a single task based on its id

path Parameters
taskId
required
string
Example: e1cb23d0-6cbe-4a29-b586-bfa424bc93fd

The id of the task

Responses

Response samples

Content type
application/json
{
  • "completed": true,
  • "description": "My important task",
  • "id": "e1cb23d0-6cbe-4a29-b586-bfa424bc93fd"
}

Update an existing task

path Parameters
taskId
required
string
Example: e1cb23d0-6cbe-4a29-b586-bfa424bc93fd

The id of the task

Request Body schema: application/json
completed
boolean

indicates if a taks is completed or not

description
required
string

description of the task

Responses

Request samples

Content type
application/json
{
  • "completed": true,
  • "description": "My important task"
}

Response samples

Content type
application/json
{
  • "completed": true,
  • "description": "My important task",
  • "id": "e1cb23d0-6cbe-4a29-b586-bfa424bc93fd"
}

Delete an existing task

path Parameters
taskId
required
string
Example: e1cb23d0-6cbe-4a29-b586-bfa424bc93fd

The id of the task

Responses

Response samples

Content type
application/json
{
  • "code": "1000",
  • "message": "Could not perform the task"
}