|
@@ -726,7 +726,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
/drivers/{driverId}/units/{unitId}/actions/{actionId}:
|
|
/drivers/{driverId}/units/{unitId}/actions/{actionId}:
|
|
|
- get:
|
|
|
|
|
|
|
+ get: # done
|
|
|
operationId: driverIdUnitIdActionIdGET
|
|
operationId: driverIdUnitIdActionIdGET
|
|
|
summary: Publish detailed info about the action performed on the unit by the driver
|
|
summary: Publish detailed info about the action performed on the unit by the driver
|
|
|
parameters:
|
|
parameters:
|
|
@@ -756,6 +756,7 @@ paths:
|
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
|
- $ref: '#/components/parameters/unitIdParam'
|
|
- $ref: '#/components/parameters/unitIdParam'
|
|
|
- $ref: '#/components/parameters/actionIdParam'
|
|
- $ref: '#/components/parameters/actionIdParam'
|
|
|
|
|
+ - $ref: '#/components/parameters/zoneParam'
|
|
|
- $ref: '#/components/parameters/navigationLinksParam'
|
|
- $ref: '#/components/parameters/navigationLinksParam'
|
|
|
responses:
|
|
responses:
|
|
|
200:
|
|
200:
|
|
@@ -774,15 +775,13 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
|
|
|
|
|
- /drivers/{driverId}/units/{unitId}/actions/{actionId}/events/{eventId}:
|
|
|
|
|
|
|
+ /events/{eventId}:
|
|
|
get:
|
|
get:
|
|
|
- operationId: driverIdUnitIdActionIdEventsGET
|
|
|
|
|
|
|
+ operationId: eventIdGET
|
|
|
summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
|
|
summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
|
|
|
parameters:
|
|
parameters:
|
|
|
- - $ref: '#/components/parameters/driverIdParam'
|
|
|
|
|
- - $ref: '#/components/parameters/unitIdParam'
|
|
|
|
|
- - $ref: '#/components/parameters/actionIdParam'
|
|
|
|
|
- $ref: '#/components/parameters/eventIdParam'
|
|
- $ref: '#/components/parameters/eventIdParam'
|
|
|
|
|
+ - $ref: '#/components/parameters/zoneParam'
|
|
|
- $ref: '#/components/parameters/navigationLinksParam'
|
|
- $ref: '#/components/parameters/navigationLinksParam'
|
|
|
responses:
|
|
responses:
|
|
|
200:
|
|
200:
|
|
@@ -798,9 +797,9 @@ paths:
|
|
|
schema:
|
|
schema:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
- /drivers/{driverId}/units/{unitId}/actions/{actionId}/events/{eventId}/observations:
|
|
|
|
|
|
|
+ /events/{eventId}/observations:
|
|
|
get:
|
|
get:
|
|
|
- operationId: driverIdUnitIdActionIdEventIdObservationsGET
|
|
|
|
|
|
|
+ operationId: eventIdObservationsGET
|
|
|
summary: Publish telemetry observations created by the driver while performing specific action on the unit at the time/event
|
|
summary: Publish telemetry observations created by the driver while performing specific action on the unit at the time/event
|
|
|
parameters:
|
|
parameters:
|
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
@@ -825,9 +824,9 @@ paths:
|
|
|
schema:
|
|
schema:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
- /drivers/{driverId}/units/{unitId}/actions/{actionId}/events/{eventId}/observations/locations:
|
|
|
|
|
|
|
+ /events/{eventId}/observations/locations:
|
|
|
get:
|
|
get:
|
|
|
- operationId: driverIdUnitIdActionIdEventIdLocationsGET
|
|
|
|
|
|
|
+ operationId: eventIdLocationsGET
|
|
|
summary: Publish locations created by the driver while performing specific action on the unit at the time/event
|
|
summary: Publish locations created by the driver while performing specific action on the unit at the time/event
|
|
|
parameters:
|
|
parameters:
|
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
- $ref: '#/components/parameters/driverIdParam'
|
|
@@ -2531,6 +2530,9 @@ components:
|
|
|
type: object
|
|
type: object
|
|
|
required:
|
|
required:
|
|
|
- id
|
|
- id
|
|
|
|
|
+ - driverId
|
|
|
|
|
+ - actionId
|
|
|
|
|
+ - unitId
|
|
|
- fromTime
|
|
- fromTime
|
|
|
- toTime
|
|
- toTime
|
|
|
x-NavigationLinks:
|
|
x-NavigationLinks:
|
|
@@ -2580,6 +2582,15 @@ components:
|
|
|
id:
|
|
id:
|
|
|
type: integer
|
|
type: integer
|
|
|
format: int64
|
|
format: int64
|
|
|
|
|
+ driverId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ format: int64
|
|
|
|
|
+ actionId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ format: int64
|
|
|
|
|
+ unitId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ format: int64
|
|
|
fromTime:
|
|
fromTime:
|
|
|
description: Time when the event starts
|
|
description: Time when the event starts
|
|
|
type: string
|
|
type: string
|
|
@@ -2593,9 +2604,12 @@ components:
|
|
|
Driver@NavigationLink: "<domain>/drivers/42"
|
|
Driver@NavigationLink: "<domain>/drivers/42"
|
|
|
DriverUnit@NavigationLink: "<domain>/drivers/42/units/105"
|
|
DriverUnit@NavigationLink: "<domain>/drivers/42/units/105"
|
|
|
Action@NavigationLink: "<domain>/actions/258"
|
|
Action@NavigationLink: "<domain>/actions/258"
|
|
|
- Observations@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999/observations"
|
|
|
|
|
- Locations@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999/observations/locations"
|
|
|
|
|
|
|
+ Observations@NavigationLink: "<domain>/events/999/observations"
|
|
|
|
|
+ Locations@NavigationLink: "<domain>/events/999/observations/locations"
|
|
|
id: 999
|
|
id: 999
|
|
|
|
|
+ driverId: 42
|
|
|
|
|
+ actionId: 258
|
|
|
|
|
+ unitId: 105
|
|
|
fromTime: "2023-01-25 15:35:32Z"
|
|
fromTime: "2023-01-25 15:35:32Z"
|
|
|
toTime: "2023-03-20 10:35:32Z"
|
|
toTime: "2023-03-20 10:35:32Z"
|
|
|
|
|
|