|
|
@@ -7,7 +7,7 @@ servers:
|
|
|
- url: https://theros.wirelessinfo.cz
|
|
|
paths:
|
|
|
/info:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: infoGET
|
|
|
summary: Information about running instance
|
|
|
responses:
|
|
|
@@ -25,7 +25,7 @@ paths:
|
|
|
$ref: "#/components/schemas/Error"
|
|
|
|
|
|
/campaigns:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignsGET
|
|
|
summary: Publish info about all campaigns
|
|
|
parameters:
|
|
|
@@ -63,7 +63,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdGET
|
|
|
summary: Publish info about a campaign
|
|
|
parameters:
|
|
|
@@ -106,7 +106,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}/units:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitsGET
|
|
|
summary: Publish info about the campaign's units
|
|
|
parameters:
|
|
|
@@ -151,7 +151,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}/units/observations:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitsObservationsGET
|
|
|
summary: Publish info about all data of units merged together within the campaign
|
|
|
parameters:
|
|
|
@@ -211,7 +211,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}/units/observations/locations:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitsObservationsLocationsGET
|
|
|
summary: Publish info about all data of units merged together within the campaign
|
|
|
parameters:
|
|
|
@@ -315,7 +315,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}/units/{unitId}/observations:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitIdObservationsGET
|
|
|
summary: Publish info about all data of the unit within the campaign
|
|
|
parameters:
|
|
|
@@ -383,7 +383,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/campaigns/{campaignId}/units/{unitId}/observations/location:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: campaignIdUnitIdLocationsGET
|
|
|
summary: Publish locations of the unit within the campaign
|
|
|
parameters:
|
|
|
@@ -560,7 +560,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/units:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: unitsGET
|
|
|
summary: Publish info about all units
|
|
|
parameters:
|
|
|
@@ -587,7 +587,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/units/{unitId}:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: unitIdGET
|
|
|
summary: Publish info about the unit
|
|
|
parameters:
|
|
|
@@ -613,7 +613,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/units/{unitId}/sensors:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: unitIdSensorsGET
|
|
|
summary: Publish info about sensors assigned to the unit
|
|
|
parameters:
|
|
|
@@ -647,7 +647,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/units/{unitId}/campaigns:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: unitIdCampaignsGET
|
|
|
summary: Publish info about campaigns where the unit was/is assigned
|
|
|
parameters:
|
|
|
@@ -687,7 +687,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/sensors:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: sensorsGET
|
|
|
summary: Publish info about all sensors
|
|
|
parameters:
|
|
|
@@ -714,7 +714,7 @@ paths:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
/sensors/{sensorId}:
|
|
|
- get:
|
|
|
+ get: # done
|
|
|
operationId: sensorIdGET
|
|
|
summary: Publish info about the sensor
|
|
|
parameters:
|
|
|
@@ -745,18 +745,24 @@ paths:
|
|
|
schema:
|
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
- /sensors/{id}/units:
|
|
|
+ /sensors/{sensorId}/units:
|
|
|
get:
|
|
|
operationId: sensorIdUnitsGET
|
|
|
summary: Publish info about units to whom the sensor is assigned
|
|
|
parameters:
|
|
|
- in: path
|
|
|
- name: id
|
|
|
+ name: sensorId
|
|
|
schema:
|
|
|
type: integer
|
|
|
format: int64
|
|
|
required: true
|
|
|
description: Numeric ID of the sensor to get
|
|
|
+ - in: query
|
|
|
+ name: navigationLinks
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: true
|
|
|
+ description: Option to disable @NavigationLinks in a response
|
|
|
responses:
|
|
|
200:
|
|
|
description: JSON Array of info about the units
|
|
|
@@ -914,17 +920,20 @@ components:
|
|
|
CampaignUnitBasicInfo:
|
|
|
type: object
|
|
|
required:
|
|
|
- - id
|
|
|
+ - unitId
|
|
|
+ - name
|
|
|
- fromTime
|
|
|
- toTime
|
|
|
properties:
|
|
|
Unit@NavigationLink:
|
|
|
type: string
|
|
|
format: uri
|
|
|
- id:
|
|
|
+ unitId:
|
|
|
description: Identifier of the unit
|
|
|
type: integer
|
|
|
format: int64
|
|
|
+ name:
|
|
|
+ type: string
|
|
|
description:
|
|
|
type: string
|
|
|
fromTime:
|
|
|
@@ -937,7 +946,8 @@ components:
|
|
|
format: date-time
|
|
|
example:
|
|
|
Unit@NavigationLink: "<domain>/units/25"
|
|
|
- id: 25
|
|
|
+ unitId: 25
|
|
|
+ name: "Unit name"
|
|
|
description: "Purpose of the Unit 25"
|
|
|
fromTime: "2023-01-25 15:35:32Z"
|
|
|
toTime: "2023-03-20 10:35:32Z"
|
|
|
@@ -1515,14 +1525,13 @@ components:
|
|
|
SensorUnitBasicInfo:
|
|
|
type: object
|
|
|
required:
|
|
|
- - Unit@NavigationLink
|
|
|
- - id
|
|
|
+ - unitId
|
|
|
- name
|
|
|
properties:
|
|
|
Unit@NavigationLink:
|
|
|
type: string
|
|
|
format: uri
|
|
|
- id:
|
|
|
+ unitId:
|
|
|
description: Identifier of the unit
|
|
|
type: integer
|
|
|
format: int64
|
|
|
@@ -1532,7 +1541,7 @@ components:
|
|
|
type: string
|
|
|
example:
|
|
|
Unit@NavigationLink: "<domain>/units/25"
|
|
|
- id: 25
|
|
|
+ unitId: 25
|
|
|
name: "Mobile Unit"
|
|
|
description: "Mobile Unit 25"
|
|
|
|