mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
Web API: implemented device report interface. Applied to Airspy
This commit is contained in:
@@ -39,4 +39,16 @@ AirspySettings:
|
||||
format: int64
|
||||
fileRecordName:
|
||||
type: string
|
||||
|
||||
AirspyReport:
|
||||
description: Airspy
|
||||
properties:
|
||||
sampleRates:
|
||||
type: array
|
||||
items:
|
||||
properties:
|
||||
sampleRate:
|
||||
description: sample rate in S/s
|
||||
type: integer
|
||||
|
||||
|
||||
@@ -936,6 +936,38 @@ paths:
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/deviceset/{deviceSetIndex}/device/report:
|
||||
x-swagger-router-controller: deviceset
|
||||
get:
|
||||
description: get the device report
|
||||
operationId: devicesetDeviceReportGet
|
||||
tags:
|
||||
- DeviceSet
|
||||
parameters:
|
||||
- in: path
|
||||
name: deviceSetIndex
|
||||
type: integer
|
||||
required: true
|
||||
description: Index of device set in the device set list
|
||||
responses:
|
||||
"200":
|
||||
description: On success return device report
|
||||
schema:
|
||||
$ref: "#/definitions/DeviceReport"
|
||||
"400":
|
||||
description: Invalid device set
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
"404":
|
||||
description: Device not found
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
|
||||
/sdrangel/deviceset/{deviceSetIndex}/channels/report:
|
||||
x-swagger-router-controller: deviceset
|
||||
@@ -1734,6 +1766,22 @@ definitions:
|
||||
rtlSdrSettings:
|
||||
$ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrSettings"
|
||||
|
||||
DeviceReport:
|
||||
description: Base device report. The specific device report present depeds on deviceHwType
|
||||
discriminator: deviceHwType
|
||||
required:
|
||||
- deviceHwType
|
||||
- tx
|
||||
properties:
|
||||
deviceHwType:
|
||||
description: Device hardware type code
|
||||
type: string
|
||||
tx:
|
||||
description: Not zero if it is a tx device else it is a rx device
|
||||
type: integer
|
||||
airspyReport:
|
||||
$ref: "/doc/swagger/include/Airspy.yaml#/AirspyReport"
|
||||
|
||||
ChannelSettings:
|
||||
description: Base channel settings. The specific channel settings present depends on channelType.
|
||||
discriminator: channelType
|
||||
|
||||
Reference in New Issue
Block a user