Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 896 Bytes

File metadata and controls

43 lines (35 loc) · 896 Bytes

Get tasks with label

Description: Get a list of all tasks with the label.
URL: /api/label/:labelId/task/
Method: GET
Data constraints: None

Example request:

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

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "1",
      "name": "TestTask1",
      "description": "This is the 1st test task.",
      "createdAt": "2020-11-22T15:45:20.197Z",
      "updatedAt": "2020-11-22T15:45:20.197Z"
    },
    {
      "id": "2",
      "name": "TestTask2",
      "description": "This is the 2nd test task.",
      "createdAt": "2020-11-22T15:45:20.168Z",
      "updatedAt": "2020-11-22T15:45:20.168Z"
    }
  ]
}