|
@@ -284,7 +284,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
/campaigns/{campaignId}/units/{unitId}:
|
|
/campaigns/{campaignId}/units/{unitId}:
|
|
|
- get:
|
|
|
|
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitIdGET
|
|
operationId: campaignIdUnitIdGET
|
|
|
summary: Publish info about the unit within its campaign's scope
|
|
summary: Publish info about the unit within its campaign's scope
|
|
|
parameters:
|
|
parameters:
|
|
@@ -509,6 +509,12 @@ paths:
|
|
|
format: int64
|
|
format: int64
|
|
|
required: true
|
|
required: true
|
|
|
description: Numeric ID of the unit to get
|
|
description: Numeric ID of the unit to get
|
|
|
|
|
+ - in: query
|
|
|
|
|
+ name: navigationLinks
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: boolean
|
|
|
|
|
+ default: true
|
|
|
|
|
+ description: Option to disable @NavigationLinks in a response
|
|
|
responses:
|
|
responses:
|
|
|
200:
|
|
200:
|
|
|
description: JSON containing information of sensors assigned to the unit within its campaign
|
|
description: JSON containing information of sensors assigned to the unit within its campaign
|
|
@@ -1066,45 +1072,26 @@ components:
|
|
|
CampaignUnitBasicSensor:
|
|
CampaignUnitBasicSensor:
|
|
|
type: object
|
|
type: object
|
|
|
required:
|
|
required:
|
|
|
- - Campaign@NavigationLink
|
|
|
|
|
- - Unit@NavigationLink
|
|
|
|
|
- - Observations@NavigationLink
|
|
|
|
|
- - Sensor@NavigationLink
|
|
|
|
|
- - id
|
|
|
|
|
|
|
+ - sensorId
|
|
|
- name
|
|
- name
|
|
|
|
|
+ - type
|
|
|
properties:
|
|
properties:
|
|
|
- Campaign@NavigationLink:
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- Unit@NavigationLink:
|
|
|
|
|
- description: Navigation link to the unit
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- Observations@NavigationLink:
|
|
|
|
|
- description: Navigation link to all campaign's data of the sensor assigned to unit
|
|
|
|
|
|
|
+ CampaignSensor@NavigationLink:
|
|
|
type: string
|
|
type: string
|
|
|
format: uri
|
|
format: uri
|
|
|
- Sensor@NavigationLink:
|
|
|
|
|
- description: Navigation link to detail info of the sensor
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- id:
|
|
|
|
|
|
|
+ sensorId:
|
|
|
description: Identifier of the unit
|
|
description: Identifier of the unit
|
|
|
type: integer
|
|
type: integer
|
|
|
format: int64
|
|
format: int64
|
|
|
name:
|
|
name:
|
|
|
type: string
|
|
type: string
|
|
|
- description:
|
|
|
|
|
|
|
+ type:
|
|
|
type: string
|
|
type: string
|
|
|
example:
|
|
example:
|
|
|
- Campaign@NavigationLink: "<domain>/campaigns/1"
|
|
|
|
|
- Observations@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations"
|
|
|
|
|
- Unit@NavigationLink: "<domain>/units/25"
|
|
|
|
|
- Sensor@NavigationLink: "<domain>/sensors/105"
|
|
|
|
|
- id: 105
|
|
|
|
|
|
|
+ CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
|
|
|
|
|
+ sensorId: 105
|
|
|
name: "Sensor 105"
|
|
name: "Sensor 105"
|
|
|
- description: "Description of the sensor 105"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ type: "X"
|
|
|
|
|
|
|
|
CampaignObservation:
|
|
CampaignObservation:
|
|
|
type: object
|
|
type: object
|
|
@@ -1151,10 +1138,7 @@ components:
|
|
|
- offset
|
|
- offset
|
|
|
- data
|
|
- data
|
|
|
properties:
|
|
properties:
|
|
|
- Campaign@NavigationLink:
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- Unit@NavigationLink:
|
|
|
|
|
|
|
+ CampaignUnit@NavigationLink:
|
|
|
type: string
|
|
type: string
|
|
|
format: uri
|
|
format: uri
|
|
|
next@NavigationLink:
|
|
next@NavigationLink:
|
|
@@ -1174,8 +1158,7 @@ components:
|
|
|
items:
|
|
items:
|
|
|
$ref: '#/components/schemas/UnitDataObservation'
|
|
$ref: '#/components/schemas/UnitDataObservation'
|
|
|
example:
|
|
example:
|
|
|
- Campaign@NavigationLink: "<domain>/campaigns/1"
|
|
|
|
|
- Unit@NavigationLink: "<domain>/campaigns/1/units/25"
|
|
|
|
|
|
|
+ CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
|
|
|
next@NavigationLink: "<domain>/campaigns/1/units/25/observations?offset=500"
|
|
next@NavigationLink: "<domain>/campaigns/1/units/25/observations?offset=500"
|
|
|
params: []
|
|
params: []
|
|
|
size: 500
|
|
size: 500
|