Skip to content

Files

Latest commit

 

History

History
42 lines (34 loc) · 917 Bytes

File metadata and controls

42 lines (34 loc) · 917 Bytes

Get tracking by id

Description: Get a certain tracking by its id.
URL: /api/tracking/:trackingId
Method: GET
Data constraints: None

Example request:

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

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:45:20.000Z",
    "task": {
      "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"
    }
  }
}