1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Web API: /sdrangel/deviceset/{index}/device (PUT) implementation

This commit is contained in:
f4exb
2017-11-27 08:14:07 +01:00
parent c5a19e261c
commit 3bfdd49b4f
8 changed files with 192 additions and 3 deletions
+12 -3
View File
@@ -466,11 +466,21 @@ paths:
type: integer
required: true
description: Index of device set in the device set list
- name: body
in: body
description: Device item to look for. Give values for only the fields you want to search for among displayedName, hwType, serial, sequence and deviceSetIndex. For integers except tx set to -1 to ignore the field. It will match the first device found.
required: true
schema:
$ref: "#/definitions/DeviceListItem"
responses:
"200":
description: On success return details on the device set
description: On success return details on the device
schema:
$ref: "#/definitions/DeviceSet"
$ref: "#/definitions/DeviceListItem"
"400":
description: Device set and device type mismatch (Rx vs Tx)
schema:
$ref: "#/definitions/ErrorResponse"
"404":
description: Invalid device set index or device not found
schema:
@@ -549,7 +559,6 @@ definitions:
DeviceListItem:
description: "Summarized information about attached hardware device"
required:
- hwType
- tx
properties:
displayedName: