REST API device and channel actions: fixes to Swagger yaml files

This commit is contained in:
f4exb 2020-03-09 08:44:15 +01:00
parent 3e47aefd13
commit 91e7496eae
2 changed files with 22 additions and 22 deletions

View File

@ -1,21 +1,21 @@
ChannelActions:
description: Base channel actions. Only the channel actions corresponding to the channel specified in the channelType field is or should be present.
discriminator: channelType
required:
- channelType
- direction
properties:
channelType:
description: Channel type code
type: string
direction:
description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
type: integer
originatorDeviceSetIndex:
description: Optional for reverse API. This is the device set index from where the message comes from.
type: integer
originatorChannelIndex:
description: Optional for reverse API. This is the channel index from where the message comes from.
type: integer
FileSourceActions:
$ref: "http://localhost:8081/api/swagger/include/FileSource.yaml#/FileSourceActions"
description: Base channel actions. Only the channel actions corresponding to the channel specified in the channelType field is or should be present.
discriminator: channelType
required:
- channelType
- direction
properties:
channelType:
description: Channel type code
type: string
direction:
description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
type: integer
originatorDeviceSetIndex:
description: Optional for reverse API. This is the device set index from where the message comes from.
type: integer
originatorChannelIndex:
description: Optional for reverse API. This is the channel index from where the message comes from.
type: integer
FileSourceActions:
$ref: "http://localhost:8081/api/swagger/include/FileSource.yaml#/FileSourceActions"

View File

@ -1388,7 +1388,7 @@ paths:
description: post an action on a device
operationId: devicesetDeviceActionsPost
tags:
- Deviceset
- DeviceSet
parameters:
- in: path
name: deviceSetIndex
@ -1647,7 +1647,7 @@ paths:
description: post an action or actions on a channel
operationId: devicesetChannelActionsPost
tags:
- Deviceset
- DeviceSet
parameters:
- in: path
name: deviceSetIndex