mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-27 15:26:33 -04:00
Web API: updated some descriptions. Documented JSON body in /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings PUT, PATCH
This commit is contained in:
parent
3e02e63869
commit
d854e4ea3f
@ -1015,7 +1015,8 @@ margin-bottom: 20px;
|
|||||||
"fileName" : {
|
"fileName" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "FileSource"
|
||||||
};
|
};
|
||||||
defs.InstanceChannelsResponse = {
|
defs.InstanceChannelsResponse = {
|
||||||
"required" : [ "channelcount" ],
|
"required" : [ "channelcount" ],
|
||||||
@ -1129,7 +1130,8 @@ margin-bottom: 20px;
|
|||||||
"extClockFreq" : {
|
"extClockFreq" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "LimeSDR"
|
||||||
};
|
};
|
||||||
defs.LimeSdrOutputSettings = {
|
defs.LimeSdrOutputSettings = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1173,7 +1175,8 @@ margin-bottom: 20px;
|
|||||||
"extClockFreq" : {
|
"extClockFreq" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "LimeSDR"
|
||||||
};
|
};
|
||||||
defs.LocationInformation = {
|
defs.LocationInformation = {
|
||||||
"required" : [ "latitude", "longitude" ],
|
"required" : [ "latitude", "longitude" ],
|
||||||
@ -1273,7 +1276,8 @@ margin-bottom: 20px;
|
|||||||
"title" : {
|
"title" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "NFMDemod"
|
||||||
};
|
};
|
||||||
defs.NFMModSettings = {
|
defs.NFMModSettings = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1334,7 +1338,8 @@ margin-bottom: 20px;
|
|||||||
"cwKeyer" : {
|
"cwKeyer" : {
|
||||||
"$ref" : "#/definitions/CWKeyerSettings"
|
"$ref" : "#/definitions/CWKeyerSettings"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "NFMMod"
|
||||||
};
|
};
|
||||||
defs.PresetExport = {
|
defs.PresetExport = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1500,7 +1505,8 @@ margin-bottom: 20px;
|
|||||||
"type" : "integer",
|
"type" : "integer",
|
||||||
"format" : "int64"
|
"format" : "int64"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "RTLSDR"
|
||||||
};
|
};
|
||||||
defs.SamplingDevice = {
|
defs.SamplingDevice = {
|
||||||
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
|
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
|
||||||
@ -3264,8 +3270,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
||||||
@ -3284,8 +3291,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
||||||
@ -3301,11 +3309,13 @@ public class DeviceSetApiExample {
|
|||||||
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPatch-0-objc">
|
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPatch-0-objc">
|
||||||
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
||||||
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings *body = ; // Channel settings to apply
|
||||||
|
|
||||||
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
||||||
|
|
||||||
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
|
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
|
||||||
channelIndex:channelIndex
|
channelIndex:channelIndex
|
||||||
|
body:body
|
||||||
completionHandler: ^(ChannelSettings output, NSError* error) {
|
completionHandler: ^(ChannelSettings output, NSError* error) {
|
||||||
if (output) {
|
if (output) {
|
||||||
NSLog(@"%@", output);
|
NSLog(@"%@", output);
|
||||||
@ -3326,6 +3336,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
|
|||||||
|
|
||||||
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
||||||
|
|
||||||
|
var body = ; // {ChannelSettings} Channel settings to apply
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
var callback = function(error, data, response) {
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -3334,7 +3346,7 @@ var callback = function(error, data, response) {
|
|||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, callback);
|
api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body, callback);
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -3358,10 +3370,11 @@ namespace Example
|
|||||||
var apiInstance = new DeviceSetApi();
|
var apiInstance = new DeviceSetApi();
|
||||||
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -3381,9 +3394,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
||||||
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
$body = ; // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex);
|
$result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex, $body);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -3399,9 +3413,10 @@ use SWGSDRangel::DeviceSetApi;
|
|||||||
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
||||||
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
||||||
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
||||||
|
my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
|
my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
|
||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
@ -3420,9 +3435,10 @@ from pprint import pprint
|
|||||||
api_instance = swagger_sdrangel.DeviceSetApi()
|
api_instance = swagger_sdrangel.DeviceSetApi()
|
||||||
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
||||||
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
||||||
|
body = # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex)
|
api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex, body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)</code></pre>
|
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)</code></pre>
|
||||||
@ -3486,6 +3502,48 @@ except ApiException as e:
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="methodsubtabletitle">Body parameters</div>
|
||||||
|
<table id="methodsubtable">
|
||||||
|
<tr>
|
||||||
|
<th width="150px">Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var schemaWrapper = {
|
||||||
|
"in" : "body",
|
||||||
|
"name" : "body",
|
||||||
|
"description" : "Channel settings to apply",
|
||||||
|
"required" : true,
|
||||||
|
"schema" : {
|
||||||
|
"$ref" : "#/definitions/ChannelSettings"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var schema = schemaWrapper.schema;
|
||||||
|
if (schema.$ref != null) {
|
||||||
|
schema = defsParser.$refs.get(schema.$ref);
|
||||||
|
} else {
|
||||||
|
schemaWrapper.definitions = Object.assign({}, defs);
|
||||||
|
$RefParser.dereference(schemaWrapper).catch(function(err) {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
|
||||||
|
var result = $('#d2e199_devicesetChannelSettingsPatch_body');
|
||||||
|
result.empty();
|
||||||
|
result.append(view.render());
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="d2e199_devicesetChannelSettingsPatch_body"></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3758,8 +3816,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
||||||
@ -3778,8 +3837,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
||||||
@ -3795,11 +3855,13 @@ public class DeviceSetApiExample {
|
|||||||
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPut-0-objc">
|
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPut-0-objc">
|
||||||
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
||||||
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings *body = ; // Channel settings to apply
|
||||||
|
|
||||||
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
||||||
|
|
||||||
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
|
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
|
||||||
channelIndex:channelIndex
|
channelIndex:channelIndex
|
||||||
|
body:body
|
||||||
completionHandler: ^(ChannelSettings output, NSError* error) {
|
completionHandler: ^(ChannelSettings output, NSError* error) {
|
||||||
if (output) {
|
if (output) {
|
||||||
NSLog(@"%@", output);
|
NSLog(@"%@", output);
|
||||||
@ -3820,6 +3882,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
|
|||||||
|
|
||||||
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
||||||
|
|
||||||
|
var body = ; // {ChannelSettings} Channel settings to apply
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
var callback = function(error, data, response) {
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -3828,7 +3892,7 @@ var callback = function(error, data, response) {
|
|||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, callback);
|
api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body, callback);
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -3852,10 +3916,11 @@ namespace Example
|
|||||||
var apiInstance = new DeviceSetApi();
|
var apiInstance = new DeviceSetApi();
|
||||||
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -3875,9 +3940,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
||||||
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
$body = ; // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex);
|
$result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex, $body);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -3893,9 +3959,10 @@ use SWGSDRangel::DeviceSetApi;
|
|||||||
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
||||||
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
||||||
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
||||||
|
my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
|
my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
|
||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
@ -3914,9 +3981,10 @@ from pprint import pprint
|
|||||||
api_instance = swagger_sdrangel.DeviceSetApi()
|
api_instance = swagger_sdrangel.DeviceSetApi()
|
||||||
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
||||||
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
||||||
|
body = # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex)
|
api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex, body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)</code></pre>
|
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)</code></pre>
|
||||||
@ -3980,6 +4048,48 @@ except ApiException as e:
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="methodsubtabletitle">Body parameters</div>
|
||||||
|
<table id="methodsubtable">
|
||||||
|
<tr>
|
||||||
|
<th width="150px">Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var schemaWrapper = {
|
||||||
|
"in" : "body",
|
||||||
|
"name" : "body",
|
||||||
|
"description" : "Channel settings to apply",
|
||||||
|
"required" : true,
|
||||||
|
"schema" : {
|
||||||
|
"$ref" : "#/definitions/ChannelSettings"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var schema = schemaWrapper.schema;
|
||||||
|
if (schema.$ref != null) {
|
||||||
|
schema = defsParser.$refs.get(schema.$ref);
|
||||||
|
} else {
|
||||||
|
schemaWrapper.definitions = Object.assign({}, defs);
|
||||||
|
$RefParser.dereference(schemaWrapper).catch(function(err) {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
|
||||||
|
var result = $('#d2e199_devicesetChannelSettingsPut_body');
|
||||||
|
result.empty();
|
||||||
|
result.append(view.render());
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="d2e199_devicesetChannelSettingsPut_body"></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -16199,7 +16309,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2017-12-23T23:39:41.313+01:00
|
Generated 2017-12-28T22:34:28.719+01:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -900,6 +900,12 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
description: Index of the channel in the channels list for this device set
|
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:
|
||||||
|
$ref: "#/definitions/ChannelSettings"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return channel new settings
|
description: On success return channel new settings
|
||||||
@ -933,6 +939,12 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
description: Index of the channel in the channels list for this device set
|
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:
|
||||||
|
$ref: "#/definitions/ChannelSettings"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: On success return channel new settings
|
description: On success return channel new settings
|
||||||
|
@ -1015,7 +1015,8 @@ margin-bottom: 20px;
|
|||||||
"fileName" : {
|
"fileName" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "FileSource"
|
||||||
};
|
};
|
||||||
defs.InstanceChannelsResponse = {
|
defs.InstanceChannelsResponse = {
|
||||||
"required" : [ "channelcount" ],
|
"required" : [ "channelcount" ],
|
||||||
@ -1129,7 +1130,8 @@ margin-bottom: 20px;
|
|||||||
"extClockFreq" : {
|
"extClockFreq" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "LimeSDR"
|
||||||
};
|
};
|
||||||
defs.LimeSdrOutputSettings = {
|
defs.LimeSdrOutputSettings = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1173,7 +1175,8 @@ margin-bottom: 20px;
|
|||||||
"extClockFreq" : {
|
"extClockFreq" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "LimeSDR"
|
||||||
};
|
};
|
||||||
defs.LocationInformation = {
|
defs.LocationInformation = {
|
||||||
"required" : [ "latitude", "longitude" ],
|
"required" : [ "latitude", "longitude" ],
|
||||||
@ -1273,7 +1276,8 @@ margin-bottom: 20px;
|
|||||||
"title" : {
|
"title" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "NFMDemod"
|
||||||
};
|
};
|
||||||
defs.NFMModSettings = {
|
defs.NFMModSettings = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1334,7 +1338,8 @@ margin-bottom: 20px;
|
|||||||
"cwKeyer" : {
|
"cwKeyer" : {
|
||||||
"$ref" : "#/definitions/CWKeyerSettings"
|
"$ref" : "#/definitions/CWKeyerSettings"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "NFMMod"
|
||||||
};
|
};
|
||||||
defs.PresetExport = {
|
defs.PresetExport = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -1500,7 +1505,8 @@ margin-bottom: 20px;
|
|||||||
"type" : "integer",
|
"type" : "integer",
|
||||||
"format" : "int64"
|
"format" : "int64"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description" : "RTLSDR"
|
||||||
};
|
};
|
||||||
defs.SamplingDevice = {
|
defs.SamplingDevice = {
|
||||||
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
|
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
|
||||||
@ -3264,8 +3270,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
||||||
@ -3284,8 +3291,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
|
||||||
@ -3301,11 +3309,13 @@ public class DeviceSetApiExample {
|
|||||||
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPatch-0-objc">
|
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPatch-0-objc">
|
||||||
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
||||||
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings *body = ; // Channel settings to apply
|
||||||
|
|
||||||
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
||||||
|
|
||||||
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
|
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
|
||||||
channelIndex:channelIndex
|
channelIndex:channelIndex
|
||||||
|
body:body
|
||||||
completionHandler: ^(ChannelSettings output, NSError* error) {
|
completionHandler: ^(ChannelSettings output, NSError* error) {
|
||||||
if (output) {
|
if (output) {
|
||||||
NSLog(@"%@", output);
|
NSLog(@"%@", output);
|
||||||
@ -3326,6 +3336,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
|
|||||||
|
|
||||||
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
||||||
|
|
||||||
|
var body = ; // {ChannelSettings} Channel settings to apply
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
var callback = function(error, data, response) {
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -3334,7 +3346,7 @@ var callback = function(error, data, response) {
|
|||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, callback);
|
api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body, callback);
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -3358,10 +3370,11 @@ namespace Example
|
|||||||
var apiInstance = new DeviceSetApi();
|
var apiInstance = new DeviceSetApi();
|
||||||
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -3381,9 +3394,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
||||||
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
$body = ; // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex);
|
$result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex, $body);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -3399,9 +3413,10 @@ use SWGSDRangel::DeviceSetApi;
|
|||||||
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
||||||
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
||||||
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
||||||
|
my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
|
my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
|
||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
@ -3420,9 +3435,10 @@ from pprint import pprint
|
|||||||
api_instance = swagger_sdrangel.DeviceSetApi()
|
api_instance = swagger_sdrangel.DeviceSetApi()
|
||||||
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
||||||
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
||||||
|
body = # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex)
|
api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex, body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)</code></pre>
|
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)</code></pre>
|
||||||
@ -3486,6 +3502,48 @@ except ApiException as e:
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="methodsubtabletitle">Body parameters</div>
|
||||||
|
<table id="methodsubtable">
|
||||||
|
<tr>
|
||||||
|
<th width="150px">Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var schemaWrapper = {
|
||||||
|
"in" : "body",
|
||||||
|
"name" : "body",
|
||||||
|
"description" : "Channel settings to apply",
|
||||||
|
"required" : true,
|
||||||
|
"schema" : {
|
||||||
|
"$ref" : "#/definitions/ChannelSettings"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var schema = schemaWrapper.schema;
|
||||||
|
if (schema.$ref != null) {
|
||||||
|
schema = defsParser.$refs.get(schema.$ref);
|
||||||
|
} else {
|
||||||
|
schemaWrapper.definitions = Object.assign({}, defs);
|
||||||
|
$RefParser.dereference(schemaWrapper).catch(function(err) {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
|
||||||
|
var result = $('#d2e199_devicesetChannelSettingsPatch_body');
|
||||||
|
result.empty();
|
||||||
|
result.append(view.render());
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="d2e199_devicesetChannelSettingsPatch_body"></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3758,8 +3816,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
||||||
@ -3778,8 +3837,9 @@ public class DeviceSetApiExample {
|
|||||||
DeviceSetApi apiInstance = new DeviceSetApi();
|
DeviceSetApi apiInstance = new DeviceSetApi();
|
||||||
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings body = ; // ChannelSettings | Channel settings to apply
|
||||||
try {
|
try {
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
|
||||||
@ -3795,11 +3855,13 @@ public class DeviceSetApiExample {
|
|||||||
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPut-0-objc">
|
<div class="tab-pane" id="examples-DeviceSet-devicesetChannelSettingsPut-0-objc">
|
||||||
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
|
||||||
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
|
||||||
|
ChannelSettings *body = ; // Channel settings to apply
|
||||||
|
|
||||||
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
|
||||||
|
|
||||||
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
|
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
|
||||||
channelIndex:channelIndex
|
channelIndex:channelIndex
|
||||||
|
body:body
|
||||||
completionHandler: ^(ChannelSettings output, NSError* error) {
|
completionHandler: ^(ChannelSettings output, NSError* error) {
|
||||||
if (output) {
|
if (output) {
|
||||||
NSLog(@"%@", output);
|
NSLog(@"%@", output);
|
||||||
@ -3820,6 +3882,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
|
|||||||
|
|
||||||
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
|
||||||
|
|
||||||
|
var body = ; // {ChannelSettings} Channel settings to apply
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
var callback = function(error, data, response) {
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -3828,7 +3892,7 @@ var callback = function(error, data, response) {
|
|||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, callback);
|
api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body, callback);
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -3852,10 +3916,11 @@ namespace Example
|
|||||||
var apiInstance = new DeviceSetApi();
|
var apiInstance = new DeviceSetApi();
|
||||||
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
|
ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -3875,9 +3940,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
$api_instance = new Swagger\Client\Api\DeviceSetApi();
|
||||||
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
$deviceSetIndex = 56; // Integer | Index of device set in the device set list
|
||||||
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
|
||||||
|
$body = ; // ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex);
|
$result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex, $body);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -3893,9 +3959,10 @@ use SWGSDRangel::DeviceSetApi;
|
|||||||
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
my $api_instance = SWGSDRangel::DeviceSetApi->new();
|
||||||
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
|
||||||
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
|
||||||
|
my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
|
my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
|
||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
@ -3914,9 +3981,10 @@ from pprint import pprint
|
|||||||
api_instance = swagger_sdrangel.DeviceSetApi()
|
api_instance = swagger_sdrangel.DeviceSetApi()
|
||||||
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
deviceSetIndex = 56 # Integer | Index of device set in the device set list
|
||||||
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
|
||||||
|
body = # ChannelSettings | Channel settings to apply
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex)
|
api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex, body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)</code></pre>
|
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)</code></pre>
|
||||||
@ -3980,6 +4048,48 @@ except ApiException as e:
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="methodsubtabletitle">Body parameters</div>
|
||||||
|
<table id="methodsubtable">
|
||||||
|
<tr>
|
||||||
|
<th width="150px">Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var schemaWrapper = {
|
||||||
|
"in" : "body",
|
||||||
|
"name" : "body",
|
||||||
|
"description" : "Channel settings to apply",
|
||||||
|
"required" : true,
|
||||||
|
"schema" : {
|
||||||
|
"$ref" : "#/definitions/ChannelSettings"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var schema = schemaWrapper.schema;
|
||||||
|
if (schema.$ref != null) {
|
||||||
|
schema = defsParser.$refs.get(schema.$ref);
|
||||||
|
} else {
|
||||||
|
schemaWrapper.definitions = Object.assign({}, defs);
|
||||||
|
$RefParser.dereference(schemaWrapper).catch(function(err) {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
|
||||||
|
var result = $('#d2e199_devicesetChannelSettingsPut_body');
|
||||||
|
result.empty();
|
||||||
|
result.append(view.render());
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="d2e199_devicesetChannelSettingsPut_body"></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -16199,7 +16309,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2017-12-23T23:39:41.313+01:00
|
Generated 2017-12-28T22:34:28.719+01:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -185,7 +185,7 @@ SWGDeviceSetApi::devicesetChannelSettingsGetCallback(HttpRequestWorker * worker)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index) {
|
SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body) {
|
||||||
QString fullPath;
|
QString fullPath;
|
||||||
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
|
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
|
||||||
|
|
||||||
@ -199,6 +199,8 @@ SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 c
|
|||||||
HttpRequestInput input(fullPath, "PATCH");
|
HttpRequestInput input(fullPath, "PATCH");
|
||||||
|
|
||||||
|
|
||||||
|
QString output = body.asJson();
|
||||||
|
input.request_body.append(output);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -237,7 +239,7 @@ SWGDeviceSetApi::devicesetChannelSettingsPatchCallback(HttpRequestWorker * worke
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index) {
|
SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body) {
|
||||||
QString fullPath;
|
QString fullPath;
|
||||||
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
|
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
|
||||||
|
|
||||||
@ -251,6 +253,8 @@ SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 cha
|
|||||||
HttpRequestInput input(fullPath, "PUT");
|
HttpRequestInput input(fullPath, "PUT");
|
||||||
|
|
||||||
|
|
||||||
|
QString output = body.asJson();
|
||||||
|
input.request_body.append(output);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ public:
|
|||||||
void devicesetChannelDelete(qint32 device_set_index, qint32 channel_index);
|
void devicesetChannelDelete(qint32 device_set_index, qint32 channel_index);
|
||||||
void devicesetChannelPost(qint32 device_set_index, SWGChannelSettings body);
|
void devicesetChannelPost(qint32 device_set_index, SWGChannelSettings body);
|
||||||
void devicesetChannelSettingsGet(qint32 device_set_index, qint32 channel_index);
|
void devicesetChannelSettingsGet(qint32 device_set_index, qint32 channel_index);
|
||||||
void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index);
|
void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body);
|
||||||
void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index);
|
void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body);
|
||||||
void devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem body);
|
void devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem body);
|
||||||
void devicesetDeviceRunDelete(qint32 device_set_index);
|
void devicesetDeviceRunDelete(qint32 device_set_index);
|
||||||
void devicesetDeviceRunGet(qint32 device_set_index);
|
void devicesetDeviceRunGet(qint32 device_set_index);
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGFileSourceSettings.h
|
* SWGFileSourceSettings.h
|
||||||
*
|
*
|
||||||
*
|
* FileSource
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGFileSourceSettings_H_
|
#ifndef SWGFileSourceSettings_H_
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGLimeSdrInputSettings.h
|
* SWGLimeSdrInputSettings.h
|
||||||
*
|
*
|
||||||
*
|
* LimeSDR
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGLimeSdrInputSettings_H_
|
#ifndef SWGLimeSdrInputSettings_H_
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGLimeSdrOutputSettings.h
|
* SWGLimeSdrOutputSettings.h
|
||||||
*
|
*
|
||||||
*
|
* LimeSDR
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGLimeSdrOutputSettings_H_
|
#ifndef SWGLimeSdrOutputSettings_H_
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGNFMDemodSettings.h
|
* SWGNFMDemodSettings.h
|
||||||
*
|
*
|
||||||
*
|
* NFMDemod
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGNFMDemodSettings_H_
|
#ifndef SWGNFMDemodSettings_H_
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGNFMModSettings.h
|
* SWGNFMModSettings.h
|
||||||
*
|
*
|
||||||
*
|
* NFMMod
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGNFMModSettings_H_
|
#ifndef SWGNFMModSettings_H_
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/*
|
/*
|
||||||
* SWGRtlSdrSettings.h
|
* SWGRtlSdrSettings.h
|
||||||
*
|
*
|
||||||
*
|
* RTLSDR
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SWGRtlSdrSettings_H_
|
#ifndef SWGRtlSdrSettings_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user