mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -05:00
SDRdaemon Web API: logging options
This commit is contained in:
parent
5f15936820
commit
e073af634c
@ -4000,6 +4000,12 @@ margin-bottom: 20px;
|
||||
<li class="nav-fixed nav-header active" data-group="_"><a href="#api-_">API Summary</a></li>
|
||||
|
||||
<li class="nav-header" data-group="Daemon"><a href="#api-Daemon">API Methods - Daemon</a></li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceLoggingGet" class="">
|
||||
<a href="#api-Daemon-daemonInstanceLoggingGet">daemonInstanceLoggingGet</a>
|
||||
</li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceLoggingPut" class="">
|
||||
<a href="#api-Daemon-daemonInstanceLoggingPut">daemonInstanceLoggingPut</a>
|
||||
</li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceSummary" class="">
|
||||
<a href="#api-Daemon-daemonInstanceSummary">daemonInstanceSummary</a>
|
||||
</li>
|
||||
@ -4191,6 +4197,771 @@ margin-bottom: 20px;
|
||||
<div id="sections">
|
||||
<section id="api-Daemon">
|
||||
<h1>Daemon</h1>
|
||||
<div id="api-Daemon-daemonInstanceLoggingGet">
|
||||
<article id="api-Daemon-daemonInstanceLoggingGet-0" data-group="User" data-name="daemonInstanceLoggingGet" data-version="0">
|
||||
<div class="pull-left">
|
||||
<h1>daemonInstanceLoggingGet</h1>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Get logging information for this instance</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrdaemon/logging</span></code></pre>
|
||||
<p>
|
||||
<h3>Usage and SDK Samples</h3>
|
||||
</p>
|
||||
<ul class="nav nav-tabs nav-tabs-examples">
|
||||
<li class="active"><a href="#examples-Daemon-daemonInstanceLoggingGet-0-curl">Curl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-java">Java</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-android">Android</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-groovy">Groovy</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-objc">Obj-C</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-javascript">JavaScript</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-angular">Angular</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-csharp">C#</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-php">PHP</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-perl">Perl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-python">Python</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="examples-Daemon-daemonInstanceLoggingGet-0-curl">
|
||||
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://localhost/sdrdaemon/logging"</code></pre>
|
||||
</div>
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
|
||||
import SWGSDRangel.auth.*;
|
||||
import SWGSDRangel.model.*;
|
||||
import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-android">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
<!--
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-groovy">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div> -->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-objc">
|
||||
<pre class="prettyprint"><code class="language-cpp">
|
||||
DaemonApi *apiInstance = [[DaemonApi alloc] init];
|
||||
|
||||
[apiInstance daemonInstanceLoggingGetWithCompletionHandler:
|
||||
^(LoggingInfo output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
if (error) {
|
||||
NSLog(@"Error: %@", error);
|
||||
}
|
||||
}];
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-javascript">
|
||||
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
|
||||
|
||||
var api = new SdRangel.DaemonApi()
|
||||
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
}
|
||||
};
|
||||
api.daemonInstanceLoggingGet(callback);
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<!--<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-angular">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div>-->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-csharp">
|
||||
<pre class="prettyprint"><code class="language-cs">using System;
|
||||
using System.Diagnostics;
|
||||
using SWGSDRangel.Api;
|
||||
using SWGSDRangel.Client;
|
||||
using SWGSDRangel.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class daemonInstanceLoggingGetExample
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new DaemonApi();
|
||||
|
||||
try
|
||||
{
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingGet: " + e.Message );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-php">
|
||||
<pre class="prettyprint"><code class="language-php"><?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$api_instance = new Swagger\Client\Api\DaemonApi();
|
||||
|
||||
try {
|
||||
$result = $api_instance->daemonInstanceLoggingGet();
|
||||
print_r($result);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling DaemonApi->daemonInstanceLoggingGet: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
?></code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use SWGSDRangel::Configuration;
|
||||
use SWGSDRangel::DaemonApi;
|
||||
|
||||
my $api_instance = SWGSDRangel::DaemonApi->new();
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->daemonInstanceLoggingGet();
|
||||
print Dumper($result);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling DaemonApi->daemonInstanceLoggingGet: $@\n";
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_sdrangel
|
||||
from swagger_sdrangel.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_sdrangel.DaemonApi()
|
||||
|
||||
try:
|
||||
api_response = api_instance.daemon_instance_logging_get()
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling DaemonApi->daemonInstanceLoggingGet: %s\n" % e)</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Parameters</h2>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Responses</h2>
|
||||
<h3> Status: 200 - Success </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-200-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-200-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Success",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-200-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-200-schema-200');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-200-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 500 - Error </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-500-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-500-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Error",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-500-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-500-schema-500');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-500-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 501 - Function not implemented </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-501-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-501-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Function not implemented",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-501-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-501-schema-501');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-501-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="api-Daemon-daemonInstanceLoggingPut">
|
||||
<article id="api-Daemon-daemonInstanceLoggingPut-0" data-group="User" data-name="daemonInstanceLoggingPut" data-version="0">
|
||||
<div class="pull-left">
|
||||
<h1>daemonInstanceLoggingPut</h1>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Change logging parmeters for this instance</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrdaemon/logging</span></code></pre>
|
||||
<p>
|
||||
<h3>Usage and SDK Samples</h3>
|
||||
</p>
|
||||
<ul class="nav nav-tabs nav-tabs-examples">
|
||||
<li class="active"><a href="#examples-Daemon-daemonInstanceLoggingPut-0-curl">Curl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-java">Java</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-android">Android</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-groovy">Groovy</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-objc">Obj-C</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-javascript">JavaScript</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-angular">Angular</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-csharp">C#</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-php">PHP</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-perl">Perl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-python">Python</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="examples-Daemon-daemonInstanceLoggingPut-0-curl">
|
||||
<pre class="prettyprint"><code class="language-bsh">curl -X PUT "http://localhost/sdrdaemon/logging"</code></pre>
|
||||
</div>
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
|
||||
import SWGSDRangel.auth.*;
|
||||
import SWGSDRangel.model.*;
|
||||
import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
LoggingInfo body = ; // LoggingInfo | Logging information
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-android">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
LoggingInfo body = ; // LoggingInfo | Logging information
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
<!--
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-groovy">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div> -->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-objc">
|
||||
<pre class="prettyprint"><code class="language-cpp">LoggingInfo *body = ; // Logging information
|
||||
|
||||
DaemonApi *apiInstance = [[DaemonApi alloc] init];
|
||||
|
||||
[apiInstance daemonInstanceLoggingPutWith:body
|
||||
completionHandler: ^(LoggingInfo output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
if (error) {
|
||||
NSLog(@"Error: %@", error);
|
||||
}
|
||||
}];
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-javascript">
|
||||
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
|
||||
|
||||
var api = new SdRangel.DaemonApi()
|
||||
|
||||
var body = ; // {LoggingInfo} Logging information
|
||||
|
||||
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
}
|
||||
};
|
||||
api.daemonInstanceLoggingPut(body, callback);
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<!--<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-angular">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div>-->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-csharp">
|
||||
<pre class="prettyprint"><code class="language-cs">using System;
|
||||
using System.Diagnostics;
|
||||
using SWGSDRangel.Api;
|
||||
using SWGSDRangel.Client;
|
||||
using SWGSDRangel.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class daemonInstanceLoggingPutExample
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new DaemonApi();
|
||||
var body = new LoggingInfo(); // LoggingInfo | Logging information
|
||||
|
||||
try
|
||||
{
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingPut: " + e.Message );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-php">
|
||||
<pre class="prettyprint"><code class="language-php"><?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$api_instance = new Swagger\Client\Api\DaemonApi();
|
||||
$body = ; // LoggingInfo | Logging information
|
||||
|
||||
try {
|
||||
$result = $api_instance->daemonInstanceLoggingPut($body);
|
||||
print_r($result);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling DaemonApi->daemonInstanceLoggingPut: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
?></code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use SWGSDRangel::Configuration;
|
||||
use SWGSDRangel::DaemonApi;
|
||||
|
||||
my $api_instance = SWGSDRangel::DaemonApi->new();
|
||||
my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->daemonInstanceLoggingPut(body => $body);
|
||||
print Dumper($result);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling DaemonApi->daemonInstanceLoggingPut: $@\n";
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_sdrangel
|
||||
from swagger_sdrangel.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_sdrangel.DaemonApi()
|
||||
body = # LoggingInfo | Logging information
|
||||
|
||||
try:
|
||||
api_response = api_instance.daemon_instance_logging_put(body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling DaemonApi->daemonInstanceLoggingPut: %s\n" % e)</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Parameters</h2>
|
||||
|
||||
|
||||
|
||||
<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" : "Logging information",
|
||||
"required" : true,
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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_daemonInstanceLoggingPut_body');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
<div id="d2e199_daemonInstanceLoggingPut_body"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2>Responses</h2>
|
||||
<h3> Status: 200 - Return new data on success </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-200-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-200-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Return new data on success",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-200-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-200-schema-200');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-200-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 400 - Invalid data </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-400-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-400-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-400-schema-400' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Invalid data",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-400-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-400-schema-400');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-400-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 500 - Error </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-500-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-500-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Error",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-500-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-500-schema-500');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-500-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 501 - Function not implemented </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-501-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-501-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Function not implemented",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-501-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-501-schema-501');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-501-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="api-Daemon-daemonInstanceSummary">
|
||||
<article id="api-Daemon-daemonInstanceSummary-0" data-group="User" data-name="daemonInstanceSummary" data-version="0">
|
||||
<div class="pull-left">
|
||||
@ -26299,7 +27070,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2018-08-18T09:43:37.059+02:00
|
||||
Generated 2018-08-18T15:06:40.106+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1254,6 +1254,50 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrdaemon/logging:
|
||||
x-swagger-router-controller: daemon
|
||||
get:
|
||||
description: Get logging information for this instance
|
||||
operationId: daemonInstanceLoggingGet
|
||||
tags:
|
||||
- Daemon
|
||||
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: daemonInstanceLoggingPut
|
||||
tags:
|
||||
- Daemon
|
||||
consumes:
|
||||
- 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"
|
||||
|
||||
/sdrdaemon/settings:
|
||||
x-swagger-router-controller: deviceset
|
||||
get:
|
||||
|
@ -1254,6 +1254,50 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrdaemon/logging:
|
||||
x-swagger-router-controller: daemon
|
||||
get:
|
||||
description: Get logging information for this instance
|
||||
operationId: daemonInstanceLoggingGet
|
||||
tags:
|
||||
- Daemon
|
||||
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: daemonInstanceLoggingPut
|
||||
tags:
|
||||
- Daemon
|
||||
consumes:
|
||||
- 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"
|
||||
|
||||
/sdrdaemon/settings:
|
||||
x-swagger-router-controller: deviceset
|
||||
get:
|
||||
|
@ -4000,6 +4000,12 @@ margin-bottom: 20px;
|
||||
<li class="nav-fixed nav-header active" data-group="_"><a href="#api-_">API Summary</a></li>
|
||||
|
||||
<li class="nav-header" data-group="Daemon"><a href="#api-Daemon">API Methods - Daemon</a></li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceLoggingGet" class="">
|
||||
<a href="#api-Daemon-daemonInstanceLoggingGet">daemonInstanceLoggingGet</a>
|
||||
</li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceLoggingPut" class="">
|
||||
<a href="#api-Daemon-daemonInstanceLoggingPut">daemonInstanceLoggingPut</a>
|
||||
</li>
|
||||
<li data-group="Daemon" data-name="daemonInstanceSummary" class="">
|
||||
<a href="#api-Daemon-daemonInstanceSummary">daemonInstanceSummary</a>
|
||||
</li>
|
||||
@ -4191,6 +4197,771 @@ margin-bottom: 20px;
|
||||
<div id="sections">
|
||||
<section id="api-Daemon">
|
||||
<h1>Daemon</h1>
|
||||
<div id="api-Daemon-daemonInstanceLoggingGet">
|
||||
<article id="api-Daemon-daemonInstanceLoggingGet-0" data-group="User" data-name="daemonInstanceLoggingGet" data-version="0">
|
||||
<div class="pull-left">
|
||||
<h1>daemonInstanceLoggingGet</h1>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Get logging information for this instance</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrdaemon/logging</span></code></pre>
|
||||
<p>
|
||||
<h3>Usage and SDK Samples</h3>
|
||||
</p>
|
||||
<ul class="nav nav-tabs nav-tabs-examples">
|
||||
<li class="active"><a href="#examples-Daemon-daemonInstanceLoggingGet-0-curl">Curl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-java">Java</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-android">Android</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-groovy">Groovy</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-objc">Obj-C</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-javascript">JavaScript</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-angular">Angular</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-csharp">C#</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-php">PHP</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-perl">Perl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingGet-0-python">Python</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="examples-Daemon-daemonInstanceLoggingGet-0-curl">
|
||||
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://localhost/sdrdaemon/logging"</code></pre>
|
||||
</div>
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
|
||||
import SWGSDRangel.auth.*;
|
||||
import SWGSDRangel.model.*;
|
||||
import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-android">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
<!--
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-groovy">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div> -->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-objc">
|
||||
<pre class="prettyprint"><code class="language-cpp">
|
||||
DaemonApi *apiInstance = [[DaemonApi alloc] init];
|
||||
|
||||
[apiInstance daemonInstanceLoggingGetWithCompletionHandler:
|
||||
^(LoggingInfo output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
if (error) {
|
||||
NSLog(@"Error: %@", error);
|
||||
}
|
||||
}];
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-javascript">
|
||||
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
|
||||
|
||||
var api = new SdRangel.DaemonApi()
|
||||
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
}
|
||||
};
|
||||
api.daemonInstanceLoggingGet(callback);
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<!--<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-angular">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div>-->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-csharp">
|
||||
<pre class="prettyprint"><code class="language-cs">using System;
|
||||
using System.Diagnostics;
|
||||
using SWGSDRangel.Api;
|
||||
using SWGSDRangel.Client;
|
||||
using SWGSDRangel.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class daemonInstanceLoggingGetExample
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new DaemonApi();
|
||||
|
||||
try
|
||||
{
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingGet: " + e.Message );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-php">
|
||||
<pre class="prettyprint"><code class="language-php"><?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$api_instance = new Swagger\Client\Api\DaemonApi();
|
||||
|
||||
try {
|
||||
$result = $api_instance->daemonInstanceLoggingGet();
|
||||
print_r($result);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling DaemonApi->daemonInstanceLoggingGet: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
?></code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use SWGSDRangel::Configuration;
|
||||
use SWGSDRangel::DaemonApi;
|
||||
|
||||
my $api_instance = SWGSDRangel::DaemonApi->new();
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->daemonInstanceLoggingGet();
|
||||
print Dumper($result);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling DaemonApi->daemonInstanceLoggingGet: $@\n";
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingGet-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_sdrangel
|
||||
from swagger_sdrangel.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_sdrangel.DaemonApi()
|
||||
|
||||
try:
|
||||
api_response = api_instance.daemon_instance_logging_get()
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling DaemonApi->daemonInstanceLoggingGet: %s\n" % e)</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Parameters</h2>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Responses</h2>
|
||||
<h3> Status: 200 - Success </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-200-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-200-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Success",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-200-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-200-schema-200');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-200-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 500 - Error </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-500-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-500-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Error",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-500-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-500-schema-500');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-500-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 501 - Function not implemented </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingGet-501-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingGet-501-schema">
|
||||
<div id='responses-daemonInstanceLoggingGet-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Function not implemented",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingGet-501-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingGet-501-schema-501');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingGet-501-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="api-Daemon-daemonInstanceLoggingPut">
|
||||
<article id="api-Daemon-daemonInstanceLoggingPut-0" data-group="User" data-name="daemonInstanceLoggingPut" data-version="0">
|
||||
<div class="pull-left">
|
||||
<h1>daemonInstanceLoggingPut</h1>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Change logging parmeters for this instance</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrdaemon/logging</span></code></pre>
|
||||
<p>
|
||||
<h3>Usage and SDK Samples</h3>
|
||||
</p>
|
||||
<ul class="nav nav-tabs nav-tabs-examples">
|
||||
<li class="active"><a href="#examples-Daemon-daemonInstanceLoggingPut-0-curl">Curl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-java">Java</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-android">Android</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-groovy">Groovy</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-objc">Obj-C</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-javascript">JavaScript</a></li>
|
||||
<!--<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-angular">Angular</a></li>-->
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-csharp">C#</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-php">PHP</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-perl">Perl</a></li>
|
||||
<li class=""><a href="#examples-Daemon-daemonInstanceLoggingPut-0-python">Python</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="examples-Daemon-daemonInstanceLoggingPut-0-curl">
|
||||
<pre class="prettyprint"><code class="language-bsh">curl -X PUT "http://localhost/sdrdaemon/logging"</code></pre>
|
||||
</div>
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
|
||||
import SWGSDRangel.auth.*;
|
||||
import SWGSDRangel.model.*;
|
||||
import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
LoggingInfo body = ; // LoggingInfo | Logging information
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-android">
|
||||
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.DaemonApi;
|
||||
|
||||
public class DaemonApiExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
DaemonApi apiInstance = new DaemonApi();
|
||||
LoggingInfo body = ; // LoggingInfo | Logging information
|
||||
try {
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
<!--
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-groovy">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div> -->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-objc">
|
||||
<pre class="prettyprint"><code class="language-cpp">LoggingInfo *body = ; // Logging information
|
||||
|
||||
DaemonApi *apiInstance = [[DaemonApi alloc] init];
|
||||
|
||||
[apiInstance daemonInstanceLoggingPutWith:body
|
||||
completionHandler: ^(LoggingInfo output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
if (error) {
|
||||
NSLog(@"Error: %@", error);
|
||||
}
|
||||
}];
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-javascript">
|
||||
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
|
||||
|
||||
var api = new SdRangel.DaemonApi()
|
||||
|
||||
var body = ; // {LoggingInfo} Logging information
|
||||
|
||||
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
}
|
||||
};
|
||||
api.daemonInstanceLoggingPut(body, callback);
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<!--<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-angular">
|
||||
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
|
||||
</div>-->
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-csharp">
|
||||
<pre class="prettyprint"><code class="language-cs">using System;
|
||||
using System.Diagnostics;
|
||||
using SWGSDRangel.Api;
|
||||
using SWGSDRangel.Client;
|
||||
using SWGSDRangel.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class daemonInstanceLoggingPutExample
|
||||
{
|
||||
public void main()
|
||||
{
|
||||
|
||||
var apiInstance = new DaemonApi();
|
||||
var body = new LoggingInfo(); // LoggingInfo | Logging information
|
||||
|
||||
try
|
||||
{
|
||||
LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingPut: " + e.Message );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-php">
|
||||
<pre class="prettyprint"><code class="language-php"><?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$api_instance = new Swagger\Client\Api\DaemonApi();
|
||||
$body = ; // LoggingInfo | Logging information
|
||||
|
||||
try {
|
||||
$result = $api_instance->daemonInstanceLoggingPut($body);
|
||||
print_r($result);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling DaemonApi->daemonInstanceLoggingPut: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
?></code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use SWGSDRangel::Configuration;
|
||||
use SWGSDRangel::DaemonApi;
|
||||
|
||||
my $api_instance = SWGSDRangel::DaemonApi->new();
|
||||
my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->daemonInstanceLoggingPut(body => $body);
|
||||
print Dumper($result);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling DaemonApi->daemonInstanceLoggingPut: $@\n";
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Daemon-daemonInstanceLoggingPut-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_sdrangel
|
||||
from swagger_sdrangel.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_sdrangel.DaemonApi()
|
||||
body = # LoggingInfo | Logging information
|
||||
|
||||
try:
|
||||
api_response = api_instance.daemon_instance_logging_put(body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling DaemonApi->daemonInstanceLoggingPut: %s\n" % e)</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Parameters</h2>
|
||||
|
||||
|
||||
|
||||
<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" : "Logging information",
|
||||
"required" : true,
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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_daemonInstanceLoggingPut_body');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
<div id="d2e199_daemonInstanceLoggingPut_body"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2>Responses</h2>
|
||||
<h3> Status: 200 - Return new data on success </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-200-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-200-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Return new data on success",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/LoggingInfo"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-200-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-200-schema-200');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-200-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 400 - Invalid data </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-400-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-400-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-400-schema-400' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Invalid data",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-400-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-400-schema-400');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-400-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 500 - Error </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-500-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-500-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Error",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-500-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-500-schema-500');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-500-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3> Status: 501 - Function not implemented </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-daemonInstanceLoggingPut-501-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-daemonInstanceLoggingPut-501-schema">
|
||||
<div id='responses-daemonInstanceLoggingPut-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "Function not implemented",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/ErrorResponse"
|
||||
}
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(JSON.stringify(schema));
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-daemonInstanceLoggingPut-501-schema-data').val(stringify(schema));
|
||||
var result = $('#responses-daemonInstanceLoggingPut-501-schema-501');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-daemonInstanceLoggingPut-501-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="api-Daemon-daemonInstanceSummary">
|
||||
<article id="api-Daemon-daemonInstanceSummary-0" data-group="User" data-name="daemonInstanceSummary" data-version="0">
|
||||
<div class="pull-left">
|
||||
@ -26299,7 +27070,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2018-08-18T09:43:37.059+02:00
|
||||
Generated 2018-08-18T15:06:40.106+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -28,6 +28,113 @@ SWGDaemonApi::SWGDaemonApi(QString host, QString basePath) {
|
||||
this->basePath = basePath;
|
||||
}
|
||||
|
||||
void
|
||||
SWGDaemonApi::daemonInstanceLoggingGet() {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/sdrdaemon/logging");
|
||||
|
||||
|
||||
|
||||
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
|
||||
SWGHttpRequestInput input(fullPath, "GET");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach(QString key, this->defaultHeaders.keys()) {
|
||||
input.headers.insert(key, this->defaultHeaders.value(key));
|
||||
}
|
||||
|
||||
connect(worker,
|
||||
&SWGHttpRequestWorker::on_execution_finished,
|
||||
this,
|
||||
&SWGDaemonApi::daemonInstanceLoggingGetCallback);
|
||||
|
||||
worker->execute(&input);
|
||||
}
|
||||
|
||||
void
|
||||
SWGDaemonApi::daemonInstanceLoggingGetCallback(SWGHttpRequestWorker * worker) {
|
||||
QString msg;
|
||||
QString error_str = worker->error_str;
|
||||
QNetworkReply::NetworkError error_type = worker->error_type;
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
msg = QString("Success! %1 bytes").arg(worker->response.length());
|
||||
}
|
||||
else {
|
||||
msg = "Error: " + worker->error_str;
|
||||
}
|
||||
|
||||
|
||||
QString json(worker->response);
|
||||
SWGLoggingInfo* output = static_cast<SWGLoggingInfo*>(create(json, QString("SWGLoggingInfo")));
|
||||
worker->deleteLater();
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
emit daemonInstanceLoggingGetSignal(output);
|
||||
} else {
|
||||
emit daemonInstanceLoggingGetSignalE(output, error_type, error_str);
|
||||
emit daemonInstanceLoggingGetSignalEFull(worker, error_type, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGDaemonApi::daemonInstanceLoggingPut(SWGLoggingInfo& body) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/sdrdaemon/logging");
|
||||
|
||||
|
||||
|
||||
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
|
||||
SWGHttpRequestInput input(fullPath, "PUT");
|
||||
|
||||
|
||||
|
||||
QString output = body.asJson();
|
||||
input.request_body.append(output);
|
||||
|
||||
|
||||
|
||||
foreach(QString key, this->defaultHeaders.keys()) {
|
||||
input.headers.insert(key, this->defaultHeaders.value(key));
|
||||
}
|
||||
|
||||
connect(worker,
|
||||
&SWGHttpRequestWorker::on_execution_finished,
|
||||
this,
|
||||
&SWGDaemonApi::daemonInstanceLoggingPutCallback);
|
||||
|
||||
worker->execute(&input);
|
||||
}
|
||||
|
||||
void
|
||||
SWGDaemonApi::daemonInstanceLoggingPutCallback(SWGHttpRequestWorker * worker) {
|
||||
QString msg;
|
||||
QString error_str = worker->error_str;
|
||||
QNetworkReply::NetworkError error_type = worker->error_type;
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
msg = QString("Success! %1 bytes").arg(worker->response.length());
|
||||
}
|
||||
else {
|
||||
msg = "Error: " + worker->error_str;
|
||||
}
|
||||
|
||||
|
||||
QString json(worker->response);
|
||||
SWGLoggingInfo* output = static_cast<SWGLoggingInfo*>(create(json, QString("SWGLoggingInfo")));
|
||||
worker->deleteLater();
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
emit daemonInstanceLoggingPutSignal(output);
|
||||
} else {
|
||||
emit daemonInstanceLoggingPutSignalE(output, error_type, error_str);
|
||||
emit daemonInstanceLoggingPutSignalEFull(worker, error_type, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGDaemonApi::daemonInstanceSummary() {
|
||||
QString fullPath;
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "SWGDeviceSettings.h"
|
||||
#include "SWGDeviceState.h"
|
||||
#include "SWGErrorResponse.h"
|
||||
#include "SWGLoggingInfo.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -37,6 +38,8 @@ public:
|
||||
QString basePath;
|
||||
QMap<QString, QString> defaultHeaders;
|
||||
|
||||
void daemonInstanceLoggingGet();
|
||||
void daemonInstanceLoggingPut(SWGLoggingInfo& body);
|
||||
void daemonInstanceSummary();
|
||||
void daemonReportGet();
|
||||
void daemonRunDelete();
|
||||
@ -47,6 +50,8 @@ public:
|
||||
void daemonSettingsPut(SWGDeviceSettings& body);
|
||||
|
||||
private:
|
||||
void daemonInstanceLoggingGetCallback (SWGHttpRequestWorker * worker);
|
||||
void daemonInstanceLoggingPutCallback (SWGHttpRequestWorker * worker);
|
||||
void daemonInstanceSummaryCallback (SWGHttpRequestWorker * worker);
|
||||
void daemonReportGetCallback (SWGHttpRequestWorker * worker);
|
||||
void daemonRunDeleteCallback (SWGHttpRequestWorker * worker);
|
||||
@ -57,6 +62,8 @@ private:
|
||||
void daemonSettingsPutCallback (SWGHttpRequestWorker * worker);
|
||||
|
||||
signals:
|
||||
void daemonInstanceLoggingGetSignal(SWGLoggingInfo* summary);
|
||||
void daemonInstanceLoggingPutSignal(SWGLoggingInfo* summary);
|
||||
void daemonInstanceSummarySignal(SWGDaemonSummaryResponse* summary);
|
||||
void daemonReportGetSignal(SWGDeviceReport* summary);
|
||||
void daemonRunDeleteSignal(SWGDeviceState* summary);
|
||||
@ -66,6 +73,8 @@ signals:
|
||||
void daemonSettingsPatchSignal(SWGDeviceSettings* summary);
|
||||
void daemonSettingsPutSignal(SWGDeviceSettings* summary);
|
||||
|
||||
void daemonInstanceLoggingGetSignalE(SWGLoggingInfo* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonInstanceLoggingPutSignalE(SWGLoggingInfo* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonInstanceSummarySignalE(SWGDaemonSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonReportGetSignalE(SWGDeviceReport* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonRunDeleteSignalE(SWGDeviceState* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
@ -75,6 +84,8 @@ signals:
|
||||
void daemonSettingsPatchSignalE(SWGDeviceSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonSettingsPutSignalE(SWGDeviceSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
|
||||
void daemonInstanceLoggingGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonInstanceLoggingPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonInstanceSummarySignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void daemonRunDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
|
Loading…
Reference in New Issue
Block a user