mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-25 03:24:18 -04:00
SDRdaemon Web API: logging options
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user