Lo scopo principale dell’API Driver è quello di fornire informazioni sul driver. Questa API prevede due tipi di richieste: una per un driver specifico e una per tutti i driver.
Richiesta di esempio per un driver specifico:
GET /drivers/{driverId}?version=1&api_key=<...>
HOST:api.fm-track.com
Content-Type:application/json;charset=UTF-8
Il seguente parametro è opzionale. Se è incluso, la richiesta restituirà i dati di un singolo driver. Se viene omesso, verranno restituiti i dati di tutti i driver.
Parameter | Type | Description |
---|---|---|
driverId | String | Driver identifier |
Affinché questa API funzioni, i seguenti parametri sono obbligatori:
Parameter | Type | Description |
---|---|---|
version | String | Version of the API, currently only version=1 is available |
api_key | String | User identification key |
Di seguito è riportato un esempio di risposta:
{ "id": "string", "first_name": "string", "last_name": "string" }
I campi di risposta che possono essere ricevuti con ogni tipo di parametro sono descritti nella tabella successiva:
Parameter | Type | Description | Units |
---|---|---|---|
id | String | Driver identifier | Text |
first_name | String | The driver’s first name | Text |
last_name | String | The driver’s last name | Text |
Gli endpoint API, i parametri di richiesta e le risposte possono essere visualizzati in anteprima in “Swagger” attraverso questo link: https://api.fm-track.com