Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 948 Bytes

File metadata and controls

47 lines (39 loc) · 948 Bytes

Get labels of task

Description: Get a list of all labels of a certain task.
URL: /api/task/:taskId/label/
Method: GET
Data constraints: None

Example request:

GET http://localhost:3000/api/task/1/label

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "1",
      "name": "TestLabel1",
      "createdAt": "2020-11-22T15:45:20.124Z",
      "updatedAt": "2020-11-22T15:55:42.000Z"
    },
    {
      "id": "2",
      "name": "TestLabel2",
      "createdAt": "2020-11-22T15:45:20.132Z",
      "updatedAt": "2020-11-22T15:45:20.132Z"
    },
    {
      "id": "3",
      "name": "TestLabel3",
      "createdAt": "2020-11-22T15:45:20.138Z",
      "updatedAt": "2020-11-22T15:45:20.138Z"
    }
  ]
}