2018-01-24 12:17:13 -05:00
swagger : "2.0"
info :
description : >
2018-09-11 08:52:16 -04:00
This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube
2018-01-24 12:17:13 -05:00
---
2018-09-11 08:52:16 -04:00
Limitations and specifcities :
2018-01-24 12:17:13 -05:00
* In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method.
* Preset import and export from/to file is a server only feature.
* Device set focus is a GUI only feature.
2018-05-29 18:57:44 -04:00
* The following channels are not implemented (status 501 is returned) : ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator
* The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time
* The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time
2018-01-24 12:17:13 -05:00
---
2019-07-31 16:54:39 -04:00
version : "4.11.6"
2018-01-24 12:17:13 -05:00
title : SDRangel
contact :
url : "https://github.com/f4exb/sdrangel"
email : "f4exb06@gmail.com"
2018-09-11 08:52:16 -04:00
# basePath prefixes all resource paths
2018-01-24 12:17:13 -05:00
basePath : /
2018-09-11 08:52:16 -04:00
#
2018-01-24 12:17:13 -05:00
schemes :
# tip: remove http to make production-grade
- http
# format of bodies a client can send (Content-Type)
consumes :
- application/json
# format of the responses to the client (Accepts)
produces :
- application/json
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
paths :
/sdrangel :
# binds a127 app logic to a route
x-swagger-router-controller : instance
get :
description : SDRangel instance summary
# used as the method name of the controller
operationId : instanceSummary
tags :
- Instance
responses :
"200" :
description : Success
schema :
# a pointer to a definition
$ref : "#/definitions/InstanceSummaryResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
delete :
description : Stop SDRangel instance (server only)
# used as the method name of the controller
operationId : instanceDelete
tags :
- Instance
responses :
"202" :
description : Message to stop the SDRangel instance was sent successfully
schema :
# a pointer to a definition
$ref : "#/definitions/InstanceSummaryResponse"
"400" :
description : Unsupported (GUI instance)
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2019-07-31 12:45:13 -04:00
/sdrangel/config :
x-swagger-router-controller : instance
get :
2019-08-05 12:29:09 -04:00
description : Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.
operationId : instanceConfigGet
2019-07-31 12:45:13 -04:00
tags :
- Instance
responses :
"200" :
description : Success
schema :
# a pointer to a definition
$ref : "#/definitions/InstanceConfigResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2019-08-05 12:29:09 -04:00
put :
2019-08-10 19:27:19 -04:00
description : Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.
2019-08-05 12:29:09 -04:00
operationId : instanceConfigPut
tags :
- Instance
consumes :
- application/json
parameters :
- name : body
in : body
description : Config information
required : true
schema :
$ref : "#/definitions/InstanceConfigResponse"
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/SuccessResponse"
2019-08-10 19:27:19 -04:00
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
patch :
description : Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Presets and Commands if available in the payload are added. Channels in the working preset are added. Devices in the working preset are patched or added (upsert).
operationId : instanceConfigPatch
tags :
- Instance
consumes :
- application/json
parameters :
- name : body
in : body
description : Config information
required : true
schema :
$ref : "#/definitions/InstanceConfigResponse"
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/SuccessResponse"
2019-08-05 12:29:09 -04:00
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2019-07-31 12:45:13 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/devices :
x-swagger-router-controller : instance
get :
description : Get a list of sampling devices that can be used to take part in a device set
operationId : instanceDevices
tags :
- Instance
parameters :
2019-05-07 08:43:38 -04:00
- name : direction
2018-01-24 12:17:13 -05:00
in : query
2019-05-07 08:43:38 -04:00
description : 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
2018-01-24 12:17:13 -05:00
required : false
type : integer
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/InstanceDevicesResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/channels :
x-swagger-router-controller : instance
get :
description : Get a list of channel plugins available in this instance
operationId : instanceChannels
tags :
- Instance
parameters :
2019-05-07 08:43:38 -04:00
- name : direction
2018-01-24 12:17:13 -05:00
in : query
2019-05-07 08:43:38 -04:00
description : 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
2018-01-24 12:17:13 -05:00
required : false
type : integer
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/InstanceChannelsResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/logging :
x-swagger-router-controller : instance
get :
description : Get logging information for this instance
operationId : instanceLoggingGet
tags :
- Instance
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/LoggingInfo"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : Change logging parmeters for this instance
operationId : instanceLoggingPut
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : Logging information
required : true
schema :
$ref : "#/definitions/LoggingInfo"
responses :
"200" :
description : Return new data on success
schema :
$ref : "#/definitions/LoggingInfo"
"400" :
description : Invalid data
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/audio :
x-swagger-router-controller : instance
get :
description : Get audio devices list available to this instance
operationId : instanceAudioGet
tags :
- Instance
responses :
"200" :
description : Success
schema :
$ref : "#/definitions/AudioDevices"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-03-28 19:43:31 -04:00
/sdrangel/audio/input/parameters :
2018-03-28 18:38:01 -04:00
x-swagger-router-controller : instance
2018-01-24 12:17:13 -05:00
patch :
2018-03-28 18:38:01 -04:00
description : Set audio input device paramaters
2018-03-28 19:43:31 -04:00
operationId : instanceAudioInputPatch
2018-01-24 12:17:13 -05:00
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
2018-03-28 18:38:01 -04:00
description : Audio input parameters. Index is used to identify the device. Only settable fields are considered.
2018-01-24 12:17:13 -05:00
required : true
schema :
2018-03-28 18:38:01 -04:00
$ref : "#/definitions/AudioInputDevice"
2018-01-24 12:17:13 -05:00
responses :
"200" :
2018-03-28 18:38:01 -04:00
description : Success. Returns actual data in particular the actual sample rate.
schema :
$ref : "#/definitions/AudioInputDevice"
"404" :
description : Audio input device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-03-28 19:43:31 -04:00
delete :
description : Delete audio input device paramaters and return to defaults
operationId : instanceAudioInputDelete
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-03-28 19:43:31 -04:00
- application/json
parameters :
- name : body
in : body
description : Audio input parameters. Index is used to identify the device.
required : true
schema :
$ref : "#/definitions/AudioInputDevice"
responses :
"200" :
description : Success. Returns default parameters.
schema :
$ref : "#/definitions/AudioInputDevice"
"404" :
description : Audio input device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-03-28 19:43:31 -04:00
/sdrangel/audio/input/cleanup :
x-swagger-router-controller : instance
patch :
description : Remove registered parameters for devices not in list of available input devices for this instance
operationId : instanceAudioInputCleanupPatch
tags :
- Instance
responses :
"200" :
description : Success.
schema :
$ref : "#/definitions/SuccessResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
/sdrangel/audio/output/parameters :
2018-03-28 18:38:01 -04:00
x-swagger-router-controller : instance
patch :
description : Set audio output device parameters
2018-03-28 19:43:31 -04:00
operationId : instanceAudioOutputPatch
2018-03-28 18:38:01 -04:00
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-03-28 18:38:01 -04:00
- application/json
parameters :
- name : body
in : body
description : Audio output parameters. Index is used to identify the device. Only settable fields are considered.
required : true
2018-01-24 12:17:13 -05:00
schema :
2018-03-28 18:38:01 -04:00
$ref : "#/definitions/AudioOutputDevice"
responses :
"200" :
description : Success. Returns actual data in particular the actual sample rate.
schema :
$ref : "#/definitions/AudioOutputDevice"
"404" :
description : Audio output device not found
schema :
$ref : "#/definitions/ErrorResponse"
2018-01-24 12:17:13 -05:00
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-03-28 19:43:31 -04:00
delete :
description : Delete audio output device paramaters and return to defaults
operationId : instanceAudioOutputDelete
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-03-28 19:43:31 -04:00
- application/json
parameters :
- name : body
in : body
description : Audio output parameters. Index is used to identify the device.
required : true
schema :
$ref : "#/definitions/AudioOutputDevice"
responses :
"200" :
description : Success. Returns actual data in particular the actual sample rate.
schema :
$ref : "#/definitions/AudioOutputDevice"
"404" :
description : Audio output device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-03-28 19:43:31 -04:00
/sdrangel/audio/output/cleanup :
x-swagger-router-controller : instance
patch :
description : Remove registered parameters for devices not in list of available output devices for this instance
operationId : instanceAudioOutputCleanupPatch
tags :
- Instance
responses :
"200" :
description : Success.
schema :
$ref : "#/definitions/SuccessResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/location :
x-swagger-router-controller : instance
get :
description : Get instance geolocation information
operationId : instanceLocationGet
tags :
- Instance
responses :
"200" :
description : On success return location
schema :
$ref : "#/definitions/LocationInformation"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : Set instance geolocation information
operationId : instanceLocationPut
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : Location of instance in latitude and longitude
required : true
schema :
$ref : "#/definitions/LocationInformation"
responses :
"200" :
description : On success return location
schema :
$ref : "#/definitions/LocationInformation"
"400" :
description : Location invalid
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2019-07-19 12:38:03 -04:00
/sdrangel/ambe/serial :
x-swagger-router-controller : instance
get :
description : get a list of available DV serial devices
operationId : instanceAMBESerialGet
tags :
- Instance
responses :
"200" :
description : On success return list of device paths possibly empty
schema :
2019-07-21 03:47:11 -04:00
$ref : "#/definitions/DVSerialDevices"
2019-07-19 12:38:03 -04:00
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
/sdrangel/ambe/devices :
x-swagger-router-controller : instance
get :
description : get the list of AMBE devices (serial or address) used for AMBE frames decoding in digital voice modes
2019-07-21 03:47:11 -04:00
operationId : InstanceAMBEDevicesGet
2019-07-19 12:38:03 -04:00
tags :
- Instance
responses :
"200" :
description : On success return list of devices possibly empty
schema :
$ref : "#/definitions/AMBEDevices"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : Replace the list of active devices
2019-07-21 03:47:11 -04:00
operationId : InstanceAMBEDevicesPut
2019-07-19 12:38:03 -04:00
tags :
- Instance
consumes :
- application/json
parameters :
- name : body
in : body
description : List of AMBE devices (serial or address)
required : true
schema :
$ref : "#/definitions/AMBEDevices"
responses :
"200" :
description : On success return list of devices
schema :
$ref : "#/definitions/AMBEDevices"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
delete :
description : Emtpy the active devices thus effectively closing down AMBE devices support
2019-07-21 03:47:11 -04:00
operationId : InstanceAMBEDevicesDelete
2019-07-19 12:38:03 -04:00
tags :
- Instance
responses :
"200" :
description : Success.
schema :
$ref : "#/definitions/SuccessResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
patch :
description : Add and/or delete devices to/from the active list
2019-07-21 03:47:11 -04:00
operationId : InstanceAMBEDevicesPatch
2019-07-19 12:38:03 -04:00
tags :
- Instance
consumes :
- application/json
parameters :
- name : body
in : body
description : List of AMBE devices (serial or address)
required : true
schema :
$ref : "#/definitions/AMBEDevices"
responses :
"200" :
description : On success return list of devices
schema :
$ref : "#/definitions/AMBEDevices"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-01-24 12:17:13 -05:00
/sdrangel/presets :
x-swagger-router-controller : instance
get :
description : List all presets in the instance
operationId : instancePresetGet
tags :
- Instance
responses :
"200" :
description : On success return preset list
schema :
$ref : "#/definitions/Presets"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/preset :
x-swagger-router-controller : instance
patch :
description : Load a preset in a device set
operationId : instancePresetPatch
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : Load preset settings to the device set
required : true
schema :
$ref : "#/definitions/PresetTransfer"
responses :
"202" :
description : On successful sending of the message the selected preset identification is returned
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request or preset type and device set type mismatch
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : No preset or device set found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : Update an existing preset with device set settings.
operationId : instancePresetPut
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : save device set settings to the preset
required : true
schema :
$ref : "#/definitions/PresetTransfer"
responses :
"202" :
description : On successful sending of the message the selected preset identification is returned
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : No preset or device set found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
post :
description : Create a new preset from a device set settings. Frequency and type is ignored and taken from the the device set values.
operationId : instancePresetPost
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : save device set settings on a new preset
required : true
schema :
$ref : "#/definitions/PresetTransfer"
responses :
"202" :
description : On successful sending of the message the created preset identification is returned
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device set not found
schema :
$ref : "#/definitions/ErrorResponse"
"409" :
description : Preset already exists
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
delete :
description : Deletes a preset
operationId : instancePresetDelete
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : delete this preset
required : true
schema :
$ref : "#/definitions/PresetIdentifier"
responses :
"202" :
description : On successful sending of the message the selected preset identification is returned
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Preset not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/preset/file :
x-swagger-router-controller : instance
put :
description : import a preset from file as a new preset (server only).
operationId : instancePresetFilePut
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : import details
required : true
schema :
$ref : "#/definitions/PresetImport"
responses :
"200" :
description : On success return preset identification
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : File not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
post :
description : export a preset to file (server only).
operationId : instancePresetFilePost
tags :
- Instance
2018-09-11 08:52:16 -04:00
consumes :
2018-01-24 12:17:13 -05:00
- application/json
parameters :
- name : body
in : body
description : export details
required : true
schema :
$ref : "#/definitions/PresetExport"
responses :
"200" :
description : On success return preset identification
schema :
$ref : "#/definitions/PresetIdentifier"
"400" :
description : Invalid JSON request
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Preset or file path not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/devicesets :
x-swagger-router-controller : instance
get :
description : Get summary information about device sets opened in the instance
operationId : instanceDeviceSetsGet
tags :
- Instance
responses :
"200" :
description : On success return device set list
schema :
$ref : "#/definitions/DeviceSetList"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
/sdrangel/deviceset :
x-swagger-router-controller : instance
post :
description : Add (append) a new device set with default values
operationId : instanceDeviceSetPost
tags :
- DeviceSet
parameters :
2019-05-07 08:43:38 -04:00
- name : direction
2018-01-24 12:17:13 -05:00
in : query
2019-05-07 08:43:38 -04:00
description : 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
2018-01-24 12:17:13 -05:00
required : false
type : integer
responses :
"202" :
description : Message to add a new device set was sent successfully
schema :
$ref : "#/definitions/SuccessResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
delete :
description : Remove last device set. The GUI version does not remove the first device.
operationId : instanceDeviceSetDelete
tags :
- DeviceSet
responses :
"202" :
description : Message to remove last device set was sent successfully
schema :
$ref : "#/definitions/SuccessResponse"
"404" :
description : "No more device sets to be deleted"
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}:
x-swagger-router-controller : deviceset
get :
description : Get device set information
operationId : devicesetGet
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 details on the device set
schema :
$ref : "#/definitions/DeviceSet"
"404" :
description : Invalid index
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/focus:
x-swagger-router-controller : deviceset
patch :
description : Set focus on device set (GUI only)
operationId : devicesetFocusPatch
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
responses :
"202" :
description : Message to focus on device set was sent successfully
schema :
$ref : "#/definitions/SuccessResponse"
"400" :
description : Unsupported (srver instance)
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Invalid index
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/device:
x-swagger-router-controller : deviceset
put :
description : Set the device used in the device set
operationId : devicesetDevicePut
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- name : body
in : body
2019-05-07 09:25:20 -04:00
description : Device item to look for. Specify only the fields you want to search for. You must at least specify one among displayedName, hwType or serial. index and deviceŃbStreams are ignored. Rx is assumed by default.
2018-01-24 12:17:13 -05:00
required : true
schema :
$ref : "#/definitions/DeviceListItem"
responses :
"202" :
description : On successful semdomg of the message it returns the details of the device being set
schema :
$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 :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/device/settings:
x-swagger-router-controller : deviceset
get :
description : Get device settings
operationId : devicesetDeviceSettingsGet
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 returns current settings values
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
"404" :
description : Invalid device set index or device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : Apply all settings unconditionally (force)
operationId : devicesetDeviceSettingsPut
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- name : body
in : body
description : Device settings to apply
required : true
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success returns new settings values
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
"404" :
description : Invalid device set index or device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
patch :
description : Apply settings differentially (no force)
operationId : devicesetDeviceSettingsPatch
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- name : body
in : body
description : Device settings to apply
required : true
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success returns new settings values
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
"404" :
description : Invalid device set index or device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/device/run:
x-swagger-router-controller : deviceset
get :
description : get device rune status
operationId : devicesetDeviceRunGet
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 current state
schema :
$ref : "#/definitions/DeviceState"
"400" :
description : Invalid device set index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
post :
description : start device
operationId : devicesetDeviceRunPost
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
2019-03-25 10:10:31 -04:00
- name : body
in : body
description : Originator information in the reverse API case
required : false
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success return state before change
schema :
$ref : "#/definitions/DeviceState"
"400" :
description : Invalid device set index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
delete :
description : stop device
operationId : devicesetDeviceRunDelete
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
2019-03-25 10:10:31 -04:00
- name : body
in : body
description : Originator information in the reverse API case
required : false
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success return state before change
schema :
$ref : "#/definitions/DeviceState"
"400" :
description : Invalid device set index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-05-25 19:43:28 -04:00
/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"
2018-09-11 08:52:16 -04:00
2018-03-18 19:08:38 -04:00
/sdrangel/deviceset/{deviceSetIndex}/channels/report:
x-swagger-router-controller : deviceset
get :
description : get channels report
operationId : devicesetChannelsReportGet
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 channels report information
schema :
$ref : "#/definitions/ChannelsDetail"
"400" :
description : Invalid device set index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/channel:
x-swagger-router-controller : deviceset
post :
description : add a channel
operationId : devicesetChannelPost
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- name : body
in : body
description : Channel identification (no settings data)
required : true
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
responses :
"202" :
description : Message to add a channel was sent successfully
schema :
$ref : "#/definitions/SuccessResponse"
"400" :
description : Invalid device set index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}:
delete :
description : delete channel (server only)
operationId : devicesetChannelDelete
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- in : path
name : channelIndex
type : integer
required : true
description : Index of channel in the channels list
responses :
"200" :
description : On success return deleted channel settings
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
"400" :
description : Invalid device set or channel index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device or channel not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings:
x-swagger-router-controller : deviceset
get :
description : get a channel settings
operationId : devicesetChannelSettingsGet
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- in : path
name : channelIndex
type : integer
required : true
description : Index of the channel in the channels list for this device set
responses :
"200" :
description : On success return channel settings
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
"400" :
description : Invalid device set or channel index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device or channel not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
put :
description : apply all settings unconditionally (force)
operationId : devicesetChannelSettingsPut
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- in : path
name : channelIndex
type : integer
required : true
description : Index of the channel in the channels list for this device set
- name : body
in : body
description : Channel settings to apply
required : true
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success return channel new settings
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
"400" :
description : Invalid device set or channel index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device or channel not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
patch :
description : apply settings differentially (no force)
operationId : devicesetChannelSettingsPatch
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- in : path
name : channelIndex
type : integer
required : true
description : Index of the channel in the channels list for this device set
- name : body
in : body
description : Channel settings to apply
required : true
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
responses :
"200" :
description : On success return channel new settings
schema :
2019-07-31 16:50:50 -04:00
$ref : "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings"
2018-01-24 12:17:13 -05:00
"400" :
description : Invalid device set or channel index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device or channel not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-09-11 08:52:16 -04:00
2018-03-18 15:17:11 -04:00
/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/report:
x-swagger-router-controller : deviceset
get :
description : get a channel report
operationId : devicesetChannelReportGet
tags :
- DeviceSet
parameters :
- in : path
name : deviceSetIndex
type : integer
required : true
description : Index of device set in the device set list
- in : path
name : channelIndex
type : integer
required : true
description : Index of the channel in the channels list for this device set
responses :
"200" :
description : On success return channel report
schema :
$ref : "#/definitions/ChannelReport"
"400" :
description : Invalid device set or channel index
schema :
$ref : "#/definitions/ErrorResponse"
"404" :
description : Device or channel not found
schema :
$ref : "#/definitions/ErrorResponse"
"500" :
$ref : "#/responses/Response_500"
"501" :
$ref : "#/responses/Response_501"
2018-08-22 19:12:46 -04:00
2018-01-24 12:17:13 -05:00
/swagger :
x-swagger-pipe : swagger_raw
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
# complex objects have schema definitions
definitions :
InstanceSummaryResponse :
description : "Summarized information about this SDRangel instance"
required :
- version
- qtVersion
- dspRxBits
- dspTxBits
- pid
- appname
- devicesetlist
2018-08-18 04:00:32 -04:00
- architecture
- os
2018-01-24 12:17:13 -05:00
properties :
version :
description : "Current software version"
type : string
qtVersion :
description : "Qt version with which the software was compiled"
type : string
dspRxBits :
description : "Number of samples significant bits in software Rx DSP"
type : integer
dspTxBits :
description : "Number of samples significant bits in software Tx DSP"
type : integer
pid :
description : "PID of the SDRangel instance"
type : integer
appname :
description : "Application name: SDRangel for a GUI instance and SDRangelSrv for a server instance"
type : string
architecture :
description : "Codename of the CPU architecture on which the instance is running (available with Qt >= 5.4)"
type : string
os :
description : "Descriptive text of the operating system running the instance (available with Qt >= 5.4)"
type : string
logging :
$ref : "#/definitions/LoggingInfo"
devicesetlist :
$ref : "#/definitions/DeviceSetList"
2018-09-11 08:52:16 -04:00
2019-07-31 12:45:13 -04:00
InstanceConfigResponse :
description : Preferences, Presets and Commands of the MainSettings saved by Qt
properties :
preferences :
$ref : "/doc/swagger/include/Preferences.yaml#/Preferences"
workingPreset :
$ref : "/doc/swagger/include/Preset.yaml#/Preset"
presets :
type : array
items :
$ref : "/doc/swagger/include/Preset.yaml#/Preset"
commands :
type : array
items :
$ref : "/doc/swagger/include/Command.yaml#/Command"
2018-01-24 12:17:13 -05:00
InstanceDevicesResponse :
description : "Summarized information about logical devices from hardware devices attached to this SDRangel instance"
required :
- devicecount
properties :
devicecount :
description : "Number of devices attached"
type : integer
devices :
type : array
items :
$ref : "#/definitions/DeviceListItem"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
InstanceChannelsResponse :
description : "Summarized information about channel plugins available in this SDRangel instance"
required :
- channelcount
properties :
channelcount :
description : "Number of plugins available"
type : integer
channels :
type : array
items :
$ref : "#/definitions/ChannelListItem"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
ErrorResponse :
required :
- message
properties :
message :
type : string
example : "KO"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
SuccessResponse :
required :
- message
properties :
message :
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
LoggingInfo :
description : "Logging parameters setting"
properties :
consoleLevel :
description : "Minimum level of messages printed to console: debug, info, warning, error"
type : string
fileLevel :
description : "Minimum level of messages written to file: debug, info, warning, error"
type : string
dumpToFile :
description : "not zero (true) if messages are written to file"
type : integer
fileName :
description : "Name of the log file"
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
DeviceListItem :
description : "Summarized information about attached hardware device"
properties :
displayedName :
description : "Displayable name that uniquely identifies this device instance"
type : string
hwType :
description : "Key to identify the type of hardware device"
type : string
serial :
description : "Serial number of the hardware device"
type : string
sequence :
description : "Sequence in the enumeration of same device types"
type : integer
2019-05-07 08:43:38 -04:00
direction :
description : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)"
2018-01-24 12:17:13 -05:00
type : integer
2019-05-07 09:25:20 -04:00
deviceNbStreams :
2018-01-24 12:17:13 -05:00
description : "Number of channels or streams in the device"
type : integer
2019-05-07 09:25:20 -04:00
deviceStreamIndex :
description : "Index of the channel in the device. Applies to single stream directions (Rx or Tx)"
2018-01-24 12:17:13 -05:00
type : integer
2018-09-11 08:52:16 -04:00
deviceSetIndex :
2018-01-24 12:17:13 -05:00
description : "Index of the device set that claimed this device (-1 if not claimed)"
type : integer
2018-09-11 08:52:16 -04:00
index :
2018-01-24 12:17:13 -05:00
description : "Index of the device in the list of registered devices"
type : integer
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
ChannelListItem :
description : "Summarized information about channel plugin"
required :
- id
properties :
name :
description : "Displayable name of the channel plugin"
type : string
idURI :
description : "Key to identify the channel plugin type in URI form"
type : string
id :
description : "Key to identify the channel plugin type as short object name"
type : string
2019-05-07 08:43:38 -04:00
direction :
description : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)"
2018-01-24 12:17:13 -05:00
type : integer
version :
description : "Channel plugin version number"
type : string
index :
description : "Index of the channel in the list of registered channels"
type : integer
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
DeviceSet :
description : "Sampling device and its associated channels"
required :
- samplingDevice
- channelcount
properties :
samplingDevice :
$ref : "#/definitions/SamplingDevice"
channelcount :
description : "Number of channels in the set"
type : integer
channels :
description : "Channels list"
type : array
items :
$ref : "#/definitions/Channel"
DeviceSetList :
description : "List of device sets opened in this instance"
required :
- devicesetcount
properties :
devicesetcount :
description : "Number of device sets opened in this instance"
type : integer
devicesetfocus :
description : "Index of the deviceset that has focus (relevant for GUI only)"
type : integer
deviceSets :
type : array
items :
$ref : "#/definitions/DeviceSet"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
DeviceState :
description : "Device running state"
required :
- state
properties :
state :
description : "State: notStarted, idle, ready, running, error"
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
SamplingDevice :
description : "Information about a logical device available from an attached hardware device that can be used as a sampling device"
required :
- index
- hwType
- streamIndex
- sequence
- serial
- centerFrequency
- bandwidth
properties :
index :
description : "Index in the list of device sets opened in this instance"
type : integer
hwType :
description : "Key to identify the type of hardware device"
type : string
2019-05-07 08:43:38 -04:00
direction :
description : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)"
2018-01-24 12:17:13 -05:00
type : integer
2019-05-07 09:25:20 -04:00
deviceNbStreams :
2018-01-24 12:17:13 -05:00
description : "Number of channels or streams in the device"
type : integer
2019-05-07 09:25:20 -04:00
deviceStreamIndex :
description : "Index of the channel in the device. Applies to single stream directions (Rx or Tx)"
2018-01-24 12:17:13 -05:00
type : integer
sequence :
description : "Sequence in the enumeration of same device types"
type : integer
serial :
description : "Serial number of the hardware device"
type : string
centerFrequency :
description : "Center frequency in Hz at which the device is tuned possibly taking NCO into account"
type : integer
format : int64
bandwidth :
description : "Bandwidth in Hz or complex S/s of baseband"
type : integer
state :
2019-12-23 12:49:06 -05:00
description : "Single subsystem state: notStarted, idle, ready, running, error"
type : string
stateRx :
description : "Rx subsystem state (MIMO): notStarted, idle, ready, running, error"
type : string
stateTx :
description : "Tx subsystem state (MIMO): notStarted, idle, ready, running, error"
2018-01-24 12:17:13 -05:00
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
Channel :
description : "Channel summarized information"
required :
- index
- id
- uid
- title
- deltaFrequency
properties :
2019-12-23 12:49:06 -05:00
direction :
description : 0 for Rx only, 1 for Tx only or 2 for any direction (MIMO)
type : integer
2018-01-24 12:17:13 -05:00
index :
description : "Index in the list of channels"
type : integer
id :
description : "Key to identify the type of channel"
type : string
uid :
description : "Channel instance unique id"
type : integer
format : int64
title :
description : "Freeform title of the channel"
type : string
deltaFrequency :
description : "Channel shift frequency in Hz from the center of baseband"
type : integer
2018-03-18 19:08:38 -04:00
report :
$ref : "#/definitions/ChannelReport"
2018-09-11 08:52:16 -04:00
2018-03-18 19:08:38 -04:00
ChannelsDetail :
description : "All channels detailed information"
required :
- channelcount
properties :
channelcount :
description : "Number of channels in the set"
type : integer
channels :
description : "Channels list"
type : array
items :
$ref : "#/definitions/Channel"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
AudioDevices :
description : "List of audio devices available in the system"
required :
- nbInputDevices
- nbOutputDevices
properties :
nbInputDevices :
description : "Number of input audio devices"
type : integer
inputDevices :
description : "List of input devices"
type : array
items :
2018-09-11 08:52:16 -04:00
$ref : "#/definitions/AudioInputDevice"
2018-01-24 12:17:13 -05:00
nbOutputDevices :
description : "Number of output audio devices"
type : integer
outputDevices :
description : "List of output devices"
type : array
items :
2018-03-28 18:38:01 -04:00
$ref : "#/definitions/AudioOutputDevice"
2018-09-11 08:52:16 -04:00
2018-03-28 18:38:01 -04:00
AudioInputDevice :
description : "Audio input device"
2018-01-24 12:17:13 -05:00
properties :
2018-09-11 08:52:16 -04:00
name :
2018-01-24 12:17:13 -05:00
description : "Displayable name of the device"
type : string
2018-03-28 18:38:01 -04:00
index :
description : "Index in attached devices list. -1 for system default"
type : integer
2018-09-11 08:52:16 -04:00
sampleRate :
2018-03-28 18:38:01 -04:00
description : "Device sample rate in S/s"
type : integer
isSystemDefault :
description : "1 if this device is the system default else 0"
type : integer
defaultUnregistered :
description : "1 if this device is unregistered and therefore will inherit default values else 0"
type : integer
volume :
2018-01-24 12:17:13 -05:00
description : "Audio input volume [0.0..1.0]"
type : number
format : float
2018-03-28 18:38:01 -04:00
AudioOutputDevice :
description : "Audio output device"
properties :
2018-09-11 08:52:16 -04:00
name :
2018-03-28 18:38:01 -04:00
description : "Displayable name of the device"
type : string
index :
description : "Index in attached devices list. -1 for system default"
2018-01-24 12:17:13 -05:00
type : integer
2018-09-11 08:52:16 -04:00
sampleRate :
2018-03-28 18:38:01 -04:00
description : "Device sample rate in S/s"
2018-01-24 12:17:13 -05:00
type : integer
2018-03-28 18:38:01 -04:00
isSystemDefault :
description : "1 if this device is the system default else 0"
type : integer
defaultUnregistered :
description : "1 if this device is unregistered and therefore will inherit default values else 0"
type : integer
copyToUDP :
description : '1 if audio is copied to UDP else 0'
type : integer
udpUsesRTP :
description : '1 if RTP protocol is used over UDP else 0'
type : integer
udpChannelMode :
2019-02-15 06:10:01 -05:00
description: 'How audio data is copied to UDP: 0: left 1: right 2: mixed 3 : stereo (AudioOutput::UDPChannelMode)'
type : integer
udpChannelCodec :
description : 'Index of codec used in UDP/RTP transmission. See AudioOutput::UDPChannelCodec.'
type : integer
udpDecimationFactor :
description : 'Decimation used before codec in UDP/RTP transmission. Ranges from 1 to 6.'
2018-03-28 18:38:01 -04:00
type : integer
udpAddress :
description : "UDP destination address"
type : string
udpPort :
description : "UDP destination port"
type : integer
2018-01-24 12:17:13 -05:00
LocationInformation :
description : "Instance geolocation information"
required :
- latitude
- longitude
properties :
latitude :
description : "Lautitude in decimal degrees positive to the north"
type : number
format : float
longitude :
description : "Longitude in decimal degrees positive to the east"
type : number
format : float
2018-09-11 08:52:16 -04:00
2019-07-21 03:47:11 -04:00
DVSerialDevices :
2018-01-24 12:17:13 -05:00
description : "List of DV serial devices available in the system"
required :
- nbDevices
properties :
nbDevices :
description : "Number of DV serial devices"
type : integer
dvSerialDevices :
description : "Device names of DV serial devices"
type : array
items :
$ref : "#/definitions/DVSerialDevice"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
DVSerialDevice :
description : "DV serial device details"
properties :
deviceName :
description : "Name of the serial device in the system"
type : string
2018-09-11 08:52:16 -04:00
2019-07-19 12:38:03 -04:00
AMBEDevices :
description : "List of AMBE devices (serial or server address)"
required :
- nbDevices
properties :
nbDevices :
description : "Number of DV serial devices"
type : integer
ambeDevices :
description : "List of AMBE devices"
type : array
items :
$ref : "#/definitions/AMBEDevice"
AMBEDevice :
2019-07-20 17:25:00 -04:00
description : "AMBE devices active in the system"
2019-07-19 12:38:03 -04:00
properties :
deviceRef :
description : "Serial device name or server address"
type : string
delete :
description : "1 if device is to be removed from active list"
type : integer
2018-01-24 12:17:13 -05:00
Presets :
description : "Settings presets"
required :
- nbGroups
properties :
nbGroups :
description : "Number of preset groups"
type : integer
groups :
type : array
2018-09-11 08:52:16 -04:00
items :
2018-01-24 12:17:13 -05:00
$ref : "#/definitions/PresetGroup"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetGroup :
description : "Group of presets"
required :
- groupName
- nbPresets
properties :
groupName :
description : "Name of the preset group"
type : string
nbPresets :
description : "Number of presets in the group"
type : integer
presets :
type : array
items :
$ref : "#/definitions/PresetItem"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetIdentifier :
description : "Settings preset item"
required :
- groupName
- centerFrequency
- type
- name
properties :
groupName :
description : "Name of the preset group"
type : string
centerFrequency :
description : "Center freqeuency in Hz"
type : integer
format : int64
type :
description : "Type of device set (R: Rx, T: Tx)"
type : string
name :
description : "Descriptive name of the preset"
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetItem :
description : "Settings preset item"
required :
- centerFrequency
- type
- name
properties :
centerFrequency :
description : "Center freqeuency in Hz"
type : integer
format : int64
type :
description : "Type of device set (R: Rx, T: Tx)"
type : string
name :
description : "Descriptive name of the preset"
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetTransfer :
description : "Preset transfer to or from a device set"
required :
- deviceSetIndex
- preset
properties :
deviceSetIndex :
2018-09-11 08:52:16 -04:00
description : "Index of the device set"
2018-01-24 12:17:13 -05:00
type : integer
preset :
$ref : "#/definitions/PresetIdentifier"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetImport :
description : "Details to import preset from file in preset list"
required :
- filePath
properties :
groupName :
description : "If present overrides imported preset group name with this name"
type : string
description :
description : "If present overrides imported preset description with this description"
type : string
filePath :
description : "Path of the import file"
type : string
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
PresetExport :
description : "Details to export a preset to file"
properties :
filePath :
description : "Path of the import file"
type : string
preset :
$ref : "#/definitions/PresetIdentifier"
2018-09-11 08:52:16 -04:00
2018-05-25 19:43:28 -04:00
DeviceReport :
2018-05-29 18:57:44 -04:00
description : Base device report. Only the device report corresponding to the device specified in the deviceHwType is or should be present.
2018-05-25 19:43:28 -04:00
discriminator : deviceHwType
required :
- deviceHwType
2019-05-07 08:43:38 -04:00
- direction
2018-05-25 19:43:28 -04:00
properties :
deviceHwType :
description : Device hardware type code
type : string
2019-05-07 08:43:38 -04:00
direction :
description : 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
2018-05-25 19:43:28 -04:00
type : integer
airspyReport :
$ref : "/doc/swagger/include/Airspy.yaml#/AirspyReport"
2018-05-25 20:33:35 -04:00
airspyHFReport :
$ref : "/doc/swagger/include/AirspyHF.yaml#/AirspyHFReport"
2018-09-22 04:39:09 -04:00
bladeRF2InputReport :
$ref : "/doc/swagger/include/BladeRF2.yaml#/BladeRF2InputReport"
2018-09-28 23:49:14 -04:00
bladeRF2OutputReport :
$ref : "/doc/swagger/include/BladeRF2.yaml#/BladeRF2OutputReport"
2019-07-07 18:59:04 -04:00
fileInputReport :
$ref : "/doc/swagger/include/FileInput.yaml#/FileInputReport"
2018-05-26 16:16:59 -04:00
limeSdrInputReport :
$ref : "/doc/swagger/include/LimeSdr.yaml#/LimeSdrInputReport"
2019-06-08 18:56:31 -04:00
kiwiSDRReport :
$ref : "/doc/swagger/include/KiwiSDR.yaml#/KiwiSDRReport"
2018-05-26 16:16:59 -04:00
limeSdrOutputReport :
$ref : "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport"
2019-05-01 22:02:40 -04:00
localInputReport :
$ref : "/doc/swagger/include/LocalInput.yaml#/LocalInputReport"
2019-05-10 17:38:52 -04:00
localOutputReport :
$ref : "/doc/swagger/include/LocalOutput.yaml#/LocalOutputReport"
2018-05-26 07:24:35 -04:00
perseusReport :
$ref : "/doc/swagger/include/Perseus.yaml#/PerseusReport"
2018-05-26 12:07:21 -04:00
plutoSdrInputReport :
$ref : "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrInputReport"
plutoSdrOutputReport :
$ref : "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrOutputReport"
2018-05-26 08:28:06 -04:00
rtlSdrReport :
$ref : "/doc/swagger/include/RtlSdr.yaml#/RtlSdrReport"
2019-02-02 17:27:34 -05:00
remoteOutputReport :
$ref : "/doc/swagger/include/RemoteOutput.yaml#/RemoteOutputReport"
2019-02-02 18:49:57 -05:00
remoteInputReport :
$ref : "/doc/swagger/include/RemoteInput.yaml#/RemoteInputReport"
2018-05-27 05:57:23 -04:00
sdrPlayReport :
$ref : "/doc/swagger/include/SDRPlay.yaml#/SDRPlayReport"
2018-11-13 17:49:04 -05:00
soapySDRInputReport :
$ref : "/doc/swagger/include/SoapySDR.yaml#/SoapySDRReport"
soapySDROutputReport :
$ref : "/doc/swagger/include/SoapySDR.yaml#/SoapySDRReport"
2019-01-01 12:28:53 -05:00
xtrxInputReport :
$ref : "/doc/swagger/include/Xtrx.yaml#/XtrxInputReport"
2019-01-02 09:35:43 -05:00
xtrxOutputReport :
$ref : "/doc/swagger/include/Xtrx.yaml#/XtrxOutputReport"
2018-05-27 05:57:23 -04:00
2018-03-18 15:17:11 -04:00
ChannelReport :
2018-05-29 18:57:44 -04:00
description : Base channel report. Only the channel report corresponding to the channel specified in the channelType field is or should be present.
2018-03-18 15:17:11 -04:00
discriminator : channelType
properties :
channelType :
description : Channel type code
type : string
2019-05-07 08:43:38 -04:00
direction :
description : 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
2018-03-18 15:17:11 -04:00
type : integer
2018-03-21 18:49:16 -04:00
AMDemodReport :
$ref : "/doc/swagger/include/AMDemod.yaml#/AMDemodReport"
2018-04-05 18:54:18 -04:00
AMModReport :
$ref : "/doc/swagger/include/AMMod.yaml#/AMModReport"
2018-04-14 18:52:39 -04:00
ATVModReport :
$ref : "/doc/swagger/include/ATVMod.yaml#/ATVModReport"
2018-05-23 08:56:29 -04:00
BFMDemodReport :
$ref : "/doc/swagger/include/BFMDemod.yaml#/BFMDemodReport"
2018-05-24 06:17:29 -04:00
DSDDemodReport :
$ref : "/doc/swagger/include/DSDDemod.yaml#/DSDDemodReport"
2019-07-07 18:59:04 -04:00
FileSourceReport :
$ref : "/doc/swagger/include/FileSource.yaml#/FileSourceReport"
2019-02-24 20:06:15 -05:00
FreeDVDemodReport :
$ref : "/doc/swagger/include/FreeDVDemod.yaml#/FreeDVDemodReport"
2019-02-22 01:17:27 -05:00
FreeDVModReport :
$ref : "/doc/swagger/include/FreeDVMod.yaml#/FreeDVModReport"
2019-05-03 19:55:58 -04:00
FreqTrackerReport :
$ref : "/doc/swagger/include/FreqTracker.yaml#/FreqTrackerReport"
2018-03-18 15:17:11 -04:00
NFMDemodReport :
$ref : "/doc/swagger/include/NFMDemod.yaml#/NFMDemodReport"
NFMModReport :
$ref : "/doc/swagger/include/NFMMod.yaml#/NFMModReport"
2018-05-26 09:53:22 -04:00
SSBDemodReport :
$ref : "/doc/swagger/include/SSBDemod.yaml#/SSBDemodReport"
2019-01-22 18:44:13 -05:00
RemoteSourceReport :
$ref : "/doc/swagger/include/RemoteSource.yaml#/RemoteSourceReport"
2018-04-12 17:49:29 -04:00
SSBModReport :
$ref : "/doc/swagger/include/SSBMod.yaml#/SSBModReport"
2018-09-11 17:22:59 -04:00
UDPSourceReport :
$ref : "/doc/swagger/include/UDPSource.yaml#/UDPSourceReport"
2018-09-11 18:36:30 -04:00
UDPSinkReport :
$ref : "/doc/swagger/include/UDPSink.yaml#/UDPSinkReport"
2018-05-25 04:08:47 -04:00
WFMDemodReport :
$ref : "/doc/swagger/include/WFMDemod.yaml#/WFMDemodReport"
2018-04-08 18:37:17 -04:00
WFMModReport :
$ref : "/doc/swagger/include/WFMMod.yaml#/WFMModReport"
2018-03-18 15:17:11 -04:00
2018-01-24 12:17:13 -05:00
responses :
Response_500 :
description : Error
schema :
$ref : "#/definitions/ErrorResponse"
2018-09-11 08:52:16 -04:00
2018-01-24 12:17:13 -05:00
Response_501 :
description : Function not implemented
schema :
$ref : "#/definitions/ErrorResponse"
2018-09-11 08:52:16 -04:00