Lista jazd testowych
Zwraca wszystkie jazdy testowe istniejące w systemie
Metoda: GET
Ścieżka: /api/v1/events/list/{page}/{perPage}
Parametry
| Nazwa | Typ | Opis |
|---|---|---|
| page | integer |
Numer strony |
| perPage | integer |
Ilość wyników na strone |
Parametry odpowiedzi
| Nazwa | Typ | Opis |
|---|---|---|
| id | string | Unikalny identyfikator jazdy testowej |
| id_user | string | Id handlowca |
| id_customer | string | Id klienta |
| start_date | string | Data rozpoczęcia jazdy testowej |
| end_date | string | Data zakończenia jazdy testowej |
| mileage | string | Przebieg |
| vehicle | object | Dane pojazdu |
| agreement | string | Adres URL umowy |
| created_at | string | Data dodania jazdy testowej |
| modified_at | string | Data ostatniej aktualizacji |
Odpowiedź w formacie JSON
{
"status": 200,
"data": {
"list": [
{
"id": "string",
"id_user": "string",
"id_customer": "string",
"start_date": "string",
"end_date": "string",
"mileage": "string",
"vehicle": [],
"agreement": "string",
"created_at": "string",
"modified_at": "string"
}
],
"pagination": {
"page": "integer",
"pages_count": "integer",
"per_page": "integer",
"total": "integer"
}
}
}
Odpowiedź w formacie JSON
{
"status": 400,
"description": "Nieprawidłowe parametry"
}
Odpowiedź w formacie JSON
{
"status": 403,
"description": "Niepoprawne dane logowania"
}