1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

REST API device and channel actions: extension of record action: swagger files

This commit is contained in:
f4exb 2020-03-10 05:19:24 +01:00
parent 417b48d115
commit d821c3eb50
17 changed files with 250 additions and 62 deletions

View File

@ -56,3 +56,13 @@ AirspyReport:
type: array type: array
items: items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate" $ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate"
AirspyActions:
description: Airspy
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -55,3 +55,13 @@ AirspyHFReport:
type: array type: array
items: items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate" $ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate"
AirspyHFActions:
description: AirspyHF
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -40,6 +40,16 @@ BladeRF1InputSettings:
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
BladeRF1InputActions:
description: BladeRF1
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording
BladeRF1OutputSettings: BladeRF1OutputSettings:
description: BladeRF1 description: BladeRF1
properties: properties:

View File

@ -14,5 +14,37 @@ DeviceActions:
originatorIndex: originatorIndex:
description: Optional for reverse API. This is the device set index from where the message comes from. description: Optional for reverse API. This is the device set index from where the message comes from.
type: integer type: integer
airspyActions:
$ref: "http://localhost:8081/api/swagger/include/Airspy.yaml#/AirspyActions"
airspyHFActions:
$ref: "http://localhost:8081/api/swagger/include/AirspyHF.yaml#/AirspyHFActions"
bladeRF1InputActions:
$ref: "http://localhost:8081/api/swagger/include/BladeRF1.yaml#/BladeRF1InputActions"
fcdProActions:
$ref: "http://localhost:8081/api/swagger/include/FCDPro.yaml#/FCDProActions"
fcdProPlusActions:
$ref: "http://localhost:8081/api/swagger/include/FCDProPlus.yaml#/FCDProPlusActions"
hackRFInputActions:
$ref: "http://localhost:8081/api/swagger/include/HackRF.yaml#/HackRFInputActions"
kiwiSDRActions:
$ref: "http://localhost:8081/api/swagger/include/KiwiSDR.yaml#/KiwiSDRActions"
limeSdrInputActions:
$ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrInputActions"
localInputActions:
$ref: "http://localhost:8081/api/swagger/include/LocalInput.yaml#/LocalInputActions"
perseusActions:
$ref: "http://localhost:8081/api/swagger/include/Perseus.yaml#/PerseusActions"
plutoSdrInputActions:
$ref: "http://localhost:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrInputActions"
remoteInputActions:
$ref: "http://localhost:8081/api/swagger/include/RemoteInput.yaml#/RemoteInputActions"
rtlSdrActions: rtlSdrActions:
$ref: "http://localhost:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrActions" $ref: "http://localhost:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrActions"
sdrPlayActions:
$ref: "http://localhost:8081/api/swagger/include/SDRPlay.yaml#/SDRPlayActions"
soapySDRInputActions:
$ref: "http://localhost:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRInputActions"
testSourceActions:
$ref: "http://localhost:8081/api/swagger/include/TestSource.yaml#/TestSourceActions"
xtrxInputActions:
$ref: "http://localhost:8081/api/swagger/include/Xtrx.yaml#/XtrxInputActions"

View File

@ -63,3 +63,12 @@ FCDProSettings:
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
FCDProActions:
description: FCDPro
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -48,3 +48,13 @@ FCDProPlusSettings:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
FCDProPlusActions:
description: FCDProPlus
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -44,6 +44,16 @@ HackRFInputSettings:
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
HackRFInputActions:
description: HackRF
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording
HackRFOutputSettings: HackRFOutputSettings:
description: HackRF description: HackRF
properties: properties:
@ -81,3 +91,4 @@ HackRFOutputSettings:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer

View File

@ -32,3 +32,13 @@ KiwiSDRReport:
status: status:
description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected
type: integer type: integer
KiwiSDRActions:
description: KiwiSDR
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -1,6 +1,6 @@
LimeSdrInputSettings: LimeSdrInputSettings:
description: LimeSDR description: LimeSDR
properties: properties:
centerFrequency: centerFrequency:
type: integer type: integer
format: int64 format: int64
@ -14,37 +14,37 @@ LimeSdrInputSettings:
type: integer type: integer
log2SoftDecim: log2SoftDecim:
type: integer type: integer
lpfBW: lpfBW:
type: integer type: integer
lpfFIREnable: lpfFIREnable:
type: integer type: integer
lpfFIRBW: lpfFIRBW:
type: integer type: integer
gain: gain:
type: integer type: integer
ncoEnable: ncoEnable:
type: integer type: integer
ncoFrequency: ncoFrequency:
type: integer type: integer
antennaPath: antennaPath:
type: integer type: integer
gainMode: gainMode:
type: integer type: integer
lnaGain: lnaGain:
type: integer type: integer
tiaGain: tiaGain:
type: integer type: integer
pgaGain: pgaGain:
type: integer type: integer
extClock: extClock:
type: integer type: integer
extClockFreq: extClockFreq:
type: integer type: integer
transverterMode: transverterMode:
type: integer type: integer
transverterDeltaFrequency: transverterDeltaFrequency:
type: integer type: integer
format: int64 format: int64
fileRecordName: fileRecordName:
type: string type: string
gpioDir: gpioDir:
@ -61,11 +61,11 @@ LimeSdrInputSettings:
reverseAPIPort: reverseAPIPort:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
LimeSdrOutputSettings: LimeSdrOutputSettings:
description: LimeSDR description: LimeSDR
properties: properties:
centerFrequency: centerFrequency:
type: integer type: integer
format: int64 format: int64
@ -75,29 +75,29 @@ LimeSdrOutputSettings:
type: integer type: integer
log2SoftInterp: log2SoftInterp:
type: integer type: integer
lpfBW: lpfBW:
type: integer type: integer
lpfFIREnable: lpfFIREnable:
type: integer type: integer
lpfFIRBW: lpfFIRBW:
type: integer type: integer
gain: gain:
type: integer type: integer
ncoEnable: ncoEnable:
type: integer type: integer
ncoFrequency: ncoFrequency:
type: integer type: integer
antennaPath: antennaPath:
type: integer type: integer
extClock: extClock:
type: integer type: integer
extClockFreq: extClockFreq:
type: integer type: integer
transverterMode: transverterMode:
type: integer type: integer
transverterDeltaFrequency: transverterDeltaFrequency:
type: integer type: integer
format: int64 format: int64
gpioDir: gpioDir:
type: integer type: integer
format: int8 format: int8
@ -112,11 +112,11 @@ LimeSdrOutputSettings:
reverseAPIPort: reverseAPIPort:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
LimeSdrInputReport: LimeSdrInputReport:
description: LimeSDR description: LimeSDR
properties: properties:
success: success:
description: 1 if info was successfullt retrieved else 0 description: 1 if info was successfullt retrieved else 0
type: integer type: integer
@ -127,11 +127,11 @@ LimeSdrInputReport:
type: integer type: integer
fifoFill: fifoFill:
type: integer type: integer
underrunCount: underrunCount:
type: integer type: integer
overrunCount: overrunCount:
type: integer type: integer
droppedPacketsCount: droppedPacketsCount:
type: integer type: integer
linkRate: linkRate:
type: number type: number
@ -145,14 +145,24 @@ LimeSdrInputReport:
format: float format: float
gpioDir: gpioDir:
type: integer type: integer
format: int8 format: int8
gpioPins: gpioPins:
type: integer type: integer
format: int8 format: int8
LimeSdrInputActions:
description: LimeSDR
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording
LimeSdrOutputReport: LimeSdrOutputReport:
description: LimeSDR description: LimeSDR
properties: properties:
success: success:
description: 1 if info was successfullt retrieved else 0 description: 1 if info was successfullt retrieved else 0
type: integer type: integer
@ -163,11 +173,11 @@ LimeSdrOutputReport:
type: integer type: integer
fifoFill: fifoFill:
type: integer type: integer
underrunCount: underrunCount:
type: integer type: integer
overrunCount: overrunCount:
type: integer type: integer
droppedPacketsCount: droppedPacketsCount:
type: integer type: integer
linkRate: linkRate:
type: number type: number
@ -178,11 +188,10 @@ LimeSdrOutputReport:
format: uint64 format: uint64
temperature: temperature:
type: number type: number
format: float format: float
gpioDir: gpioDir:
type: integer type: integer
format: int8 format: int8
gpioPins: gpioPins:
type: integer type: integer
format: int8 format: int8

View File

@ -25,3 +25,13 @@ LocalInputReport:
format: uint64 format: uint64
sampleRate: sampleRate:
type: integer type: integer
LocalInputActions:
description: LocalInput
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -46,3 +46,13 @@ PerseusReport:
type: array type: array
items: items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate" $ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate"
PerseusActions:
description: Perseus
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -131,4 +131,14 @@ PlutoSdrOutputReport:
type: string type: string
temperature: temperature:
type: number type: number
format: float format: float
PlutoSdrInputActions:
description: PlutoSDR
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -45,3 +45,13 @@ RemoteInputReport:
maxNbRecovery: maxNbRecovery:
description: Maximum number of recovery blocks used per frame description: Maximum number of recovery blocks used per frame
type: integer type: integer
RemoteInputActions:
description: RemoteInput
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -64,3 +64,13 @@ SDRPlayReport:
type: array type: array
items: items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/FrequencyBand" $ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/FrequencyBand"
SDRPlayActions:
description: SDRplay1
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -245,4 +245,12 @@ definitions:
items: items:
type: string type: string
SoapySDRInputActions:
description: SoapySDR
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -28,7 +28,7 @@ TestSourceSettings:
type: integer type: integer
dcFactor: dcFactor:
type: number type: number
format: float format: float
iFactor: iFactor:
type: number type: number
format: float format: float
@ -48,5 +48,14 @@ TestSourceSettings:
reverseAPIPort: reverseAPIPort:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
TestSourceActions:
description: TestSource
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording

View File

@ -1,6 +1,6 @@
XtrxInputSettings: XtrxInputSettings:
description: XTRX description: XTRX
properties: properties:
centerFrequency: centerFrequency:
type: integer type: integer
format: int64 format: int64
@ -24,16 +24,16 @@ XtrxInputSettings:
type: integer type: integer
ncoEnable: ncoEnable:
description: Enable TSP NCO and mixing (1 for yes, 0 for no) description: Enable TSP NCO and mixing (1 for yes, 0 for no)
type: integer type: integer
ncoFrequency: ncoFrequency:
description: Frequency shift from LO description: Frequency shift from LO
type: integer type: integer
antennaPath: antennaPath:
description: Antenna selected (enum value from xtrx_antenna_t) description: Antenna selected (enum value from xtrx_antenna_t)
type: integer type: integer
gainMode: gainMode:
description: Gain mode auto or manual (enum value from GainMode) description: Gain mode auto or manual (enum value from GainMode)
type: integer type: integer
lnaGain: lnaGain:
description: Manual LNA gain description: Manual LNA gain
type: integer type: integer
@ -42,16 +42,16 @@ XtrxInputSettings:
type: integer type: integer
pgaGain: pgaGain:
description: Manual PGA gain description: Manual PGA gain
type: integer type: integer
extClock: extClock:
description: Use external clock source (1 for yes, 0 for no) description: Use external clock source (1 for yes, 0 for no)
type: integer type: integer
extClockFreq: extClockFreq:
description: Frequency (Hz) of external clock source description: Frequency (Hz) of external clock source
type: integer type: integer
pwrmode: pwrmode:
description: LMS power mode (0 save max to 7 perf max) description: LMS power mode (0 save max to 7 perf max)
type: integer type: integer
fileRecordName: fileRecordName:
type: string type: string
useReverseAPI: useReverseAPI:
@ -62,11 +62,11 @@ XtrxInputSettings:
reverseAPIPort: reverseAPIPort:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
XtrxInputReport: XtrxInputReport:
description: XTRX description: XTRX
properties: properties:
success: success:
description: 1 if info was successfully retrieved else 0 description: 1 if info was successfully retrieved else 0
type: integer type: integer
@ -80,10 +80,20 @@ XtrxInputReport:
gpsLock: gpsLock:
description: 1 if GPSDO is locked else 0 description: 1 if GPSDO is locked else 0
type: integer type: integer
XtrxInputActions:
description: XTRX
properties:
record:
type: integer
description: >
Record IQ stream action
* 0 - stop recording
* 1 - start recording
XtrxOutputSettings: XtrxOutputSettings:
description: XTRX description: XTRX
properties: properties:
centerFrequency: centerFrequency:
type: integer type: integer
format: int64 format: int64
@ -101,22 +111,22 @@ XtrxOutputSettings:
type: integer type: integer
ncoEnable: ncoEnable:
description: Enable TSP NCO and mixing (1 for yes, 0 for no) description: Enable TSP NCO and mixing (1 for yes, 0 for no)
type: integer type: integer
ncoFrequency: ncoFrequency:
description: Frequency shift from LO description: Frequency shift from LO
type: integer type: integer
antennaPath: antennaPath:
description: Antenna selected (enum value from xtrx_antenna_t) description: Antenna selected (enum value from xtrx_antenna_t)
type: integer type: integer
extClock: extClock:
description: Use external clock source (1 for yes, 0 for no) description: Use external clock source (1 for yes, 0 for no)
type: integer type: integer
extClockFreq: extClockFreq:
description: Frequency (Hz) of external clock source description: Frequency (Hz) of external clock source
type: integer type: integer
pwrmode: pwrmode:
description: LMS power mode (0 save max to 7 perf max) description: LMS power mode (0 save max to 7 perf max)
type: integer type: integer
useReverseAPI: useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no) description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer type: integer
@ -125,11 +135,11 @@ XtrxOutputSettings:
reverseAPIPort: reverseAPIPort:
type: integer type: integer
reverseAPIDeviceIndex: reverseAPIDeviceIndex:
type: integer type: integer
XtrxOutputReport: XtrxOutputReport:
description: XTRX description: XTRX
properties: properties:
success: success:
description: 1 if info was successfully retrieved else 0 description: 1 if info was successfully retrieved else 0
type: integer type: integer
@ -142,4 +152,4 @@ XtrxOutputReport:
format: float format: float
gpsLock: gpsLock:
description: 1 if GPSDO is locked else 0 description: 1 if GPSDO is locked else 0
type: integer type: integer