GET /api/driver/{id}

GET /api/driver/{id}

Path parameters

  • id integer(int64) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • name string
    • license string
    • license_expiration string(date-time)
    • truck_id integer(int64)
    • truck_number string
    • truck_carrier object

      Additional properties are allowed.

      Hide truck_carrier attributes Show truck_carrier attributes object
      • id integer(int64)
      • name string
      • fleet_id string
      • scac string
      • usdot string
      • rfc string
      • email string
      • address string
      • created_by string
      • created_at string(date-time)
      • last_modified_by string
      • last_modified_at string(date-time)
    • license_picture object Deprecated

      Additional properties are allowed.

      Hide license_picture attribute Show license_picture attribute object Deprecated
      • id integer(int64)
    • license_picture_id integer(int64)
    • safety_card_picture_id integer(int64)
    • active boolean
    • carrier object

      Additional properties are allowed.

      Hide carrier attributes Show carrier attributes object
      • id integer(int64)
      • name string
      • fleet_id string
      • scac string
      • usdot string
      • rfc string
      • email string
      • address string
      • created_by string
      • created_at string(date-time)
      • last_modified_by string
      • last_modified_at string(date-time)
    • created_at string(date-time)
    • last_modified_at string(date-time)
  • 401

    Not Authorized

  • 403

    Not Allowed

GET /api/driver/{id}
curl \
 --request GET 'https://api-dev.gatego.io/api/driver/{id}'
Response examples (200)
{
  "id": 42,
  "name": "string",
  "license": "string",
  "license_expiration": "2022-03-10T16:15:50Z",
  "truck_id": 42,
  "truck_number": "string",
  "truck_carrier": {
    "id": 42,
    "name": "string",
    "fleet_id": "string",
    "scac": "string",
    "usdot": "string",
    "rfc": "string",
    "email": "string",
    "address": "string",
    "created_by": "string",
    "created_at": "2022-03-10T16:15:50Z",
    "last_modified_by": "string",
    "last_modified_at": "2022-03-10T16:15:50Z"
  },
  "license_picture": {
    "id": 42
  },
  "license_picture_id": 42,
  "safety_card_picture_id": 42,
  "active": true,
  "carrier": {
    "id": 42,
    "name": "string",
    "fleet_id": "string",
    "scac": "string",
    "usdot": "string",
    "rfc": "string",
    "email": "string",
    "address": "string",
    "created_by": "string",
    "created_at": "2022-03-10T16:15:50Z",
    "last_modified_by": "string",
    "last_modified_at": "2022-03-10T16:15:50Z"
  },
  "created_at": "2022-03-10T16:15:50Z",
  "last_modified_at": "2022-03-10T16:15:50Z"
}