Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.24 KB

File metadata and controls

53 lines (45 loc) · 1.24 KB

Get trackings of task

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

Example request:

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

Example result:

Status: 200 OK

{
  "data": [
    {
      "id": "1",
      "description": "This is the 1st test tracking.",
      "startTime": "2020-11-15T10:00:00.000Z",
      "endTime": null,
      "createdAt": "2020-11-22T15:45:20.143Z",
      "updatedAt": "2020-11-22T15:55:42.000Z"
    },
    {
      "id": "2",
      "description": "This is the 2nd test tracking.",
      "startTime": "2020-11-15T12:00:00.000Z",
      "endTime": null,
      "createdAt": "2020-11-22T15:45:20.150Z",
      "updatedAt": "2020-11-22T16:01:03.000Z"
    },
    {
      "id": "3",
      "description": "This is the 3rd test tracking.",
      "startTime": "2020-11-15T12:00:00.000Z",
      "endTime": "2020-11-15T15:00:00.000Z",
      "createdAt": "2020-11-22T15:45:20.159Z",
      "updatedAt": "2020-11-22T16:01:03.000Z"
    }
  ]
}