|
@@ -679,7 +679,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
/drivers/{driverId}/actions/{actionId}/units:
|
|
/drivers/{driverId}/actions/{actionId}/units:
|
|
|
- get:
|
|
|
|
|
|
|
+ get: # done
|
|
|
operationId: driverIdActionIdUnitsGET
|
|
operationId: driverIdActionIdUnitsGET
|
|
|
summary: Publish basic info about units on which the driver performed its action
|
|
summary: Publish basic info about units on which the driver performed its action
|
|
|
parameters:
|
|
parameters:
|
|
@@ -702,6 +702,29 @@ paths:
|
|
|
schema:
|
|
schema:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
|
|
+ /drivers/{driverId}/actions/{actionId}/units/{unitId}:
|
|
|
|
|
+ get: # done
|
|
|
|
|
+ operationId: driverIdActionIdUnitIdGET
|
|
|
|
|
+ summary: Publish detail info about the unit on which the driver performed the action
|
|
|
|
|
+ parameters:
|
|
|
|
|
+ - $ref: '#/components/parameters/driverIdParam'
|
|
|
|
|
+ - $ref: '#/components/parameters/actionIdParam'
|
|
|
|
|
+ - $ref: '#/components/parameters/unitIdParam'
|
|
|
|
|
+ - $ref: '#/components/parameters/navigationLinksParam'
|
|
|
|
|
+ responses:
|
|
|
|
|
+ 200:
|
|
|
|
|
+ description: JSON Object of the unit
|
|
|
|
|
+ content:
|
|
|
|
|
+ application/json:
|
|
|
|
|
+ schema:
|
|
|
|
|
+ $ref: '#/components/schemas/DriverActionUnitDetailInfo'
|
|
|
|
|
+ default:
|
|
|
|
|
+ description: unexpected error
|
|
|
|
|
+ content:
|
|
|
|
|
+ application/json:
|
|
|
|
|
+ schema:
|
|
|
|
|
+ $ref: '#/components/schemas/Error'
|
|
|
|
|
+
|
|
|
/drivers/{driverId}/units/{unitId}/actions/{actionId}:
|
|
/drivers/{driverId}/units/{unitId}/actions/{actionId}:
|
|
|
get:
|
|
get:
|
|
|
operationId: driverIdUnitIdActionIdGET
|
|
operationId: driverIdUnitIdActionIdGET
|
|
@@ -1917,7 +1940,7 @@ components:
|
|
|
type: string
|
|
type: string
|
|
|
format: uri
|
|
format: uri
|
|
|
x-graph-properties:
|
|
x-graph-properties:
|
|
|
- linkTo: driverIdUnitIdActionIdGET
|
|
|
|
|
|
|
+ linkTo: driverIdActionIdUnitIdGET
|
|
|
properties:
|
|
properties:
|
|
|
DriverActionUnit@NavigationLink:
|
|
DriverActionUnit@NavigationLink:
|
|
|
$ref: '#/components/schemas/DriverActionUnitBasicInfo/x-NavigationLinks/DriverActionUnit@NavigationLink'
|
|
$ref: '#/components/schemas/DriverActionUnitBasicInfo/x-NavigationLinks/DriverActionUnit@NavigationLink'
|
|
@@ -1930,11 +1953,67 @@ components:
|
|
|
description:
|
|
description:
|
|
|
type: string
|
|
type: string
|
|
|
example:
|
|
example:
|
|
|
- DriverActionUnit@NavigationLink: "<domain>/drivers/42/units/25/actions/258"
|
|
|
|
|
|
|
+ DriverActionUnit@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
|
|
|
unitId: 25
|
|
unitId: 25
|
|
|
name: "Unit name"
|
|
name: "Unit name"
|
|
|
description: "Purpose of the Unit 25"
|
|
description: "Purpose of the Unit 25"
|
|
|
|
|
|
|
|
|
|
+ DriverActionUnitDetailInfo:
|
|
|
|
|
+ type: object
|
|
|
|
|
+ required:
|
|
|
|
|
+ - unitId
|
|
|
|
|
+ - name
|
|
|
|
|
+ - imei
|
|
|
|
|
+ x-NavigationLinks:
|
|
|
|
|
+ self@NavigationLink:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: uri
|
|
|
|
|
+ x-graph-properties:
|
|
|
|
|
+ linkTo: driverIdActionIdUnitIdGET
|
|
|
|
|
+ DriverAction@NavigationLink:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: uri
|
|
|
|
|
+ x-graph-properties:
|
|
|
|
|
+ linkTo: driverIdActionIdGET
|
|
|
|
|
+ Events@NavigationLink:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: uri
|
|
|
|
|
+ x-graph-properties:
|
|
|
|
|
+ linkTo: driverIdUnitIdActionIdEventsGET
|
|
|
|
|
+ Unit@NavigationLink:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: uri
|
|
|
|
|
+ x-graph-properties:
|
|
|
|
|
+ linkTo: unitIdGET
|
|
|
|
|
+ properties:
|
|
|
|
|
+ self@NavigationLink:
|
|
|
|
|
+ $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
|
|
|
|
|
+ DriverAction@NavigationLink:
|
|
|
|
|
+ $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/DriverAction@NavigationLink'
|
|
|
|
|
+ Unit@NavigationLink:
|
|
|
|
|
+ $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
|
|
|
|
|
+ Events@NavigationLink:
|
|
|
|
|
+ $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Events@NavigationLink'
|
|
|
|
|
+ unitId:
|
|
|
|
|
+ description: Identifier of the unit
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ format: int64
|
|
|
|
|
+ name:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ imei:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ description:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ example:
|
|
|
|
|
+ self@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
|
|
|
|
|
+ DriverAction@NavigationLink: "<domain>/drivers/42/actions/258"
|
|
|
|
|
+ Events@NavigationLink: "<domain>/drivers/42/units/25/actions/258/events"
|
|
|
|
|
+ Unit@NavigationLink: "<domain>/units/25"
|
|
|
|
|
+ unitId: 25
|
|
|
|
|
+ name: "Mobile Unit"
|
|
|
|
|
+ description: "Mobile Unit 25"
|
|
|
|
|
+ imei: "3434535323345"
|
|
|
|
|
+
|
|
|
|
|
|
|
|
SensorBasicInfo:
|
|
SensorBasicInfo:
|
|
|
type: object
|
|
type: object
|