Favourite Drivers

Get current operator company’s favourite drivers

GET favourite drivers

Endpoint

GET /api/v1/favourite_drivers

Parameters

Name Description
by_name Filter by driver name
page Page number
per_page Number of items per page

Request

Route

GET /api/v1/favourite_drivers?by_name=John&by_state=former

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNzQiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0NDAsImV4cCI6MTc2MzU0MjQ0MCwianRpIjoiOTQ3YjlhY2MtNDE1My00ZGRiLWI3YzctZTJiNWMzNTEzM2U0In0.vGg5DKWW7PfoME8IfeMkR4DQwQ7N5t58RL8YJ8QeCpo
Host: example.org
Cookie: 

Query Parameters

by_name=John
by_state=former

Body

{
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 2
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"8daaab932f4ed9c0764594ed0ebedf4d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 942edf5d-0e8a-429d-a4c3-6d2ad1063674
x-runtime: 0.021952
content-length: 340

Body

{
  "favourite_drivers": [
    {
      "id": 19,
      "chat_id": 221,
      "driver": {
        "id": 376,
        "first_name": "John",
        "last_name": "Doe",
        "profile_id": 119,
        "referral_code": "678246"
      },
      "job_name": "Central Producer"
    },
    {
      "id": 20,
      "chat_id": 223,
      "driver": {
        "id": 377,
        "first_name": "John",
        "last_name": "Doe",
        "profile_id": 120,
        "referral_code": "312216"
      },
      "job_name": "Human Consulting Engineer"
    }
  ]
}