Dashboard

Get counters for dashboard

GET articles

Endpoint

GET /api/v1/dashboard/counters

Parameters

Name Description
start_date Data starting from
end_date Data ending at

Request

Route

GET /api/v1/dashboard/counters

Headers

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

Query Parameters

{}=

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
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"9ee7cb21c12871c4392b74296436b8de"
cache-control: max-age=0, private, must-revalidate
x-request-id: efef1298-36e5-4531-bcc8-12589db2a372
x-runtime: 0.057527
content-length: 285

Body

{
  "drivers": {
    "total": 8,
    "active": 2,
    "hired": 5
  },
  "jobs": {
    "total": 5,
    "active": 5,
    "posts": 11
  },
  "operators": 20,
  "revenue": {
    "GBP": {
      "earned": 1000.0,
      "vat": 200.0,
      "earned_with_vat": 1200.0,
      "logged": 40.08,
      "due": 1000.0
    },
    "EUR": {
      "earned": 200.0,
      "vat": 40.0,
      "earned_with_vat": 240.0,
      "logged": 8.02,
      "due": 200.0
    }
  }
}