|
@@ -646,18 +646,30 @@ paths:
|
|
|
schema:
|
|
schema:
|
|
|
$ref: '#/components/schemas/Error'
|
|
$ref: '#/components/schemas/Error'
|
|
|
|
|
|
|
|
- /units/{id}/campaigns:
|
|
|
|
|
|
|
+ /units/{unitId}/campaigns:
|
|
|
get:
|
|
get:
|
|
|
operationId: unitIdCampaignsGET
|
|
operationId: unitIdCampaignsGET
|
|
|
summary: Publish info about campaigns where the unit was/is assigned
|
|
summary: Publish info about campaigns where the unit was/is assigned
|
|
|
parameters:
|
|
parameters:
|
|
|
- in: path
|
|
- in: path
|
|
|
- name: id
|
|
|
|
|
|
|
+ name: unitId
|
|
|
schema:
|
|
schema:
|
|
|
type: integer
|
|
type: integer
|
|
|
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: zone
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ default: UTC
|
|
|
|
|
+ required: false
|
|
|
|
|
+ - in: query
|
|
|
|
|
+ name: navigationLinks
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: boolean
|
|
|
|
|
+ default: true
|
|
|
|
|
+ description: Option to disable @NavigationLinks in a response
|
|
|
responses:
|
|
responses:
|
|
|
200:
|
|
200:
|
|
|
description: JSON Array of info about campaigns
|
|
description: JSON Array of info about campaigns
|
|
@@ -1396,9 +1408,6 @@ components:
|
|
|
UnitCampaignBasicInfo:
|
|
UnitCampaignBasicInfo:
|
|
|
type: object
|
|
type: object
|
|
|
required:
|
|
required:
|
|
|
- - Campaign@NavigationLink
|
|
|
|
|
- - Unit@NavigationLink
|
|
|
|
|
- - Observations@NavigationLink
|
|
|
|
|
- id
|
|
- id
|
|
|
- fromTime
|
|
- fromTime
|
|
|
- toTime
|
|
- toTime
|
|
@@ -1407,14 +1416,6 @@ components:
|
|
|
type: string
|
|
type: string
|
|
|
format: uri
|
|
format: uri
|
|
|
description: Navigation link to the campaign info
|
|
description: Navigation link to the campaign info
|
|
|
- Unit@NavigationLink:
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- description: Navigation link to the unit info
|
|
|
|
|
- Observations@NavigationLink:
|
|
|
|
|
- type: string
|
|
|
|
|
- format: uri
|
|
|
|
|
- description: Navigation link to the observations
|
|
|
|
|
id:
|
|
id:
|
|
|
type: integer
|
|
type: integer
|
|
|
format: int64
|
|
format: int64
|
|
@@ -1432,8 +1433,6 @@ components:
|
|
|
description: Time until the unit was active in the campaign
|
|
description: Time until the unit was active in the campaign
|
|
|
example:
|
|
example:
|
|
|
Campaign@NavigationLink: "<domain>/campaigns/1"
|
|
Campaign@NavigationLink: "<domain>/campaigns/1"
|
|
|
- Unit@NavigationLink: "<domain>/units/25"
|
|
|
|
|
- Observations@NavigationLink: "<domain>/campaigns/1/units/25/observations"
|
|
|
|
|
id: 1
|
|
id: 1
|
|
|
description: "Campaign 1"
|
|
description: "Campaign 1"
|
|
|
fromTime: "2023-01-25 15:35:32Z"
|
|
fromTime: "2023-01-25 15:35:32Z"
|