1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-07 03:15:22 -04:00

10052 lines
681 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>SDRangel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8" />
<script>
/*! jQuery v3.1.0 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.0",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null!=a?a<0?this[a+this.length]:this[a]:f.call(this)},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=r.isArray(d)))?(e?(e=!1,f=c&&r.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"
r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},T=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function U(){this.expando=r.expando+U.uid++}U.uid=1,U.prototype={cache:function(a){var b=a[this.expando];return b||(b={},T(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){r.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(K)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var V=new U,W=new U,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Y,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:X.test(c)?JSON.parse(c):c)}catch(e){}W.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return W.hasData(a)||V.hasData(a)},data:function(a,b,c){return W.access(a,b,c)},removeData:function(a,b){W.remove(a,b)},_data:function(a,b,c){return V.access(a,b,c)},_removeData:function(a,b){V.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=W.get(f),1===f.nodeType&&!V.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),Z(f,d,e[d])));V.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){W.set(this,a)}):S(this,function(b){var c;if(f&&void 0===b){if(c=W.get(f,a),void 0!==c)return c;if(c=Z(f,a),void 0!==c)return c}else this.each(function(){W.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=V.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var $=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_=new RegExp("^(?:([+-])=|)("+$+")([a-z%]*)$","i"),aa=["Top","Right","Bottom","Left"],ba=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ca=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function da(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(
if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),hb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ib[b]||r.find.attr;ib[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=ib[g],ib[g]=e,e=null!=c(a,b,d)?g:null,ib[g]=f),e}});var jb=/^(?:input|select|textarea|button)$/i,kb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):jb.test(a.nodeName)||kb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});var lb=/[\t\r\n\f]/g;function mb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,mb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=mb(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=r.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,mb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=mb(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=r.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,mb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=mb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(c)+" ").replace(lb," ").indexOf(b)>-1)return!0;return!1}});var nb=/\r/g,ob=/[\x20\t\r\n\f]+/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(nb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:r.trim(r.text(a)).replace(ob," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;i<h;i++)if(c=d[i],(c.selected||i===e)&&!c.disabled&&(!c.parentNode.disabled||!r.nodeName(c.parentNode,"optgroup"))){if(b=r(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=r.makeA
</script>
<script>
!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return e==="\\"||e==="-"||e==="]"||e==="^"?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],a=
b[0]==="^",c=["["];a&&c.push("^");for(var a=a?1:0,f=b.length;a<f;++a){var h=b[a];if(/\\[bdsw]/i.test(h))c.push(h);else{var h=d(h),l;a+2<f&&"-"===b[a+1]?(l=d(b[a+2]),a+=2):l=h;e.push([h,l]);l<65||h>122||(l<65||h>90||e.push([Math.max(65,h)|32,Math.min(l,90)|32]),l<97||h>122||e.push([Math.max(97,h)&-33,Math.min(l,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];f=[];for(a=0;a<e.length;++a)h=e[a],h[0]<=f[1]+1?f[1]=Math.max(f[1],h[1]):b.push(f=h);for(a=0;a<b.length;++a)h=b[a],c.push(g(h[0])),
h[1]>h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(g(h[1])));c.push("]");return c.join("")}function s(e){for(var a=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],f=0,h=0;f<c;++f){var l=a[f];l==="("?++h:"\\"===l.charAt(0)&&(l=+l.substring(1))&&(l<=h?d[l]=-1:a[f]=g(l))}for(f=1;f<d.length;++f)-1===d[f]&&(d[f]=++x);for(h=f=0;f<c;++f)l=a[f],l==="("?(++h,d[h]||(a[f]="(?:")):"\\"===l.charAt(0)&&(l=+l.substring(1))&&l<=h&&
(a[f]="\\"+d[l]);for(f=0;f<c;++f)"^"===a[f]&&"^"!==a[f+1]&&(a[f]="");if(e.ignoreCase&&m)for(f=0;f<c;++f)l=a[f],e=l.charAt(0),l.length>=2&&e==="["?a[f]=b(l):e!=="\\"&&(a[f]=l.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var x=0,m=!1,j=!1,k=0,c=a.length;k<c;++k){var i=a[k];if(i.ignoreCase)j=!0;else if(/[a-z]/i.test(i.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){m=!0;j=!1;break}}for(var r={b:8,t:9,n:10,v:11,
f:12,r:13},n=[],k=0,c=a.length;k<c;++k){i=a[k];if(i.global||i.multiline)throw Error(""+i);n.push("(?:"+s(i)+")")}return RegExp(n.join("|"),j?"gi":"g")}function T(a,d){function g(a){var c=a.nodeType;if(c==1){if(!b.test(a.className)){for(c=a.firstChild;c;c=c.nextSibling)g(c);c=a.nodeName.toLowerCase();if("br"===c||"li"===c)s[j]="\n",m[j<<1]=x++,m[j++<<1|1]=a}}else if(c==3||c==4)c=a.nodeValue,c.length&&(c=d?c.replace(/\r\n?/g,"\n"):c.replace(/[\t\n\r ]+/g," "),s[j]=c,m[j<<1]=x,x+=c.length,m[j++<<1|1]=
a)}var b=/(?:^|\s)nocode(?:\s|$)/,s=[],x=0,m=[],j=0;g(a);return{a:s.join("").replace(/\n$/,""),d:m}}function H(a,d,g,b){d&&(a={a:d,e:a},g(a),b.push.apply(b,a.g))}function U(a){for(var d=void 0,g=a.firstChild;g;g=g.nextSibling)var b=g.nodeType,d=b===1?d?a:g:b===3?V.test(g.nodeValue)?a:d:d;return d===a?void 0:d}function C(a,d){function g(a){for(var j=a.e,k=[j,"pln"],c=0,i=a.a.match(s)||[],r={},n=0,e=i.length;n<e;++n){var z=i[n],w=r[z],t=void 0,f;if(typeof w==="string")f=!1;else{var h=b[z.charAt(0)];
if(h)t=z.match(h[1]),w=h[0];else{for(f=0;f<x;++f)if(h=d[f],t=z.match(h[1])){w=h[0];break}t||(w="pln")}if((f=w.length>=5&&"lang-"===w.substring(0,5))&&!(t&&typeof t[1]==="string"))f=!1,w="src";f||(r[z]=w)}h=c;c+=z.length;if(f){f=t[1];var l=z.indexOf(f),B=l+f.length;t[2]&&(B=z.length-t[2].length,l=B-f.length);w=w.substring(5);H(j+h,z.substring(0,l),g,k);H(j+h+l,f,I(w,f),k);H(j+h+B,z.substring(B),g,k)}else k.push(j+h,w)}a.g=k}var b={},s;(function(){for(var g=a.concat(d),j=[],k={},c=0,i=g.length;c<i;++c){var r=
g[c],n=r[3];if(n)for(var e=n.length;--e>=0;)b[n.charAt(e)]=r;r=r[1];n=""+r;k.hasOwnProperty(n)||(j.push(r),k[n]=q)}j.push(/[\S\s]/);s=S(j)})();var x=d.length;return g}function v(a){var d=[],g=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
q,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,q])):d.push(["com",
/^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,q]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));if(b=a.regexLiterals){var s=(b=b>1?"":"\n\r")?".":"[\\S\\s]";g.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+
s+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&g.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&g.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),q]);d.push(["pln",/^\s+/,q," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");g.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,
q],["pun",RegExp(b),q]);return C(d,g)}function J(a,d,g){function b(a){var c=a.nodeType;if(c==1&&!x.test(a.className))if("br"===a.nodeName)s(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&g){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(j.createTextNode(d),a.nextSibling),s(a),c||a.parentNode.removeChild(a)}}function s(a){function b(a,c){var d=
c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),g=a.nextSibling;e.appendChild(d);for(var i=g;i;i=g)g=i.nextSibling,e.appendChild(i)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var x=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,j=a.ownerDocument,k=j.createElement("li");a.firstChild;)k.appendChild(a.firstChild);for(var c=[k],i=0;i<c.length;++i)b(c[i]);d===(d|0)&&c[0].setAttribute("value",d);var r=j.createElement("ol");
r.className="linenums";for(var d=Math.max(0,d-1|0)||0,i=0,n=c.length;i<n;++i)k=c[i],k.className="L"+(i+d)%10,k.firstChild||k.appendChild(j.createTextNode("\u00a0")),r.appendChild(k);a.appendChild(r)}function p(a,d){for(var g=d.length;--g>=0;){var b=d[g];F.hasOwnProperty(b)?D.console&&console.warn("cannot override language handler %s",b):F[b]=a}}function I(a,d){if(!a||!F.hasOwnProperty(a))a=/^\s*</.test(d)?"default-markup":"default-code";return F[a]}function K(a){var d=a.h;try{var g=T(a.c,a.i),b=g.a;
a.a=b;a.d=g.d;a.e=0;I(d,b)(a);var s=/\bMSIE\s(\d+)/.exec(navigator.userAgent),s=s&&+s[1]<=8,d=/\n/g,x=a.a,m=x.length,g=0,j=a.d,k=j.length,b=0,c=a.g,i=c.length,r=0;c[i]=m;var n,e;for(e=n=0;e<i;)c[e]!==c[e+2]?(c[n++]=c[e++],c[n++]=c[e++]):e+=2;i=n;for(e=n=0;e<i;){for(var p=c[e],w=c[e+1],t=e+2;t+2<=i&&c[t+1]===w;)t+=2;c[n++]=p;c[n++]=w;e=t}c.length=n;var f=a.c,h;if(f)h=f.style.display,f.style.display="none";try{for(;b<k;){var l=j[b+2]||m,B=c[r+2]||m,t=Math.min(l,B),A=j[b+1],G;if(A.nodeType!==1&&(G=x.substring(g,
t))){s&&(G=G.replace(d,"\r"));A.nodeValue=G;var L=A.ownerDocument,o=L.createElement("span");o.className=c[r+1];var v=A.parentNode;v.replaceChild(o,A);o.appendChild(A);g<l&&(j[b+1]=A=L.createTextNode(x.substring(t,l)),v.insertBefore(A,o.nextSibling))}g=t;g>=l&&(b+=2);g>=B&&(r+=2)}}finally{if(f)f.style.display=h}}catch(u){D.console&&console.log(u&&u.stack||u)}}var D=window,y=["break,continue,do,else,for,if,return,while"],E=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],M=[E,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[E,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],
O=[N,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],E=[E,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],P=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
Q=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],W=[y,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,
V=/\S/,X=v({keywords:[M,O,E,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",P,Q,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),F={};p(X,["default-code"]);p(C([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",
/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);p(C([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],
["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);p(v({keywords:M,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]);p(v({keywords:"null,true,false"}),["json"]);p(v({keywords:O,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}),
["cs"]);p(v({keywords:N,cStyleComments:!0}),["java"]);p(v({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(v({keywords:P,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(v({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);p(v({keywords:Q,
hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(v({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(v({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(v({keywords:W,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]);
p(C([],[["str",/^[\S\s]+/]]),["regex"]);var Y=D.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:v,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:D.prettyPrintOne=function(a,d,g){var b=document.createElement("div");b.innerHTML="<pre>"+a+"</pre>";b=b.firstChild;g&&J(b,g,!0);K({h:d,j:g,c:b,i:1});
return b.innerHTML},prettyPrint:D.prettyPrint=function(a,d){function g(){for(var b=D.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;i<p.length&&c.now()<b;i++){for(var d=p[i],j=h,k=d;k=k.previousSibling;){var m=k.nodeType,o=(m===7||m===8)&&k.nodeValue;if(o?!/^\??prettify\b/.test(o):m!==3||/\S/.test(k.nodeValue))break;if(o){j={};o.replace(/\b(\w+)=([\w%+\-.:]+)/g,function(a,b,c){j[b]=c});break}}k=d.className;if((j!==h||e.test(k))&&!v.test(k)){m=!1;for(o=d.parentNode;o;o=o.parentNode)if(f.test(o.tagName)&&
o.className&&e.test(o.className)){m=!0;break}if(!m){d.className+=" prettyprinted";m=j.lang;if(!m){var m=k.match(n),y;if(!m&&(y=U(d))&&t.test(y.tagName))m=y.className.match(n);m&&(m=m[1])}if(w.test(d.tagName))o=1;else var o=d.currentStyle,u=s.defaultView,o=(o=o?o.whiteSpace:u&&u.getComputedStyle?u.getComputedStyle(d,q).getPropertyValue("white-space"):0)&&"pre"===o.substring(0,3);u=j.linenums;if(!(u=u==="true"||+u))u=(u=k.match(/\blinenums\b(?::(\d+))?/))?u[1]&&u[1].length?+u[1]:!0:!1;u&&J(d,u,o);r=
{h:m,c:d,j:u,i:o};K(r)}}}i<p.length?setTimeout(g,250):"function"===typeof a&&a()}for(var b=d||document.body,s=b.ownerDocument||document,b=[b.getElementsByTagName("pre"),b.getElementsByTagName("code"),b.getElementsByTagName("xmp")],p=[],m=0;m<b.length;++m)for(var j=0,k=b[m].length;j<k;++j)p.push(b[m][j]);var b=q,c=Date;c.now||(c={now:function(){return+new Date}});var i=0,r,n=/\blang(?:uage)?-([\w.]+)(?!\S)/,e=/\bprettyprint\b/,v=/\bprettyprinted\b/,w=/pre|xmp/i,t=/^code$/i,f=/^(?:pre|code|xmp)$/i,
h={};g()}};typeof define==="function"&&define.amd&&define("google-code-prettify",[],function(){return Y})})();}()
</script>
<script>
/*!
* Bootstrap.js by @fat & @mdo
* Copyright 2013 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide"))
</script>
<script>
$( document ).ready(function() {
var textFile = null;
/// Function to be used to download a text json schema
function makeTextFile(text) {
var data = new Blob([text], {type: 'text/plain'});
// If we are replacing a previously generated file we need to
// manually revoke the object URL to avoid memory leaks.
if (textFile !== null) {
window.URL.revokeObjectURL(textFile);
}
textFile = window.URL.createObjectURL(data);
var a = document.createElement("a");
document.body.appendChild(a);
a.style = "display: none";
a.href = textFile;
a.download = 'schema.txt';
a.click();
return textFile;
};
/// TODO: Implement resizing for expanding within iframe
function callResize() {
window.parent.postMessage('resize', "*");
}
// load google web fonts
loadGoogleFontCss();
// Bootstrap Scrollspy
$(this).scrollspy({ target: '#scrollingNav', offset: 18 });
// Content-Scroll on Navigation click.
$('.sidenav').find('a').on('click', function(e) {
e.preventDefault();
var id = $(this).attr('href');
if ($(id).length > 0)
$('html,body').animate({ scrollTop: parseInt($(id).offset().top) }, 400);
window.location.hash = $(this).attr('href');
});
// Quickjump on Pageload to hash position.
if(window.location.hash) {
var id = window.location.hash;
if ($(id).length > 0)
$('html,body').animate({ scrollTop: parseInt($(id).offset().top) }, 0);
}
function initDynamic() {
// tabs
$('.nav-tabs-examples a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
$('.nav-tabs-examples').find('a:first').tab('show');
// call scrollspy refresh method
$(window).scrollspy('refresh');
}
initDynamic();
// Pre- / Code-Format
prettyPrint();
/**
* Load google fonts.
*/
function loadGoogleFontCss() {
WebFont.load({
active: function() {
// Update scrollspy
$(window).scrollspy('refresh')
},
google: {
families: ['Source Code Pro', 'Source Sans Pro:n4,n6,n7']
}
});
}
});
</script>
<style type="text/css">
/*!
* Bootstrap v2.3.2
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type="button"],input[type="reset"],input[type="submit"],input[type="radio"],input[type="checkbox"]{cursor:pointer}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-
/* Pretty printing styles. Used with prettify.js. */
/* Vim sunburst theme by David Leibovic */
pre .str {
color: #65B042;
}
/* string - green */
pre .kwd {
color: #E28964;
}
/* keyword - dark pink */
pre .com {
color: #AEAEAE;
font-style: italic;
}
/* comment - gray */
pre .typ {
color: #89bdff;
}
/* type - light blue */
pre .lit {
color: #3387CC;
}
/* literal - blue */
pre .pun {
color: #fff;
}
/* punctuation - white */
pre .pln {
color: #fff;
}
/* plaintext - white */
pre .tag {
color: #89bdff;
}
/* html/xml tag - light blue */
pre .atn {
color: #bdb76b;
}
/* html/xml attribute name - khaki */
pre .atv {
color: #65B042;
}
/* html/xml attribute value - green */
pre .dec {
color: #3387CC;
}
/* decimal - blue */
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0;
color: #AEAEAE;
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none;
}
/* Alternate shading for lines */
@media print {
pre .str {
color: #060;
}
pre .kwd {
color: #006;
font-weight: bold;
}
pre .com {
color: #600;
font-style: italic;
}
pre .typ {
color: #404;
font-weight: bold;
}
pre .lit {
color: #044;
}
pre .pun {
color: #440;
}
pre .pln {
color: #000;
}
pre .tag {
color: #006;
font-weight: bold;
}
pre .atn {
color: #404;
}
pre .atv {
color: #060;
}
}
/* ------------------------------------------------------------------------------------------
* Content
* ------------------------------------------------------------------------------------------ */
body {
min-width: 980px;
}
body, p, a, div, th, td {
font-family: "Source Sans Pro", sans-serif;
font-weight: 400;
font-size: 16px;
text-shadow: none !important;
}
td.code {
font-size: 14px;
font-family: "Source Code Pro", monospace;
font-style: normal;
font-weight: 400;
}
#content {
padding-top: 16px;
z-Index: -1;
margin-left: 270px;
}
p {
color: #808080;
}
h1 {
font-family: "Source Sans Pro Semibold", sans-serif;
font-weight: normal;
font-size: 44px;
line-height: 50px;
margin: 0 0 10px 0;
padding: 0;
}
h2 {
font-family: "Source Sans Pro", sans-serif;
font-weight: normal;
font-size: 24px;
line-height: 40px;
margin: 0 0 20px 0;
padding: 0;
}
section {
border-top: 1px solid #ebebeb;
padding: 30px 0;
}
section h1 {
font-family: "Source Sans Pro", sans-serif;
font-weight: 700;
font-size: 32px;
line-height: 40px;
padding-bottom: 14px;
margin: 0 0 20px 0;
padding: 0;
}
article {
padding: 14px 0 30px 0;
}
article h1 {
font-family: "Source Sans Pro Bold", sans-serif;
font-weight: 600;
font-size: 24px;
line-height: 26px;
}
article h2 {
font-family: "Source Sans Pro", sans-serif;
font-weight: 600;
font-size: 18px;
line-height: 24px;
margin: 0 0 10px 0;
}
article h3 {
font-family: "Source Sans Pro", sans-serif;
font-weight: 600;
font-size: 16px;
line-height: 18px;
margin: 0 0 10px 0;
}
article h4 {
font-family: "Source Sans Pro", sans-serif;
font-weight: 600;
font-size: 14px;
line-height: 16px;
margin: 0 0 8px 0;
}
table {
border-collapse: collapse;
width: 100%;
margin: 0 0 20px 0;
}
th {
background-color: #f5f5f5;
text-align: left;
font-family: "Source Sans Pro", sans-serif;
font-weight: 700;
padding: 4px 8px;
border: #e0e0e0 1px solid;
}
td {
vertical-align: top;
padding: 2px 8px;
border: #e0e0e0 1px solid;
}
#generator .content {
color: #b0b0b0;
border-top: 1px solid #ebebeb;
padding: 10px 0;
}
.label-optional {
float: right;
}
.open-left {
right: 0;
left: auto;
}
/* ------------------------------------------------------------------------------------------
* apidoc - intro
* ------------------------------------------------------------------------------------------ */
#apidoc .apidoc {
border-top: 1px solid #ebebeb;
padding: 30px 0;
}
#apidoc h1 {
font-family: "Source Sans Pro", sans-serif;
font-weight: 700;
font-size: 32px;
line-height: 40px;
padding-bottom: 14px;
margin: 0 0 20px 0;
padding: 0;
}
#apidoc h2 {
font-family: "Source Sans Pro Bold", sans-serif;
font-weight: 600;
font-size: 22px;
line-height: 26px;
padding-top: 14px;
}
/* ------------------------------------------------------------------------------------------
* pre / code
* ------------------------------------------------------------------------------------------ */
pre {
background-color: #292b36;
color: #ffffff;
padding: 10px;
border-radius: 6px;
position: relative;
margin: 10px 0 20px 0;
}
code.language-text {
word-wrap: break-word;
}
pre.language-json {
overflow: auto;
}
pre.language-html {
margin: 40px 0 20px 0;
}
pre.language-html:before {
content: attr(data-type);
position: absolute;
top: -30px;
left: 0;
font-family: "Source Sans Pro", sans-serif;
font-weight: 600;
font-size: 15px;
display: inline-block;
padding: 2px 5px;
border-radius: 6px;
text-transform: uppercase;
background-color: #3387CC;
color: #ffffff;
}
pre.language-html[data-type="get"]:before {
background-color: green;
}
pre.language-html[data-type="put"]:before {
background-color: #e5c500;
}
pre.language-html[data-type="post"]:before {
background-color: #4070ec;
}
pre.language-html[data-type="delete"]:before {
background-color: #ed0039;
}
pre.language-api .str {
color: #ffffff;
}
pre.language-api .pln,
pre.language-api .pun {
color: #65B042;
}
pre code {
display: block;
font-size: 14px;
font-family: "Source Code Pro", monospace;
font-style: normal;
font-weight: 400;
}
pre code.sample-request-response-json {
white-space: pre-wrap;
max-height: 500px;
overflow: auto;
}
/* ------------------------------------------------------------------------------------------
* Sidenav
* ------------------------------------------------------------------------------------------ */
.sidenav {
width: 228px;
margin: 0;
padding: 20px;
position: fixed;
top: 0;
left: 0;
bottom: 0;
overflow-x: hidden;
overflow-y: auto;
background-color: #f5f5f5;
z-index: 10;
}
.sidenav > li > a {
display: block;
width: 192px;
margin: 0;
padding: 2px 11px;
border: 0;
border-left: transparent 4px solid;
border-right: transparent 4px solid;
font-family: "Source Sans Pro", sans-serif;
font-weight: 400;
font-size: 14px;
}
.sidenav > li.nav-header > a {
padding: 5px 15px;
border: 1px solid #e5e5e5;
width: 190px;
font-family: "Source Sans Pro", sans-serif;
font-weight: 700;
font-size: 16px;
background-color: #4c8eca;
color: #fff;
}
.sidenav > li.nav-header.active > a {
background-color: #4c8eca;
color: #fff;
}
00427D
.sidenav > .active > a {
position: relative;
z-index: 2;
}
.sidenav > li > a:hover {
background-color: #ffffff;
}
.sidenav > li.has-modifications a {
border-right: #60d060 4px solid;
}
.sidenav > li.is-new a {
border-left: #e5e5e5 4px solid;
}
/* ------------------------------------------------------------------------------------------
* Tabs
* ------------------------------------------------------------------------------------------ */
ul.nav-tabs {
margin: 0;
}
/* ------------------------------------------------------------------------------------------
* Print
* ------------------------------------------------------------------------------------------ */
@media print {
#sidenav,
#version,
#versions,
section .version,
section .versions {
display: none;
}
#content {
margin-left: 0;
}
a {
text-decoration: none;
color: inherit;
}
a:after {
content: " [" attr(href) "] ";
}
p {
color: #000000
}
pre {
background-color: #ffffff;
color: #000000;
padding: 10px;
border: #808080 1px solid;
border-radius: 6px;
position: relative;
margin: 10px 0 20px 0;
}
} /* /@media print */
.doc-chapter
{
display:none;
background-color: #eee;
border-radius: 1px;
padding: 10px;
margin-bottom: 20px;
}
/*!
* json-schema-view-js
* https://github.com/mohsen1/json-schema-view-js#readme
* Version: 0.4.1 - 2015-11-12T17:19:27.615Z
* License: MIT
*/.json-schema-view .toggle-handle:after,.json-schema-view.json-schema-view-dark .toggle-handle:after,json-schema-view .toggle-handle:after,json-schema-view[json-schema-view-dark] .toggle-handle:after{content:"\25BC"}.json-schema-view .title,.json-schema-view.json-schema-view-dark .title,json-schema-view .title,json-schema-view[json-schema-view-dark] .title{font-weight:700;cursor:pointer}.json-schema-view,json-schema-view{font-family:monospace;font-size:0;display:table-cell}.json-schema-view>*,json-schema-view>*{font-size:14px}.json-schema-view .toggle-handle,json-schema-view .toggle-handle{cursor:pointer;margin:auto .3em;font-size:10px;display:inline-block;transform-origin:50% 40%;transition:transform 150ms ease-in}.json-schema-view .toggle-handle,.json-schema-view .toggle-handle:hover,json-schema-view .toggle-handle,json-schema-view .toggle-handle:hover{text-decoration:none;color:#333}.json-schema-view .description,json-schema-view .description{color:gray;font-style:italic}
.pattern {
color: blue;
}
.default {
color: black;
}
.required {
color:black;
}
.json-schema-view .title,.json-schema-view .title:hover,json-schema-view .title,json-schema-view .title:hover{text-decoration:none;color:#333}.json-schema-view .brace,.json-schema-view .bracket,.json-schema-view .title,json-schema-view .brace,json-schema-view .bracket,json-schema-view .title{color:#333}.json-schema-view .property,json-schema-view .property{font-size:0;display:table-row}.json-schema-view .property>*,json-schema-view .property>*{font-size:14px;padding:.2em}.json-schema-view .name,json-schema-view .name{color:#00f;display:table-cell;vertical-align:top}.json-schema-view .type,json-schema-view .type{color:green}.json-schema-view .type-any,json-schema-view .type-any{color:#33f}.json-schema-view .required,json-schema-view .required{color:red}.json-schema-view .inner,json-schema-view .inner{padding-left:18px}.json-schema-view.collapsed .description,.json-schema-view.collapsed .property,json-schema-view.collapsed .description,json-schema-view.collapsed .property{display:none}.json-schema-view.collapsed .closeing.brace,json-schema-view.collapsed .closeing.brace{display:inline-block}.json-schema-view.collapsed .toggle-handle,json-schema-view.collapsed .toggle-handle{transform:rotate(-90deg)}.json-schema-view.json-schema-view-dark,json-schema-view[json-schema-view-dark]{font-family:monospace;font-size:0;display:table-cell}.json-schema-view.json-schema-view-dark>*,json-schema-view[json-schema-view-dark]>*{font-size:14px}.json-schema-view.json-schema-view-dark .toggle-handle,json-schema-view[json-schema-view-dark] .toggle-handle{cursor:pointer;margin:auto .3em;font-size:10px;display:inline-block;transform-origin:50% 40%;transition:transform 150ms ease-in}.json-schema-view.json-schema-view-dark .toggle-handle,.json-schema-view.json-schema-view-dark .toggle-handle:hover,json-schema-view[json-schema-view-dark] .toggle-handle,json-schema-view[json-schema-view-dark] .toggle-handle:hover{text-decoration:none;color:#eee}.json-schema-view.json-schema-view-dark .description,json-schema-view[json-schema-view-dark] .description{color:gray;font-style:italic}.json-schema-view.json-schema-view-dark .title,.json-schema-view.json-schema-view-dark .title:hover,json-schema-view[json-schema-view-dark] .title,json-schema-view[json-schema-view-dark] .title:hover{text-decoration:none;color:#eee}.json-schema-view.json-schema-view-dark .brace,.json-schema-view.json-schema-view-dark .bracket,.json-schema-view.json-schema-view-dark .title,json-schema-view[json-schema-view-dark] .brace,json-schema-view[json-schema-view-dark] .bracket,json-schema-view[json-schema-view-dark] .title{color:#eee}.json-schema-view.json-schema-view-dark .property,json-schema-view[json-schema-view-dark] .property{font-size:0;display:table-row}.json-schema-view.json-schema-view-dark .property>*,json-schema-view[json-schema-view-dark] .property>*{font-size:14px;padding:.2em}.json-schema-view.json-schema-view-dark .name,json-schema-view[json-schema-view-dark] .name{color:#add8e6;display:table-cell;vertical-align:top}.json-schema-view.json-schema-view-dark .type,json-schema-view[json-schema-view-dark] .type{color:#90ee90}.json-schema-view.json-schema-view-dark .type-any,json-schema-view[json-schema-view-dark] .type-any{color:#d4ebf2}.json-schema-view.json-schema-view-dark .required,json-schema-view[json-schema-view-dark] .required{color:#fe0000}.json-schema-view.json-schema-view-dark .inner,json-schema-view[json-schema-view-dark] .inner{padding-left:18px}.json-schema-view.json-schema-view-dark.collapsed .description,.json-schema-view.json-schema-view-dark.collapsed .property,json-schema-view[json-schema-view-dark].collapsed .description,json-schema-view[json-schema-view-dark].collapsed .property{display:none}.json-schema-view.json-schema-view-dark.collapsed .closeing.brace,json-schema-view[json-schema-view-dark].collapsed .closeing.brace{display:inline-block}.json-schema-view.json-schema-view-dark.collapsed .toggle-handle,json-schema-view[json-schema-view-dark].collapsed .toggle-handle{transform:rotate(-90deg)}
</style>
</head>
<body>
<script>
// Script section to load models into a JS Var
var defs = {}
defs.AudioDevices = {
"required" : [ "nbInputDevices", "nbOutputDevices" ],
"properties" : {
"nbInputDevices" : {
"type" : "integer",
"description" : "Number of input audio devices"
},
"inputDevices" : {
"type" : "array",
"description" : "Names of input devices",
"items" : {
"type" : "string"
}
},
"nbOutputDevices" : {
"type" : "integer",
"description" : "Number of output audio devices"
},
"outputDevices" : {
"type" : "array",
"description" : "Names of output devices",
"items" : {
"type" : "string"
}
}
},
"description" : "List of audio devices available in the system"
};
defs.AudioDevicesSelect = {
"properties" : {
"input" : {
"type" : "string",
"description" : "Name of the audio input device"
},
"output" : {
"type" : "string",
"description" : "Name of the audio output device"
}
},
"description" : "Audio devices selected"
};
defs.Channel = {
"required" : [ "deltaFrequency", "id", "index" ],
"properties" : {
"index" : {
"type" : "integer",
"description" : "Index in the list of channels"
},
"id" : {
"type" : "string",
"description" : "Key to identify the type of channel"
},
"deltaFrequency" : {
"type" : "integer",
"description" : "Channel shift frequency in Hz from the center of baseband"
}
},
"description" : "Channel summarized information"
};
defs.ChannelListItem = {
"required" : [ "id", "name" ],
"properties" : {
"name" : {
"type" : "string",
"description" : "Displayable name of the channel plugin"
},
"id" : {
"type" : "string",
"description" : "Key to identify the channel plugin type"
},
"tx" : {
"type" : "boolean",
"description" : "True if this is a Tx channel"
},
"version" : {
"type" : "string",
"description" : "Channel plugin version number"
}
},
"description" : "Summarized information about channel plugin"
};
defs.DVSeralDevices = {
"required" : [ "nbDevices" ],
"properties" : {
"nbDevices" : {
"type" : "integer",
"description" : "Number of DV serial devices"
},
"dvSerialDevices" : {
"type" : "array",
"description" : "Device names of DV serial devices",
"items" : {
"type" : "string"
}
}
},
"description" : "List of DV serial devices available in the system"
};
defs.DeviceListItem = {
"required" : [ "hwType", "sequence", "serial", "streamIndex" ],
"properties" : {
"hwType" : {
"type" : "string",
"description" : "Key to identify the type of hardware device"
},
"tx" : {
"type" : "boolean",
"description" : "Set to true if this is a Tx device"
},
"nbStreams" : {
"type" : "integer",
"description" : "Number of channels or streams in the device"
},
"streamIndex" : {
"type" : "integer",
"description" : "Index of the channel in the device"
},
"sequence" : {
"type" : "integer",
"description" : "Sequence in the enumeration of same device types"
},
"serial" : {
"type" : "string",
"description" : "Serial number of the hardware device"
}
},
"description" : "Summarized information about attached hardware device"
};
defs.DeviceSet = {
"required" : [ "channelcount", "samplingDevice" ],
"properties" : {
"samplingDevice" : {
"$ref" : "#/definitions/SamplingDevice"
},
"channelcount" : {
"type" : "integer",
"description" : "Number of channels in the set"
},
"channels" : {
"type" : "array",
"description" : "Channels list",
"items" : {
"$ref" : "#/definitions/Channel"
}
}
},
"description" : "Sampling device and its associated channels"
};
defs.DeviceSetList = {
"required" : [ "devicesetcount" ],
"properties" : {
"devicesetcount" : {
"type" : "integer",
"description" : "Number of device sets opened in this instance"
},
"deviceSets" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/DeviceSet"
}
}
},
"description" : "List of device sets opened in this instance"
};
defs.ErrorResponse = {
"required" : [ "message" ],
"properties" : {
"message" : {
"type" : "string"
}
}
};
defs.InstanceChannelsResponse = {
"required" : [ "channelcount" ],
"properties" : {
"channelcount" : {
"type" : "integer",
"description" : "Number of plugins available"
},
"channels" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ChannelListItem"
}
}
},
"description" : "Summarized information about channel plugins available in this SDRangel instance"
};
defs.InstanceDevicesResponse = {
"required" : [ "devicecount" ],
"properties" : {
"devicecount" : {
"type" : "integer",
"description" : "Number of devices attached"
},
"devices" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/DeviceListItem"
}
}
},
"description" : "Summarized information about logical devices from hardware devices attached to this SDRangel instance"
};
defs.InstanceSummaryResponse = {
"required" : [ "devicesetlist", "version" ],
"properties" : {
"version" : {
"type" : "string",
"description" : "Current software version"
},
"logging" : {
"$ref" : "#/definitions/LoggingInfo"
},
"devicesetlist" : {
"$ref" : "#/definitions/DeviceSetList"
},
"user" : {
"$ref" : "#/definitions/User"
}
},
"description" : "Summarized information about this SDRangel instance"
};
defs.LocationInformation = {
"required" : [ "latitude", "longitude" ],
"properties" : {
"latitude" : {
"type" : "number",
"format" : "float",
"description" : "Lautitude in decimal degrees positive to the north"
},
"longitude" : {
"type" : "number",
"format" : "float",
"description" : "Longitude in decimal degrees positive to the east"
}
},
"description" : "Instance geolocation information"
};
defs.LoggingInfo = {
"required" : [ "consoleLevel", "fileLevel" ],
"properties" : {
"consoleLevel" : {
"type" : "string",
"description" : "Minimum level of messages printed to console: debug, info, warning, error"
},
"fileLevel" : {
"type" : "string",
"description" : "Minimum level of messages written to file: debug, info, warning, error"
},
"dumpToFile" : {
"type" : "boolean",
"description" : "True if messages are written to file"
},
"fileName" : {
"type" : "string",
"description" : "Name of the log file"
}
},
"description" : "Logging parameters setting"
};
defs.PresetGroup = {
"required" : [ "groupName", "nbPresets" ],
"properties" : {
"groupName" : {
"type" : "string",
"description" : "Name of the preset group"
},
"nbPresets" : {
"type" : "integer",
"description" : "Number of presets in the group"
},
"presets" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/PresetItem"
}
}
},
"description" : "Group of presets"
};
defs.PresetIdentifier = {
"required" : [ "centerFrequency", "groupName", "name", "type" ],
"properties" : {
"groupName" : {
"type" : "string",
"description" : "Name of the preset group"
},
"centerFrequency" : {
"type" : "number",
"format" : "float",
"description" : "Center freqeuency in MHz"
},
"type" : {
"type" : "string",
"description" : "Type of device set (R: Rx, T: Tx)"
},
"name" : {
"type" : "string",
"description" : "Descriptive name of the preset"
}
},
"description" : "Settings preset item"
};
defs.PresetItem = {
"required" : [ "centerFrequency", "name", "type" ],
"properties" : {
"centerFrequency" : {
"type" : "number",
"format" : "float",
"description" : "Center freqeuency in MHz"
},
"type" : {
"type" : "string",
"description" : "Type of device set (R: Rx, T: Tx)"
},
"name" : {
"type" : "string",
"description" : "Descriptive name of the preset"
}
},
"description" : "Settings preset item"
};
defs.PresetTransfer = {
"required" : [ "deviceSetIndex", "preset" ],
"properties" : {
"deviceSetIndex" : {
"type" : "integer",
"description" : "Index of the device set"
},
"preset" : {
"$ref" : "#/definitions/PresetIdentifier"
}
},
"description" : "Preset transfer to or from a device set"
};
defs.Presets = {
"required" : [ "nbGroups" ],
"properties" : {
"nbGroups" : {
"type" : "integer",
"description" : "Number of preset groups"
},
"groups" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/PresetGroup"
}
}
},
"description" : "Settings presets"
};
defs.SamplingDevice = {
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "streamIndex" ],
"properties" : {
"index" : {
"type" : "integer",
"description" : "Index in the list of device sets opened in this instance"
},
"hwType" : {
"type" : "string",
"description" : "Key to identify the type of hardware device"
},
"tx" : {
"type" : "boolean",
"description" : "True if this is a Tx device"
},
"nbStreams" : {
"type" : "integer",
"description" : "Number of channels or streams in the device"
},
"streamIndex" : {
"type" : "integer",
"description" : "Index of the channel in the device"
},
"sequence" : {
"type" : "integer",
"description" : "Sequence in the enumeration of same device types"
},
"serial" : {
"type" : "string",
"description" : "Serial number of the hardware device"
},
"centerFrequency" : {
"type" : "integer",
"format" : "int64",
"description" : "Center frequency in Hz at which the device is tuned possibly taking NCO into account"
},
"bandwidth" : {
"type" : "integer",
"description" : "Bandwidth in Hz or complex S/s of baseband"
}
},
"description" : "Information about a logical device available from an attached hardware device that can be used as a sampling device"
};
defs.User = {
"required" : [ "index", "name" ],
"properties" : {
"index" : {
"type" : "integer"
},
"name" : {
"type" : "string"
}
}
};
</script>
<div class="container-fluid">
<div class="row-fluid">
<div id="sidenav" class="span2">
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<!-- Logo Area -->
<!--<div style="width: 80%; background-color: #4c8eca; color: white; padding: 20px; text-align: center; margin-bottom: 20px; ">
API Docs 2
</div>
-->
<li class="nav-fixed nav-header active" data-group="_"><a href="#api-_">API Summary</a></li>
<li class="nav-header" data-group="Default"><a href="#api-Default">API Methods - Default</a></li>
<li data-group="Default" data-name="instanceAudioGet" class="">
<a href="#api-Default-instanceAudioGet">instanceAudioGet</a>
</li>
<li data-group="Default" data-name="instanceAudioPatch" class="">
<a href="#api-Default-instanceAudioPatch">instanceAudioPatch</a>
</li>
<li data-group="Default" data-name="instanceChannels" class="">
<a href="#api-Default-instanceChannels">instanceChannels</a>
</li>
<li data-group="Default" data-name="instanceDVSerialPatch" class="">
<a href="#api-Default-instanceDVSerialPatch">instanceDVSerialPatch</a>
</li>
<li data-group="Default" data-name="instanceDeviceSetsDelete" class="">
<a href="#api-Default-instanceDeviceSetsDelete">instanceDeviceSetsDelete</a>
</li>
<li data-group="Default" data-name="instanceDeviceSetsGet" class="">
<a href="#api-Default-instanceDeviceSetsGet">instanceDeviceSetsGet</a>
</li>
<li data-group="Default" data-name="instanceDeviceSetsPost" class="">
<a href="#api-Default-instanceDeviceSetsPost">instanceDeviceSetsPost</a>
</li>
<li data-group="Default" data-name="instanceDevices" class="">
<a href="#api-Default-instanceDevices">instanceDevices</a>
</li>
<li data-group="Default" data-name="instanceLocationGet" class="">
<a href="#api-Default-instanceLocationGet">instanceLocationGet</a>
</li>
<li data-group="Default" data-name="instanceLocationPut" class="">
<a href="#api-Default-instanceLocationPut">instanceLocationPut</a>
</li>
<li data-group="Default" data-name="instanceLoggingGet" class="">
<a href="#api-Default-instanceLoggingGet">instanceLoggingGet</a>
</li>
<li data-group="Default" data-name="instanceLoggingPut" class="">
<a href="#api-Default-instanceLoggingPut">instanceLoggingPut</a>
</li>
<li data-group="Default" data-name="instancePresetDelete" class="">
<a href="#api-Default-instancePresetDelete">instancePresetDelete</a>
</li>
<li data-group="Default" data-name="instancePresetGet" class="">
<a href="#api-Default-instancePresetGet">instancePresetGet</a>
</li>
<li data-group="Default" data-name="instancePresetPatch" class="">
<a href="#api-Default-instancePresetPatch">instancePresetPatch</a>
</li>
<li data-group="Default" data-name="instancePresetPost" class="">
<a href="#api-Default-instancePresetPost">instancePresetPost</a>
</li>
<li data-group="Default" data-name="instancePresetPut" class="">
<a href="#api-Default-instancePresetPut">instancePresetPut</a>
</li>
<li data-group="Default" data-name="instanceSummary" class="">
<a href="#api-Default-instanceSummary">instanceSummary</a>
</li>
</ul>
</nav>
</div>
<div id="content">
<div id="project">
<div class="pull-left">
<h1>SDRangel</h1>
</div>
<div class="clearfix"></div>
</div>
<div id="header">
<div id="api-_">
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
<div class="app-desc">Version: 4.0.0</div>
<hr>
<p>This is the web API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube</p>
</div>
</div>
<div id="sections">
<section id="api-Default">
<h1>Default</h1>
<div id="api-Default-instanceAudioGet">
<article id="api-Default-instanceAudioGet-0" data-group="User" data-name="instanceAudioGet" data-version="0">
<div class="pull-left">
<h1>instanceAudioGet</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get audio devices list available to this instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/audio</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-Default-instanceAudioGet-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioGet-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioGet-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceAudioGet-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceAudioGet-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioGet-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceAudioGet-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceAudioGet-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioGet-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceAudioGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/audio"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
AudioDevices result = apiInstance.instanceAudioGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceAudioGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
AudioDevices result = apiInstance.instanceAudioGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceAudioGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceAudioGetWithCompletionHandler:
^(AudioDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceAudioGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceAudioGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceAudioGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
AudioDevices result = apiInstance.instanceAudioGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceAudioGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioGet-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceAudioGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
}
</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 href="#examples-Default-instanceAudioGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceAudioGet-schema">
<div id='examples-Default-instanceAudioGet-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/AudioDevices"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceAudioGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceAudioGet-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceAudioGet-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceAudioGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceAudioGet-schema">
<div id='examples-Default-instanceAudioGet-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceAudioGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceAudioGet-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceAudioGet-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceAudioPatch">
<article id="api-Default-instanceAudioPatch-0" data-group="User" data-name="instanceAudioPatch" data-version="0">
<div class="pull-left">
<h1>instanceAudioPatch</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Set audio devices</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/audio</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-Default-instanceAudioPatch-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceAudioPatch-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceAudioPatch-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceAudioPatch-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceAudioPatch-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">patch</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/audio"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
AudioDevicesSelect body = ; // AudioDevicesSelect | Select audio devices to use for this instance
try {
AudioDevicesSelect result = apiInstance.instanceAudioPatch(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceAudioPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
AudioDevicesSelect body = ; // AudioDevicesSelect | Select audio devices to use for this instance
try {
AudioDevicesSelect result = apiInstance.instanceAudioPatch(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceAudioPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-objc">
<pre class="prettyprint"><code class="language-cpp">
AudioDevicesSelect *body = ; // Select audio devices to use for this instance
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceAudioPatchWith:body
completionHandler: ^(AudioDevicesSelect output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {AudioDevicesSelect} Select audio devices to use for this instance
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceAudioPatch(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceAudioPatchExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new AudioDevicesSelect(); // AudioDevicesSelect | Select audio devices to use for this instance
try
{
AudioDevicesSelect result = apiInstance.instanceAudioPatch(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceAudioPatch: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceAudioPatch-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // AudioDevicesSelect | Select audio devices to use for this instance
try {
$result = $api_instance->instanceAudioPatch($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceAudioPatch: ', $e->getMessage(), PHP_EOL;
}
</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" : "Select audio devices to use for this instance",
"required" : true,
"schema" : {
"$ref" : "#/definitions/AudioDevicesSelect"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instanceAudioPatch_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instanceAudioPatch_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - Success </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceAudioPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceAudioPatch-schema">
<div id='examples-Default-instanceAudioPatch-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/AudioDevicesSelect"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceAudioPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceAudioPatch-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceAudioPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceAudioPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceAudioPatch-schema">
<div id='examples-Default-instanceAudioPatch-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceAudioPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceAudioPatch-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceAudioPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceChannels">
<article id="api-Default-instanceChannels-0" data-group="User" data-name="instanceChannels" data-version="0">
<div class="pull-left">
<h1>instanceChannels</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get a list of channel plugins available in this instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/channels</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-Default-instanceChannels-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceChannels-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceChannels-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceChannels-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceChannels-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceChannels-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceChannels-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceChannels-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceChannels-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceChannels-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/channels?tx="
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceChannels-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for Tx channels
try {
InstanceChannelsResponse result = apiInstance.instanceChannels(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceChannels");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceChannels-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for Tx channels
try {
InstanceChannelsResponse result = apiInstance.instanceChannels(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceChannels");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceChannels-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceChannels-0-objc">
<pre class="prettyprint"><code class="language-cpp">
Boolean *tx = true; // Set to true for Tx channels (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceChannelsWith:tx
completionHandler: ^(InstanceChannelsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceChannels-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var opts = {
'tx': true // {Boolean} Set to true for Tx channels
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceChannels(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceChannels-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceChannels-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceChannelsExample
{
public void main()
{
var apiInstance = new DefaultApi();
var tx = true; // Boolean | Set to true for Tx channels (optional)
try
{
InstanceChannelsResponse result = apiInstance.instanceChannels(tx);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceChannels: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceChannels-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$tx = true; // Boolean | Set to true for Tx channels
try {
$result = $api_instance->instanceChannels($tx);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<!---->
<tr><td style="width:150px;">tx</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
"name" : "tx",
"in" : "query",
"description" : "Set to true for Tx channels",
"required" : false,
"type" : "boolean"
};
var schema = schemaWrapper;
var view = new JSONSchemaView(schema,0);
var result = $('#d2e199_instanceChannels_tx');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_instanceChannels_tx"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - Success </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceChannels-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceChannels-schema">
<div id='examples-Default-instanceChannels-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/InstanceChannelsResponse"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceChannels-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceChannels-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceChannels-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceChannels-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceChannels-schema">
<div id='examples-Default-instanceChannels-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceChannels-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceChannels-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceChannels-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceDVSerialPatch">
<article id="api-Default-instanceDVSerialPatch-0" data-group="User" data-name="instanceDVSerialPatch" data-version="0">
<div class="pull-left">
<h1>instanceDVSerialPatch</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Set or reset DV serial processing for AMBE frames decoding in digital voice modes</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/dvserial</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-Default-instanceDVSerialPatch-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceDVSerialPatch-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceDVSerialPatch-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">patch</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/dvserial?dvserial="
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean dvserial = true; // Boolean | Set to true to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean dvserial = true; // Boolean | Set to true to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-objc">
<pre class="prettyprint"><code class="language-cpp">
Boolean *dvserial = true; // Set to true to set DV serial processing (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceDVSerialPatchWith:dvserial
completionHandler: ^(DVSeralDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var opts = {
'dvserial': true // {Boolean} Set to true to set DV serial processing
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDVSerialPatch(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceDVSerialPatchExample
{
public void main()
{
var apiInstance = new DefaultApi();
var dvserial = true; // Boolean | Set to true to set DV serial processing (optional)
try
{
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceDVSerialPatch: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDVSerialPatch-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$dvserial = true; // Boolean | Set to true to set DV serial processing
try {
$result = $api_instance->instanceDVSerialPatch($dvserial);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceDVSerialPatch: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<!---->
<tr><td style="width:150px;">dvserial</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
"name" : "dvserial",
"in" : "query",
"description" : "Set to true to set DV serial processing",
"required" : false,
"type" : "boolean"
};
var schema = schemaWrapper;
var view = new JSONSchemaView(schema,0);
var result = $('#d2e199_instanceDVSerialPatch_dvserial');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_instanceDVSerialPatch_dvserial"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return list of devices or empty list if unset </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDVSerialPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDVSerialPatch-schema">
<div id='examples-Default-instanceDVSerialPatch-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" : "On success return list of devices or empty list if unset",
"schema" : {
"$ref" : "#/definitions/DVSeralDevices"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDVSerialPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDVSerialPatch-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDVSerialPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDVSerialPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDVSerialPatch-schema">
<div id='examples-Default-instanceDVSerialPatch-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDVSerialPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDVSerialPatch-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDVSerialPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceDeviceSetsDelete">
<article id="api-Default-instanceDeviceSetsDelete-0" data-group="User" data-name="instanceDeviceSetsDelete" data-version="0">
<div class="pull-left">
<h1>instanceDeviceSetsDelete</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Remove last device set</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/sdrangel/devicesets</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-Default-instanceDeviceSetsDelete-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsDelete-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsDelete-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">delete</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsDelete");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsDelete");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceDeviceSetsDeleteWithCompletionHandler:
^(DeviceSetList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDeviceSetsDelete(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceDeviceSetsDeleteExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsDelete: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsDelete-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceDeviceSetsDelete();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceDeviceSetsDelete: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return new list of device sets </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsDelete-schema">
<div id='examples-Default-instanceDeviceSetsDelete-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" : "On success return new list of device sets",
"schema" : {
"$ref" : "#/definitions/DeviceSetList"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsDelete-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 404 - No more device sets opened in this instance </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsDelete-schema">
<div id='examples-Default-instanceDeviceSetsDelete-schema-404' 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" : "No more device sets opened in this instance"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsDelete-schema-404');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsDelete-schema">
<div id='examples-Default-instanceDeviceSetsDelete-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsDelete-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceDeviceSetsGet">
<article id="api-Default-instanceDeviceSetsGet-0" data-group="User" data-name="instanceDeviceSetsGet" data-version="0">
<div class="pull-left">
<h1>instanceDeviceSetsGet</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get summary information about device sets opened in the instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/devicesets</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-Default-instanceDeviceSetsGet-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsGet-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
DeviceSetList result = apiInstance.instanceDeviceSetsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
DeviceSetList result = apiInstance.instanceDeviceSetsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceDeviceSetsGetWithCompletionHandler:
^(DeviceSetList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDeviceSetsGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceDeviceSetsGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
DeviceSetList result = apiInstance.instanceDeviceSetsGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsGet-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceDeviceSetsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceDeviceSetsGet: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return device set list </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsGet-schema">
<div id='examples-Default-instanceDeviceSetsGet-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" : "On success return device set list",
"schema" : {
"$ref" : "#/definitions/DeviceSetList"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsGet-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsGet-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsGet-schema">
<div id='examples-Default-instanceDeviceSetsGet-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsGet-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsGet-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceDeviceSetsPost">
<article id="api-Default-instanceDeviceSetsPost-0" data-group="User" data-name="instanceDeviceSetsPost" data-version="0">
<div class="pull-left">
<h1>instanceDeviceSetsPost</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Add (append) a new device set</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/sdrangel/devicesets</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-Default-instanceDeviceSetsPost-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceDeviceSetsPost-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsPost-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">post</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets?tx="
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for a Tx device set
try {
DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for a Tx device set
try {
DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-objc">
<pre class="prettyprint"><code class="language-cpp">
Boolean *tx = true; // Set to true for a Tx device set (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceDeviceSetsPostWith:tx
completionHandler: ^(DeviceSet output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var opts = {
'tx': true // {Boolean} Set to true for a Tx device set
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDeviceSetsPost(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceDeviceSetsPostExample
{
public void main()
{
var apiInstance = new DefaultApi();
var tx = true; // Boolean | Set to true for a Tx device set (optional)
try
{
DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsPost: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDeviceSetsPost-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$tx = true; // Boolean | Set to true for a Tx device set
try {
$result = $api_instance->instanceDeviceSetsPost($tx);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceDeviceSetsPost: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<!---->
<tr><td style="width:150px;">tx</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
"name" : "tx",
"in" : "query",
"description" : "Set to true for a Tx device set",
"required" : false,
"type" : "boolean"
};
var schema = schemaWrapper;
var view = new JSONSchemaView(schema,0);
var result = $('#d2e199_instanceDeviceSetsPost_tx');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_instanceDeviceSetsPost_tx"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return new device set </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsPost-schema">
<div id='examples-Default-instanceDeviceSetsPost-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" : "On success return new device set",
"schema" : {
"$ref" : "#/definitions/DeviceSet"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsPost-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsPost-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDeviceSetsPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDeviceSetsPost-schema">
<div id='examples-Default-instanceDeviceSetsPost-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDeviceSetsPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDeviceSetsPost-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDeviceSetsPost-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceDevices">
<article id="api-Default-instanceDevices-0" data-group="User" data-name="instanceDevices" data-version="0">
<div class="pull-left">
<h1>instanceDevices</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get a list of sampling devices that can be used to take part in a device set</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/devices</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-Default-instanceDevices-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceDevices-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceDevices-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDevices-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDevices-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceDevices-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceDevices-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceDevices-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceDevices-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceDevices-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devices?tx="
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDevices-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for Tx direction
try {
InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDevices");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDevices-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Boolean tx = true; // Boolean | Set to true for Tx direction
try {
InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceDevices");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceDevices-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceDevices-0-objc">
<pre class="prettyprint"><code class="language-cpp">
Boolean *tx = true; // Set to true for Tx direction (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceDevicesWith:tx
completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDevices-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var opts = {
'tx': true // {Boolean} Set to true for Tx direction
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDevices(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceDevices-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceDevices-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceDevicesExample
{
public void main()
{
var apiInstance = new DefaultApi();
var tx = true; // Boolean | Set to true for Tx direction (optional)
try
{
InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceDevices: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceDevices-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$tx = true; // Boolean | Set to true for Tx direction
try {
$result = $api_instance->instanceDevices($tx);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<!---->
<tr><td style="width:150px;">tx</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
"name" : "tx",
"in" : "query",
"description" : "Set to true for Tx direction",
"required" : false,
"type" : "boolean"
};
var schema = schemaWrapper;
var view = new JSONSchemaView(schema,0);
var result = $('#d2e199_instanceDevices_tx');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_instanceDevices_tx"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - Success </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDevices-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDevices-schema">
<div id='examples-Default-instanceDevices-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/InstanceDevicesResponse"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDevices-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDevices-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDevices-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceDevices-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceDevices-schema">
<div id='examples-Default-instanceDevices-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceDevices-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceDevices-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceDevices-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceLocationGet">
<article id="api-Default-instanceLocationGet-0" data-group="User" data-name="instanceLocationGet" data-version="0">
<div class="pull-left">
<h1>instanceLocationGet</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get instance geolocation information</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/location</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-Default-instanceLocationGet-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationGet-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationGet-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLocationGet-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLocationGet-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationGet-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLocationGet-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLocationGet-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationGet-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceLocationGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/location"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
LocationInformation result = apiInstance.instanceLocationGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLocationGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
LocationInformation result = apiInstance.instanceLocationGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLocationGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceLocationGetWithCompletionHandler:
^(LocationInformation output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceLocationGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceLocationGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceLocationGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
LocationInformation result = apiInstance.instanceLocationGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceLocationGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationGet-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceLocationGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return location </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLocationGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLocationGet-schema">
<div id='examples-Default-instanceLocationGet-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" : "On success return location",
"schema" : {
"$ref" : "#/definitions/LocationInformation"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLocationGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLocationGet-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLocationGet-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLocationGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLocationGet-schema">
<div id='examples-Default-instanceLocationGet-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLocationGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLocationGet-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLocationGet-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceLocationPut">
<article id="api-Default-instanceLocationPut-0" data-group="User" data-name="instanceLocationPut" data-version="0">
<div class="pull-left">
<h1>instanceLocationPut</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Set instance geolocation information</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrangel/location</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-Default-instanceLocationPut-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationPut-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationPut-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLocationPut-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLocationPut-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationPut-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLocationPut-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLocationPut-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceLocationPut-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceLocationPut-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">put</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/location"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
try {
LocationInformation result = apiInstance.instanceLocationPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLocationPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
try {
LocationInformation result = apiInstance.instanceLocationPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLocationPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-objc">
<pre class="prettyprint"><code class="language-cpp">
LocationInformation *body = ; // Location of instance in latitude and longitude
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceLocationPutWith:body
completionHandler: ^(LocationInformation output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {LocationInformation} Location of instance in latitude and longitude
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceLocationPut(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceLocationPut-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceLocationPutExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
try
{
LocationInformation result = apiInstance.instanceLocationPut(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceLocationPut: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLocationPut-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // LocationInformation | Location of instance in latitude and longitude
try {
$result = $api_instance->instanceLocationPut($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
}
</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" : "Location of instance in latitude and longitude",
"required" : true,
"schema" : {
"$ref" : "#/definitions/LocationInformation"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instanceLocationPut_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instanceLocationPut_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return location </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLocationPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLocationPut-schema">
<div id='examples-Default-instanceLocationPut-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" : "On success return location",
"schema" : {
"$ref" : "#/definitions/LocationInformation"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLocationPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLocationPut-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLocationPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Location invalid </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLocationPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLocationPut-schema">
<div id='examples-Default-instanceLocationPut-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" : "Location invalid"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLocationPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLocationPut-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLocationPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLocationPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLocationPut-schema">
<div id='examples-Default-instanceLocationPut-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLocationPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLocationPut-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLocationPut-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceLoggingGet">
<article id="api-Default-instanceLoggingGet-0" data-group="User" data-name="instanceLoggingGet" data-version="0">
<div class="pull-left">
<h1>instanceLoggingGet</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Get logging information for this instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/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-Default-instanceLoggingGet-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLoggingGet-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLoggingGet-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingGet-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceLoggingGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/logging"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
LoggingInfo result = apiInstance.instanceLoggingGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
LoggingInfo result = apiInstance.instanceLoggingGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceLoggingGetWithCompletionHandler:
^(LoggingInfo output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceLoggingGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceLoggingGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
LoggingInfo result = apiInstance.instanceLoggingGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceLoggingGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingGet-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceLoggingGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
}
</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 href="#examples-Default-instanceLoggingGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLoggingGet-schema">
<div id='examples-Default-instanceLoggingGet-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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLoggingGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLoggingGet-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLoggingGet-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLoggingGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLoggingGet-schema">
<div id='examples-Default-instanceLoggingGet-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLoggingGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLoggingGet-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLoggingGet-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceLoggingPut">
<article id="api-Default-instanceLoggingPut-0" data-group="User" data-name="instanceLoggingPut" data-version="0">
<div class="pull-left">
<h1>instanceLoggingPut</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Change logging parmeters for this instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrangel/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-Default-instanceLoggingPut-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLoggingPut-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceLoggingPut-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceLoggingPut-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceLoggingPut-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">put</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/logging"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
LoggingInfo body = ; // LoggingInfo | Logging information
try {
LoggingInfo result = apiInstance.instanceLoggingPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLoggingPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
LoggingInfo body = ; // LoggingInfo | Logging information
try {
LoggingInfo result = apiInstance.instanceLoggingPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceLoggingPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-objc">
<pre class="prettyprint"><code class="language-cpp">
LoggingInfo *body = ; // Logging information
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceLoggingPutWith:body
completionHandler: ^(LoggingInfo output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
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.instanceLoggingPut(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceLoggingPutExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new LoggingInfo(); // LoggingInfo | Logging information
try
{
LoggingInfo result = apiInstance.instanceLoggingPut(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceLoggingPut: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceLoggingPut-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // LoggingInfo | Logging information
try {
$result = $api_instance->instanceLoggingPut($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
}
</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;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instanceLoggingPut_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instanceLoggingPut_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 href="#examples-Default-instanceLoggingPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLoggingPut-schema">
<div id='examples-Default-instanceLoggingPut-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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLoggingPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLoggingPut-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLoggingPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Invallid data </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLoggingPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLoggingPut-schema">
<div id='examples-Default-instanceLoggingPut-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" : "Invallid data"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLoggingPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLoggingPut-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLoggingPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceLoggingPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceLoggingPut-schema">
<div id='examples-Default-instanceLoggingPut-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceLoggingPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceLoggingPut-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceLoggingPut-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instancePresetDelete">
<article id="api-Default-instancePresetDelete-0" data-group="User" data-name="instancePresetDelete" data-version="0">
<div class="pull-left">
<h1>instancePresetDelete</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Deletes a preset</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/sdrangel/preset</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-Default-instancePresetDelete-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetDelete-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetDelete-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetDelete-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetDelete-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetDelete-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetDelete-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetDelete-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetDelete-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instancePresetDelete-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">delete</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetIdentifier body = ; // PresetIdentifier | delete this preset
try {
PresetIdentifier result = apiInstance.instancePresetDelete(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetDelete");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetIdentifier body = ; // PresetIdentifier | delete this preset
try {
PresetIdentifier result = apiInstance.instancePresetDelete(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetDelete");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-objc">
<pre class="prettyprint"><code class="language-cpp">
PresetIdentifier *body = ; // delete this preset
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instancePresetDeleteWith:body
completionHandler: ^(PresetIdentifier output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {PresetIdentifier} delete this preset
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instancePresetDelete(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instancePresetDelete-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instancePresetDeleteExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
try
{
PresetIdentifier result = apiInstance.instancePresetDelete(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instancePresetDelete: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetDelete-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // PresetIdentifier | delete this preset
try {
$result = $api_instance->instancePresetDelete($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
}
</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" : "delete this preset",
"required" : true,
"schema" : {
"$ref" : "#/definitions/PresetIdentifier"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instancePresetDelete_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instancePresetDelete_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return deleted preset identification </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetDelete-schema">
<div id='examples-Default-instancePresetDelete-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" : "On success return deleted preset identification",
"schema" : {
"$ref" : "#/definitions/PresetIdentifier"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetDelete-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Invalid frequency </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetDelete-schema">
<div id='examples-Default-instancePresetDelete-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 frequency"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetDelete-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 404 - Preset not found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetDelete-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetDelete-schema">
<div id='examples-Default-instancePresetDelete-schema-404' 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" : "Preset not found"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetDelete-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetDelete-schema-404');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetDelete-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instancePresetGet">
<article id="api-Default-instancePresetGet-0" data-group="User" data-name="instancePresetGet" data-version="0">
<div class="pull-left">
<h1>instancePresetGet</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>List all presets in the instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/preset</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-Default-instancePresetGet-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetGet-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetGet-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetGet-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetGet-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetGet-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetGet-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetGet-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetGet-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instancePresetGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetGet-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Presets result = apiInstance.instancePresetGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetGet-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Presets result = apiInstance.instancePresetGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetGet");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instancePresetGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instancePresetGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instancePresetGetWithCompletionHandler:
^(Presets output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetGet-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instancePresetGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instancePresetGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instancePresetGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instancePresetGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
Presets result = apiInstance.instancePresetGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instancePresetGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetGet-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instancePresetGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
}
</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return preset list </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetGet-schema">
<div id='examples-Default-instancePresetGet-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" : "On success return preset list",
"schema" : {
"$ref" : "#/definitions/Presets"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetGet-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetGet-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetGet-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetGet-schema">
<div id='examples-Default-instancePresetGet-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetGet-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetGet-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetGet-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instancePresetPatch">
<article id="api-Default-instancePresetPatch-0" data-group="User" data-name="instancePresetPatch" data-version="0">
<div class="pull-left">
<h1>instancePresetPatch</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Load a preset in a device set</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/preset</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-Default-instancePresetPatch-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPatch-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPatch-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPatch-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPatch-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPatch-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPatch-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPatch-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPatch-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instancePresetPatch-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">patch</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
try {
PresetIdentifier result = apiInstance.instancePresetPatch(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
try {
PresetIdentifier result = apiInstance.instancePresetPatch(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPatch");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-objc">
<pre class="prettyprint"><code class="language-cpp">
PresetTransfer *body = ; // Load preset settings to the device set
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instancePresetPatchWith:body
completionHandler: ^(PresetIdentifier output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {PresetTransfer} Load preset settings to the device set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instancePresetPatch(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instancePresetPatch-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instancePresetPatchExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
try
{
PresetIdentifier result = apiInstance.instancePresetPatch(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instancePresetPatch: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPatch-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // PresetTransfer | Load preset settings to the device set
try {
$result = $api_instance->instancePresetPatch($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
}
</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" : "Load preset settings to the device set",
"required" : true,
"schema" : {
"$ref" : "#/definitions/PresetTransfer"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instancePresetPatch_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instancePresetPatch_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return preset identification </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPatch-schema">
<div id='examples-Default-instancePresetPatch-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" : "On success return preset identification",
"schema" : {
"$ref" : "#/definitions/PresetIdentifier"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPatch-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Invalid frequency </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPatch-schema">
<div id='examples-Default-instancePresetPatch-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 frequency"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPatch-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 404 - No preset or device set found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPatch-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPatch-schema">
<div id='examples-Default-instancePresetPatch-schema-404' 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" : "No preset or device set found",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPatch-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPatch-schema-404');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPatch-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instancePresetPost">
<article id="api-Default-instancePresetPost-0" data-group="User" data-name="instancePresetPost" data-version="0">
<div class="pull-left">
<h1>instancePresetPost</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Create a new preset from a device set settings</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/sdrangel/preset</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-Default-instancePresetPost-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPost-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPost-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPost-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPost-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPost-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPost-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPost-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPost-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instancePresetPost-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">post</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPost-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
try {
PresetIdentifier result = apiInstance.instancePresetPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPost");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPost-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
try {
PresetIdentifier result = apiInstance.instancePresetPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPost");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instancePresetPost-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instancePresetPost-0-objc">
<pre class="prettyprint"><code class="language-cpp">
PresetTransfer *body = ; // save device set settings on a new preset
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instancePresetPostWith:body
completionHandler: ^(PresetIdentifier output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPost-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {PresetTransfer} save device set settings on a new preset
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instancePresetPost(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instancePresetPost-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instancePresetPost-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instancePresetPostExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
try
{
PresetIdentifier result = apiInstance.instancePresetPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instancePresetPost: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPost-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // PresetTransfer | save device set settings on a new preset
try {
$result = $api_instance->instancePresetPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
}
</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" : "save device set settings on a new preset",
"required" : true,
"schema" : {
"$ref" : "#/definitions/PresetTransfer"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instancePresetPost_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instancePresetPost_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return preset identification </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPost-schema">
<div id='examples-Default-instancePresetPost-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" : "On success return preset identification",
"schema" : {
"$ref" : "#/definitions/PresetIdentifier"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPost-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPost-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Invalid frequency </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPost-schema">
<div id='examples-Default-instancePresetPost-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 frequency"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPost-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPost-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 404 - Device set not found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPost-schema">
<div id='examples-Default-instancePresetPost-schema-404' 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" : "Device set not found"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPost-schema-404');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPost-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 409 - Preset already exists </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPost-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPost-schema">
<div id='examples-Default-instancePresetPost-schema-409' 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" : "Preset already exists"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPost-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPost-schema-409');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPost-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instancePresetPut">
<article id="api-Default-instancePresetPut-0" data-group="User" data-name="instancePresetPut" data-version="0">
<div class="pull-left">
<h1>instancePresetPut</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>Save device set settings on a preset</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrangel/preset</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-Default-instancePresetPut-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPut-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPut-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPut-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPut-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPut-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instancePresetPut-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instancePresetPut-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instancePresetPut-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instancePresetPut-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">put</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPut-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
try {
PresetIdentifier result = apiInstance.instancePresetPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPut-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
try {
PresetIdentifier result = apiInstance.instancePresetPut(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instancePresetPut");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instancePresetPut-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instancePresetPut-0-objc">
<pre class="prettyprint"><code class="language-cpp">
PresetTransfer *body = ; // save device set settings to the preset
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instancePresetPutWith:body
completionHandler: ^(PresetIdentifier output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPut-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var body = ; // {PresetTransfer} save device set settings to the preset
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instancePresetPut(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instancePresetPut-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instancePresetPut-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instancePresetPutExample
{
public void main()
{
var apiInstance = new DefaultApi();
var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
try
{
PresetIdentifier result = apiInstance.instancePresetPut(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instancePresetPut: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instancePresetPut-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
$body = ; // PresetTransfer | save device set settings to the preset
try {
$result = $api_instance->instancePresetPut($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
}
</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" : "save device set settings to the preset",
"required" : true,
"schema" : {
"$ref" : "#/definitions/PresetTransfer"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
var result = $('#d2e199_instancePresetPut_body');
result.empty();
result.append(view.render());
});
});
</script>
<div id="d2e199_instancePresetPut_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return preset identification </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPut-schema">
<div id='examples-Default-instancePresetPut-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" : "On success return preset identification",
"schema" : {
"$ref" : "#/definitions/PresetIdentifier"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPut-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 400 - Invalid frequency </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPut-schema">
<div id='examples-Default-instancePresetPut-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 frequency"
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPut-schema-400');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPut-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 404 - No preset or device set found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instancePresetPut-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instancePresetPut-schema">
<div id='examples-Default-instancePresetPut-schema-404' 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" : "No preset or device set found",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instancePresetPut-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instancePresetPut-schema-404');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instancePresetPut-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-instanceSummary">
<article id="api-Default-instanceSummary-0" data-group="User" data-name="instanceSummary" data-version="0">
<div class="pull-left">
<h1>instanceSummary</h1>
</div>
<div class="pull-right">
</div>
<div class="clearfix"></div>
<p></p>
<p>SDRangel instance summary</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel</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-Default-instanceSummary-0-curl">Curl</a>
</li>
<li class="">
<a href="#examples-Default-instanceSummary-0-java">Java</a>
</li>
<li class="">
<a href="#examples-Default-instanceSummary-0-android">Android</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceSummary-0-groovy">Groovy</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceSummary-0-objc">Obj-C</a>
</li>
<li class="">
<a href="#examples-Default-instanceSummary-0-javascript">JavaScript</a>
</li>
<!--<li class="">
<a href="#examples-Default-instanceSummary-0-angular">Angular</a>
</li>-->
<li class="">
<a href="#examples-Default-instanceSummary-0-csharp">C#</a>
</li>
<li class="">
<a href="#examples-Default-instanceSummary-0-php">PHP</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-instanceSummary-0-curl">
<pre class="prettyprint"><code class="language-bsh">
curl -X <span style="text-transform: uppercase;">get</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceSummary-0-java">
<pre class="prettyprint"><code class="language-java">
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
InstanceSummaryResponse result = apiInstance.instanceSummary();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceSummary");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceSummary-0-android">
<pre class="prettyprint"><code class="language-java">
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
InstanceSummaryResponse result = apiInstance.instanceSummary();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#instanceSummary");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-instanceSummary-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-instanceSummary-0-objc">
<pre class="prettyprint"><code class="language-cpp">
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance instanceSummaryWithCompletionHandler:
^(InstanceSummaryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceSummary-0-javascript">
<pre class="prettyprint"><code class="language-js">
var = require('');
var api = new .DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceSummary(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-instanceSummary-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-instanceSummary-0-csharp">
<pre class="prettyprint"><code class="language-cs">
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class instanceSummaryExample
{
public void main()
{
var apiInstance = new DefaultApi();
try
{
InstanceSummaryResponse result = apiInstance.instanceSummary();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.instanceSummary: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-instanceSummary-0-php">
<pre class="prettyprint"><code class="language-php">
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\DefaultApi();
try {
$result = $api_instance->instanceSummary();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
}
</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 href="#examples-Default-instanceSummary-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceSummary-schema">
<div id='examples-Default-instanceSummary-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/InstanceSummaryResponse"
}
};
var schema = schemaWrapper.schema;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceSummary-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceSummary-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceSummary-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 0 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a href="#examples-Default-instanceSummary-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="examples-Default-instanceSummary-schema">
<div id='examples-Default-instanceSummary-schema-0' 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;
schemaWrapper.definitions = defs;
//console.log(JSON.stringify(schema))
JsonRefs.resolveRefs(schemaWrapper, {
"depth": 3,
"resolveRemoteRefs": false,
"resolveFileRefs": false
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
$('#examples-Default-instanceSummary-schema-data').val(JSON.stringify(resolved.schema));
var result = $('#examples-Default-instanceSummary-schema-0');
result.empty();
result.append(view.render());
});
});
</script>
</div>
<input id='examples-Default-instanceSummary-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
</section>
</div>
<div id="footer">
<div id="api-_footer">
<p>Suggestions, contact, support and error reporting;
<div class="app-desc">Information URL: <a href="https://github.com/f4exb/sdrangel">https://github.com/f4exb/sdrangel</a></div>
<div class="app-desc">Contact Info: <a href="f4exb06@gmail.com">f4exb06@gmail.com</a></div>
</p>
<div class="license-info">All rights reserved</div>
<div class="license-url">http://apache.org/licenses/LICENSE-2.0.html</div>
</div>
</div>
<div id="generator">
<div class="content">
Generated 2017-11-17T03:16:05.120+01:00
</div>
</div>
</div>
</div>
</div>
<script>
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSONSchemaView = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
/*
* Converts anyOf, allOf and oneOf to human readable string
*/
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.convertXOf = convertXOf;
exports._if = _if;
function convertXOf(type) {
return type.substring(0, 3) + ' of';
}
/*
* if condition for ES6 template strings
* to be used only in template string
*
* @example mystr = `Random is ${_if(Math.random() > 0.5)`greater than 0.5``
*
* @param {boolean} condition
*
* @returns {function} the template function
*/
function _if(condition) {
return condition ? normal : empty;
}
function empty() {
return '';
}
function normal(template) {
for (var _len = arguments.length, expressions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
expressions[_key - 1] = arguments[_key];
}
return template.slice(1).reduce(function (accumulator, part, i) {
return accumulator + expressions[i] + part;
}, template[0]);
}
},{}],2:[function(require,module,exports){
'use strict';
/* globals JSONSchemaView */
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _templateObject = _taggedTemplateLiteral(['\n <div class="any">\n ', '\n\n <span class="type type-any">&lt;any&gt;</span>\n\n ', '\n\t\t \n\t\t ', '\n\t\t ', '\n\t\t ', '\n </div>\n '], ['\n <div class="any">\n ', '\n\n <span class="type type-any">&lt;any&gt;</span>\n\n ', '\n\t\t \n\t\t ', '\n\t\t ', '\n\t\t ', '\n </div>\n ']),
_templateObject2 = _taggedTemplateLiteral(['\n <a class="title"><span class="toggle-handle"></span>', ' </a>\n '], ['\n <a class="title"><span class="toggle-handle"></span>', ' </a>\n ']),
_templateObject3 = _taggedTemplateLiteral(['\n <div class="inner description">', '</div>\n '], ['\n <div class="inner description">', '</div>\n ']),
_templateObject4 = _taggedTemplateLiteral(['\n <div class="inner required">Required: ', '</div>\n '], ['\n <div class="inner required">Required: ', '</div>\n ']),
_templateObject5 = _taggedTemplateLiteral(['\n <div class="inner default">Default: ', '</div>\n '], ['\n <div class="inner default">Default: ', '</div>\n ']),
_templateObject6 = _taggedTemplateLiteral(['\n <div class="inner pattern">Pattern: ', '</div>\n '], ['\n <div class="inner pattern">Pattern: ', '</div>\n ']),
_templateObject7 = _taggedTemplateLiteral(['\n <div class="primitive">\n ', '\n\n <span class="type">', '</span>\n\n \n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\t\t \n\t\t \n\t\t \n\t\t ', '\n\t\t ', '\n\t\t ', '\n\n ', '\n\n ', '\n ', '\n ', '\n </div>\n '], ['\n <div class="primitive">\n ', '\n\n <span class="type">', '</span>\n\n \n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\n ', '\n\t\t \n\t\t \n\t\t \n\t\t ', '\n\t\t ', '\n\t\t ', '\n\n ', '\n\n ', '\n ', '\n ', '\n </div>\n ']),
_templateObject8 = _taggedTemplateLiteral(['\n <span class="format">(', ')</span>\n '], ['\n <span class="format">(', ')</span>\n ']),
_templateObject9 = _taggedTemplateLiteral(['\n <span class="range minimum">minimum:', '</span>\n '], ['\n <span class="range minimum">minimum:', '</span>\n ']),
_templateObject10 = _taggedTemplateLiteral(['\n <span class="range exclusiveMinimum">(ex)minimum:', '</span>\n '], ['\n <span class="range exclusiveMinimum">(ex)minimum:', '</span>\n ']),
_templateObject11 = _taggedTemplateLiteral(['\n <span class="range maximum">maximum:', '</span>\n '], ['\n <span class="range maximum">maximum:', '</span>\n ']),
_templateObject12 = _taggedTemplateLiteral(['\n <span class="range exclusiveMaximum">(ex)maximum:', '</span>\n '], ['\n <span class="range exclusiveMaximum">(ex)maximum:', '</span>\n ']),
_templateObject13 = _taggedTemplateLiteral(['\n <span class="range minLength">minLength:', '</span>\n '], ['\n <span class="range minLength">minLength:', '</span>\n ']),
_templateObject14 = _taggedTemplateLiteral(['\n <span class="range maxLength">maxLength:', '</span>\n '], ['\n <span class="range maxLength">maxLength:', '</span>\n ']),
_templateObject15 = _taggedTemplateLiteral(['\n <div class="inner required">Required</div>\n '], ['\n <div class="inner required">Required</div>\n ']),
_templateObject16 = _taggedTemplateLiteral(['\n ', '\n '], ['\n ', '\n ']),
_templateObject17 = _taggedTemplateLiteral(['', ''], ['', '']),
_templateObject18 = _taggedTemplateLiteral(['\n <div class="array">\n <a class="title"><span class="toggle-handle"></span>', '<span class="opening bracket">[</span>', '</a>\n ', '\n <div class="inner">\n ', '\n </div>\n\n ', '\n\n ', '\n ', '\n ', '\n\n ', '\n </div>\n '], ['\n <div class="array">\n <a class="title"><span class="toggle-handle"></span>', '<span class="opening bracket">[</span>', '</a>\n ', '\n <div class="inner">\n ', '\n </div>\n\n ', '\n\n ', '\n ', '\n ', '\n\n ', '\n </div>\n ']),
_templateObject19 = _taggedTemplateLiteral(['<span class="closing bracket">]</span>'], ['<span class="closing bracket">]</span>']),
_templateObject20 = _taggedTemplateLiteral(['\n <span>\n <span title="items range">(', '..', ')</span>\n ', '\n </span>\n '], ['\n <span>\n <span title="items range">(', '..', ')</span>\n ', '\n </span>\n ']),
_templateObject21 = _taggedTemplateLiteral(['<span title="unique" class="uniqueItems"></span>'], ['<span title="unique" class="uniqueItems"></span>']),
_templateObject22 = _taggedTemplateLiteral(['\n <div class="description">', '</div>\n '], ['\n <div class="description">', '</div>\n ']),
_templateObject23 = _taggedTemplateLiteral(['\n <span class="closing bracket">]</span>\n '], ['\n <span class="closing bracket">]</span>\n ']),
_templateObject24 = _taggedTemplateLiteral(['\n <div class="object">\n <a class="title"><span\n class="toggle-handle"></span>', ' <span\n class="opening brace">{</span>', '</a>\n\n <div class="inner">\n ', '\n <!-- children go here -->\n\t\t \n\t\t ', '\n\t\t ', '\n\t\t \n\t\t\t', '\n </div>\n\n ', '\n\n ', '\n ', '\n ', '\n\n ', '\n </div>\n '], ['\n <div class="object">\n <a class="title"><span\n class="toggle-handle"></span>', ' <span\n class="opening brace">{</span>', '</a>\n\n <div class="inner">\n ', '\n <!-- children go here -->\n\t\t \n\t\t ', '\n\t\t ', '\n\t\t \n\t\t\t', '\n </div>\n\n ', '\n\n ', '\n ', '\n ', '\n\n ', '\n </div>\n ']),
_templateObject25 = _taggedTemplateLiteral(['\n <span class="closing brace" ng-if="isCollapsed">}</span>\n '], ['\n <span class="closing brace" ng-if="isCollapsed">}</span>\n ']),
_templateObject26 = _taggedTemplateLiteral(['\n <div class="required">Required: ', '</div>\n '], ['\n <div class="required">Required: ', '</div>\n ']),
_templateObject266 = _taggedTemplateLiteral(['\n <div class="required">Required: ', '</div>\n '], ['\n <div class="required">Required: ', '</div>\n ']),
_templateObject27 = _taggedTemplateLiteral(['\n <div class="default">Default: ', '</div>\n '], ['\n <div class="default">Default: ', '</div>\n ']),
_templateObject28 = _taggedTemplateLiteral(['\n <div class="pattern">Pattern: ', '</div>\n '], ['\n <div class="pattern">Pattern: ', '</div>\n ']),
_templateObject29 = _taggedTemplateLiteral(['\n <span class="closing brace">}</span>\n '], ['\n <span class="closing brace">}</span>\n ']),
_templateObject30 = _taggedTemplateLiteral(['\n <div class="inner enums">\n <b>Enum:</b>\n </div>\n '], ['\n <div class="inner enums">\n <b>Enum:</b>\n </div>\n ']);
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var _helpersJs = require('./helpers.js');
/**
* @class JSONSchemaView
*
* A pure JavaScript component for rendering JSON Schema in HTML.
*/
var JSONSchemaView = (function () {
/**
* @param {object} schema The JSON Schema object
*
* @param {number} [open=1] his number indicates up to how many levels the
* rendered tree should expand. Set it to `0` to make the whole tree collapsed
* or set it to `Infinity` to expand the tree deeply
* @param {object} options.
* theme {string}: one of the following options: ['dark']
*/
function JSONSchemaView(schema, open) {
var _this = this;
var options = arguments.length <= 2 || arguments[2] === undefined ? { theme: null } : arguments[2];
_classCallCheck(this, JSONSchemaView);
this.schema = schema; //console.log(schema);
this.open = open;
this.options = options;
this.isCollapsed = open <= 0;
// if schema is an empty object which means any JOSN
this.isAny = typeof schema === 'object' && !Array.isArray(schema) && !Object.keys(schema).filter(function (k) {
return ['title', 'description'].indexOf(k) === -1;
}).length;
// Determine if a schema is an array
this.isArray = !this.isAny && this.schema && this.schema.type === 'array';
this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneof || this.schema.allOf);
// Determine if a schema is a primitive
this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;
//
this.showToggle = this.schema.description || this.schema.title || this.isPrimitive && (this.schema.minimum || this.schema.maximum || this.schema.exclusiveMinimum || this.schema.exclusiveMaximum);
// populate isRequired property down to properties
if (this.schema && Array.isArray(this.schema.required)) {
this.schema.required.forEach(function (requiredProperty) {
if (typeof _this.schema.properties[requiredProperty] === 'object') {
_this.schema.properties[requiredProperty].isRequired = true;
}
});
}
}
/*
* Returns the template with populated properties.
* This template does not have the children
*/
_createClass(JSONSchemaView, [{
key: 'template',
value: function template() {
if (!this.schema) {
return '';
}
return ('\n <!-- Any -->\n ' + (0, _helpersJs._if)(this.isAny)(_templateObject, (0, _helpersJs._if)(this.showToggle)(_templateObject2, this.schema.title || ''), (0, _helpersJs._if)(this.schema.description && !this.isCollapsed)(_templateObject3, this.schema.description), (0, _helpersJs._if)(this.schema.required && !this.isCollapsed)(_templateObject4, this.schema.required), (0, _helpersJs._if)(this.schema['default'] && !this.isCollapsed)(_templateObject5, this.schema['default']), (0, _helpersJs._if)(this.schema.pattern && !this.isCollapsed)(_templateObject6, this.schema.pattern)) + '\n\n <!-- Primitive -->\n ' + (0, _helpersJs._if)(this.isPrimitive)(_templateObject7, (0, _helpersJs._if)(this.showToggle)(_templateObject2, this.schema.title || ''), this.schema.type, (0, _helpersJs._if)(!this.isCollapsed && this.schema.format)(_templateObject8, this.schema.format), (0, _helpersJs._if)(!this.isCollapsed && this.schema.minimum)(_templateObject9, this.schema.minimum), (0, _helpersJs._if)(!this.isCollapsed && this.schema.exclusiveMinimum)(_templateObject10, this.schema.exclusiveMinimum), (0, _helpersJs._if)(!this.isCollapsed && this.schema.maximum)(_templateObject11, this.schema.maximum), (0, _helpersJs._if)(!this.isCollapsed && this.schema.exclusiveMaximum)(_templateObject12, this.schema.exclusiveMaximum), (0, _helpersJs._if)(!this.isCollapsed && this.schema.minLength)(_templateObject13, this.schema.minLength), (0, _helpersJs._if)(!this.isCollapsed && this.schema.maxLength)(_templateObject14, this.schema.maxLength), (0, _helpersJs._if)(this.schema.description && !this.isCollapsed)(_templateObject3, this.schema.description), (0, _helpersJs._if)(this.schema.required && !this.isCollapsed)(_templateObject15), (0, _helpersJs._if)(this.schema['default'] && !this.isCollapsed)(_templateObject5, this.schema['default']), (0, _helpersJs._if)(this.schema.pattern && !this.isCollapsed)(_templateObject6, this.schema.pattern), (0, _helpersJs._if)(!this.isCollapsed && this.schema['enum'])(_templateObject16, this['enum'](this.schema, this.isCollapsed, this.open)), (0, _helpersJs._if)(this.schema.allOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'allOf')), (0, _helpersJs._if)(this.schema.oneOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'oneOf')), (0, _helpersJs._if)(this.schema.anyOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'anyOf'))) + '\n\n\n <!-- Array -->\n ' + (0, _helpersJs._if)(this.isArray)(_templateObject18, this.schema.title || '', (0, _helpersJs._if)(this.isCollapsed)(_templateObject19), (0, _helpersJs._if)(!this.isCollapsed && (this.schema.uniqueItems || this.schema.minItems || this.schema.maxItems))(_templateObject20, this.schema.minItems || 0, this.schema.maxItems || '∞', (0, _helpersJs._if)(!this.isCollapsed && this.schema.uniqueItems)(_templateObject21)), (0, _helpersJs._if)(!this.isCollapsed && this.schema.description)(_templateObject22, this.schema.description), (0, _helpersJs._if)(!this.isCollapsed && this.schema['enum'])(_templateObject16, this['enum'](this.schema, this.isCollapsed, this.open)), (0, _helpersJs._if)(this.schema.allOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'allOf')), (0, _helpersJs._if)(this.schema.oneOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'oneOf')), (0, _helpersJs._if)(this.schema.anyOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'anyOf')), (0, _helpersJs._if)(!this.isCollapsed)(_templateObject23)) + '\n\n <!-- Object -->\n ' + (0, _helpersJs._if)(!this.isPrimitive && !this.isArray && !this.isAny)(_templateObject24, this.schema.title || '', (0, _helpersJs._if)(this.isCollapsed)(_templateObject25), (0, _helpersJs._if)(!this.isCollapsed && this.schema.description)(_templateObject22, this.schema.description),
(0, _helpersJs._if)(this.schema.required && !this.isCollapsed && this.options.isBodyParam != true)(_templateObject26, this.schema.required),
(0, _helpersJs._if)(this.schema.required && !this.isCollapsed && this.options.isBodyParam == true)(_templateObject266, this.schema.required),
(0, _helpersJs._if)(this.schema['default'] && !this.isCollapsed)(_templateObject27, this.schema['default']),
(0, _helpersJs._if)(!this.isCollapsed && this.schema.pattern)(_templateObject28, this.schema.pattern),
(0, _helpersJs._if)(!this.isCollapsed && this.schema['enum'])(_templateObject16, this['enum'](this.schema, this.isCollapsed, this.open)), (0, _helpersJs._if)(this.schema.allOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'allOf')), (0, _helpersJs._if)(this.schema.oneOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'oneOf')), (0, _helpersJs._if)(this.schema.anyOf && !this.isCollapsed)(_templateObject17, this.xOf(this.schema, 'anyOf')), (0, _helpersJs._if)(!this.isCollapsed)(_templateObject29)) + '\n').replace(/\s*\n/g, '\n').replace(/(\<\!\-\-).+/g, '').trim();
}
/*
* Template for oneOf, anyOf and allOf
*/
}, {
key: 'xOf',
value: function xOf(schema, type) {
return '\n <div class="inner ' + type + '">\n <b>' + (0, _helpersJs.convertXOf)(type) + ':</b>\n </div>\n ';
}
/*
* Template for enums
*/
}, {
key: 'enum',
value: function _enum(schema, isCollapsed, open) {
return '\n ' + (0, _helpersJs._if)(!isCollapsed && schema['enum'])(_templateObject30) + '\n ';
}
/*
* Toggles the 'collapsed' state
*/
}, {
key: 'toggle',
value: function toggle() {
this.isCollapsed = !this.isCollapsed;
this.render();
}
/*
* Renders the element and returns it
*/
}, {
key: 'render',
value: function render() {
if (!this.element) {
this.element = document.createElement('div');
this.element.classList.add('json-schema-view');
}
if (this.isCollapsed) {
this.element.classList.add('collapsed');
} else {
this.element.classList.remove('collapsed');
}
if (this.options.theme) {
this.element.classList.add('json-schema-view-' + this.options.theme);
}
this.element.innerHTML = this.template();
if (!this.schema) {
return this.element;
}
if (!this.isCollapsed) {
this.appendChildren(this.element);
}
// add event listener for toggling
if (this.element.querySelector('a.title')) {
this.element.querySelector('a.title').addEventListener('click', this.toggle.bind(this));
}
return this.element;
}
/*
* Appends children to given element based on current schema
*/
}, {
key: 'appendChildren',
value: function appendChildren(element) {
var _this2 = this;
var inner = element.querySelector('.inner');
if (!inner) {
return;
}
if (this.schema['enum']) {
var formatter = new JSONFormatter(this.schema['enum'], this.open - 1);
var formatterEl = formatter.render();
formatterEl.classList.add('inner');
element.querySelector('.enums.inner').appendChild(formatterEl);
}
if (this.isArray) {
var view = new JSONSchemaView(this.schema.items, this.open - 1);
inner.appendChild(view.render());
}
if (typeof this.schema.properties === 'object') {
Object.keys(this.schema.properties).forEach(function (propertyName) {
var property = _this2.schema.properties[propertyName];
var tempDiv = document.createElement('div');;
tempDiv.innerHTML = '<div class="property">\n <span class="name">' + propertyName + ':</span>\n </div>';
var view = new JSONSchemaView(property, _this2.open - 1);
tempDiv.querySelector('.property').appendChild(view.render());
inner.appendChild(tempDiv.querySelector('.property'));
});
}
if (this.schema.allOf) {
appendXOf.call(this, 'allOf');
}
if (this.schema.oneOf) {
appendXOf.call(this, 'oneOf');
}
if (this.schema.anyOf) {
appendXOf.call(this, 'anyOf');
}
function appendXOf(type) {
var _this3 = this;
var innerAllOf = element.querySelector('.inner.' + type);
this.schema[type].forEach(function (schema) {
var inner = document.createElement('div');
inner.classList.add('inner');
var view = new JSONSchemaView(schema, _this3.open - 1);
inner.appendChild(view.render());
innerAllOf.appendChild(inner);
});
}
}
}]);
return JSONSchemaView;
})();
exports['default'] = JSONSchemaView;
module.exports = exports['default'];
},{"./helpers.js":1}]},{},[2])(2)
});
//# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJDOi9Vc2Vycy9qYW1lc2hpL0Rlc2t0b3AvanNvbi1zY2hlbWEtdmlldy1qcy1tYXN0ZXIvc3JjL2hlbHBlcnMuanMiLCJDOi9Vc2Vycy9qYW1lc2hpL0Rlc2t0b3AvanNvbi1zY2hlbWEtdmlldy1qcy1tYXN0ZXIvc3JjL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FDQUEsWUFBWSxDQUFDOzs7Ozs7Ozs7O0FBSU4sU0FBUyxVQUFVLENBQUMsSUFBSSxFQUFFO0FBQy9CLFNBQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDO0NBQ3JDOzs7Ozs7Ozs7Ozs7O0FBWU0sU0FBUyxHQUFHLENBQUMsU0FBUyxFQUFFO0FBQzdCLFNBQU8sU0FBUyxHQUFHLE1BQU0sR0FBRyxLQUFLLENBQUM7Q0FDbkM7O0FBQ0QsU0FBUyxLQUFLLEdBQUU7QUFDZCxTQUFPLEVBQUUsQ0FBQztDQUNYO0FBQ0QsU0FBUyxNQUFNLENBQUUsUUFBUSxFQUFrQjtvQ0FBYixXQUFXO0FBQVgsZUFBVzs7O0FBQ3ZDLFNBQU8sUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsVUFBQyxXQUFXLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBSztBQUN4RCxXQUFPLFdBQVcsR0FBRyxXQUFXLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0dBQzVDLEVBQUUsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7Q0FDakI7OztBQzVCRCxZQUFZLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt5QkFPTixjQUFjOzs7Ozs7OztJQVFBLGNBQWM7Ozs7Ozs7Ozs7OztBQVd0QixXQVhRLGNBQWMsQ0FXckIsTUFBTSxFQUFFLElBQUksRUFBMkI7OztRQUF6QixPQUFPLHlEQUFHLEVBQUMsS0FBSyxFQUFFLElBQUksRUFBQzs7MEJBWDlCLGNBQWM7O0FBWS9CLFFBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0FBQ3JCLFFBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0FBQ2pCLFFBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0FBQ3ZCLFFBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxJQUFJLENBQUMsQ0FBQzs7O0FBRzdCLFFBQUksQ0FBQyxLQUFLLEdBQUcsT0FBTyxNQUFNLEtBQUssUUFBUSxJQUNyQyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLElBQ3RCLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FDbkIsTUFBTSxDQUFDLFVBQUEsQ0FBQzthQUFHLENBQUMsT0FBTyxFQUFFLGFBQWEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUM7S0FBQSxDQUFDLENBQUMsTUFBTSxDQUFDOzs7QUFHakUsUUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxPQUFPLENBQUM7O0FBRTFFLFFBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLE1BQU0sS0FDeEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssUUFBUSxJQUM3QixJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsSUFDdEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLElBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxJQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQSxBQUFDLENBQUM7OztBQUd0QixRQUFJLENBQUMsV0FBVyxHQUFHLENBQUMsSUFBSSxDQUFDLEtBQUssSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDOzs7QUFHbEUsUUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLFdBQVcsSUFDdkMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLElBQ2hCLElBQUksQ0FBQyxXQUFXLEtBQ2YsSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLElBQ25CLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxJQUNuQixJQUFJLENBQUMsTUFBTSxDQUFDLGdCQUFnQixJQUM1QixJQUFJLENBQUMsTUFBTSxDQUFDLGdCQUFnQixDQUFBLEFBQUMsQUFDOUIsQ0FBQzs7O0FBR0osUUFBSSxJQUFJLENBQUMsTUFBTSxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsRUFBRTtBQUN0RCxVQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsVUFBQSxnQkFBZ0IsRUFBSTtBQUMvQyxZQUFJLE9BQU8sTUFBSyxNQUFNLENBQUMsVUFBVSxDQUFDLGdCQUFnQixDQUFDLEtBQUssUUFBUSxFQUFFO0FBQ2hFLGdCQUFLLE1BQU0sQ0FBQyxVQUFVLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDO1NBQzVEO09BQ0YsQ0FBQyxDQUFDO0tBQ0o7R0FDRjs7Ozs7OztlQXREa0IsY0FBYzs7V0E0RHpCLG9CQUFHO0FBQ1QsVUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUU7QUFDaEIsZUFBTyxFQUFFLENBQUM7T0FDWDs7QUFFRCxhQUFPLGtDQUVILG9CQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsa0JBRVgsb0JBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxtQkFDa0MsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLElBQUksRUFBRSxHQUs3RSxvQkFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLFdBQVcsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsbUJBQ2hCLElBQUksQ0FBQyxNQUFNLENBQUMsV0FBVyxHQUc5RCxvQkFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsbUJBQ0EsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLEdBRWxFLG9CQUFJLElBQUksQ0FBQyxNQUFNLFdBQVEsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsbUJBQ0QsSUFBSSxDQUFDLE1BQU0sV0FBUSxHQUU5RCxvQkFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsbUJBQ0YsSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLDhDQU03RCxvQkFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLG1CQUVqQixvQkFBSSxJQUFJLEN
</script>
<script>
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.JsonRefs=t()}}(function(){var t;return function e(t,n,r){function o(s,u){if(!n[s]){if(!t[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){"use strict";function r(t,e){var n=p[t],r=Promise.resolve(),o=-1===t.indexOf(":")?void 0:t.split(":")[0];return a.isUndefined(n)?-1!==h.indexOf(o)||a.isUndefined(o)?(r=c.load(t,e),r=r.then(e.processContent?function(n){return e.processContent(n,t)}:JSON.parse),r=r.then(function(e){return p[t]=e,e})):r=r.then(function(){return Promise.reject(new Error("Unsupported remote reference scheme: "+o))}):r=r.then(function(){return n}),r=r.then(function(t){return a.cloneDeep(t)})}function o(t,e){var n=m(t);return v(e)&&(e=-1===e.indexOf("#")?"#":e.substring(e.indexOf("#"))),d(n.concat(m(e))).replace(/\/\$ref/g,"")}function i(t,e){function n(t){".."===t?o.pop():"."!==t&&o.push(t)}var r="#"!==e.charAt(0)&&-1===e.indexOf(":"),o=[],i=(e.indexOf("#")>-1?e.split("#")[0]:e).split("/");return t&&(t.indexOf("#")>-1&&(t=t.substring(0,t.indexOf("#"))),t.length>1&&"/"===t[t.length-1]&&(t=t.substring(0,t.length-1)),t.split("#")[0].split("/").forEach(n)),r?i.forEach(n):o=i,o.join("/")}function s(t,e,n){function r(t){var e=t.slice(0,t.lastIndexOf("allOf")),o=n[d(e)];return a.isUndefined(o)?e.indexOf("allOf")>-1?r(e):void 0:d(e)}function i(t){var e=[],o=t.map(function(){var t,o=d(this.path),i=n[o];this.circular&&(e.push(o),a.isUndefined(i)&&(t=r(this.path),i=n[t]),a.isUndefined(i)||(i.circular=!0),this.update(0===u?{}:f(this.node).map(function(){this.circular&&this.parent.update({})})))});return a.each(e,function(t){var e,n=[],r=m(t),i=f(o).get(r);for(e=0;u>e;e++)n.push.apply(n,r),f(o).set(n,a.cloneDeep(i))}),o}function s(t,e){var r=o(e,"#"),i=t=-1===t.indexOf("#")?"#":t.substring(t.indexOf("#")),s=m(i),u=!c.has(s),a=c.get(s),f=m(e),p=f.slice(0,f.length-1),h=n[r]||{ref:t};u?h.missing=!0:0===p.length?(c.value===a&&(a={},h.circular=!0),c.value=a):(c.get(p)===a&&(a={},h.circular=!0),c.set(p,a)),n[r]=h}var u=a.isUndefined(e.depth)?1:e.depth,c=f(t);return a.each(y(t),function(t,e){v(t)||s(t,e)}),a.isUndefined(e.location)||a.each(n,function(t){var n=t.ref;0===n.indexOf(e.location)&&(n=n.substring(e.location.length),"/"===n.charAt(0)&&(n=n.substring(1))),t.ref=n}),{metadata:n,resolved:i(c)}}function u(t,e,n,c,p){function h(t,e,r,i,s){var u,h=r+("#"===i?"":i),l=o(n,t),d=p[l]||{},y=m(t);a.isUndefined(s)?(d.circular=!0,u=c[r].ref):(u=f(s).get(m(i)),a.isUndefined(u)?d.missing=!0:u.$ref?u=u.$ref:y.pop()),0===y.length?g.value=u:g.set(y,u),d.ref=h,p[l]=d}function l(){return{metadata:p,resolved:g.value}}var d=Promise.resolve(),g=f(t);return a.each(y(t),function(t,s){v(t)&&(d=d.then(function(){var f=i(e.location,t),l=t.split("#"),d="#"+(l[1]||"");return a.isUndefined(c[f])?r(f,e).then(function(t){return t},function(t){return t}).then(function(r){var y=l[0],v=a.cloneDeep(e),m=o(n,s);return y=y.substring(0,y.lastIndexOf("/")+1),v.location=i(e.location,y),a.isError(r)?void(p[m]={err:r,missing:!0,ref:t}):(c[f]={ref:n},u(r,v,m,c,p).then(function(e){return delete c[f],h(s,t,f,d,e.resolved),e}))}):void h(s,t,f,d)}))}),d=d.then(function(){s(g.value,e,p)}).then(l,l)}"undefined"==typeof Promise&&t("native-promise-only");var a=t("./lib/utils"),c=t("path-loader"),f=t("traverse"),p={},h=["file","http","https"];e.exports.clearCache=function(){p={}};var l=e.exports.isJsonReference=function(t){return a.isPlainObject(t)&&a.isString(t.$ref)},d=e.exports.pathToPointer=function(t){if(a.isUndefined(t))throw new Error("path is required")
</script>
<script>
/* Web Font Loader v1.6.24 - (c) Adobe Systems, Google. License: Apache 2.0 */
(function(){function aa(a,b,d){return a.call.apply(a.bind,arguments)}function ba(a,b,d){if(!a)throw Error();if(2<arguments.length){var c=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,c);return a.apply(b,d)}}return function(){return a.apply(b,arguments)}}function p(a,b,d){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return p.apply(null,arguments)}var q=Date.now||function(){return+new Date};function ca(a,b){this.a=a;this.m=b||a;this.c=this.m.document}var da=!!window.FontFace;function t(a,b,d,c){b=a.c.createElement(b);if(d)for(var e in d)d.hasOwnProperty(e)&&("style"==e?b.style.cssText=d[e]:b.setAttribute(e,d[e]));c&&b.appendChild(a.c.createTextNode(c));return b}function u(a,b,d){a=a.c.getElementsByTagName(b)[0];a||(a=document.documentElement);a.insertBefore(d,a.lastChild)}function v(a){a.parentNode&&a.parentNode.removeChild(a)}
function w(a,b,d){b=b||[];d=d||[];for(var c=a.className.split(/\s+/),e=0;e<b.length;e+=1){for(var f=!1,g=0;g<c.length;g+=1)if(b[e]===c[g]){f=!0;break}f||c.push(b[e])}b=[];for(e=0;e<c.length;e+=1){f=!1;for(g=0;g<d.length;g+=1)if(c[e]===d[g]){f=!0;break}f||b.push(c[e])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function y(a,b){for(var d=a.className.split(/\s+/),c=0,e=d.length;c<e;c++)if(d[c]==b)return!0;return!1}
function z(a){if("string"===typeof a.f)return a.f;var b=a.m.location.protocol;"about:"==b&&(b=a.a.location.protocol);return"https:"==b?"https:":"http:"}function ea(a){return a.m.location.hostname||a.a.location.hostname}
function A(a,b,d){function c(){k&&e&&f&&(k(g),k=null)}b=t(a,"link",{rel:"stylesheet",href:b,media:"all"});var e=!1,f=!0,g=null,k=d||null;da?(b.onload=function(){e=!0;c()},b.onerror=function(){e=!0;g=Error("Stylesheet failed to load");c()}):setTimeout(function(){e=!0;c()},0);u(a,"head",b)}
function B(a,b,d,c){var e=a.c.getElementsByTagName("head")[0];if(e){var f=t(a,"script",{src:b}),g=!1;f.onload=f.onreadystatechange=function(){g||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(g=!0,d&&d(null),f.onload=f.onreadystatechange=null,"HEAD"==f.parentNode.tagName&&e.removeChild(f))};e.appendChild(f);setTimeout(function(){g||(g=!0,d&&d(Error("Script load timeout")))},c||5E3);return f}return null};function C(){this.a=0;this.c=null}function D(a){a.a++;return function(){a.a--;E(a)}}function F(a,b){a.c=b;E(a)}function E(a){0==a.a&&a.c&&(a.c(),a.c=null)};function G(a){this.a=a||"-"}G.prototype.c=function(a){for(var b=[],d=0;d<arguments.length;d++)b.push(arguments[d].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.a)};function H(a,b){this.c=a;this.f=4;this.a="n";var d=(b||"n4").match(/^([nio])([1-9])$/i);d&&(this.a=d[1],this.f=parseInt(d[2],10))}function fa(a){return I(a)+" "+(a.f+"00")+" 300px "+J(a.c)}function J(a){var b=[];a=a.split(/,\s*/);for(var d=0;d<a.length;d++){var c=a[d].replace(/['"]/g,"");-1!=c.indexOf(" ")||/^\d/.test(c)?b.push("'"+c+"'"):b.push(c)}return b.join(",")}function K(a){return a.a+a.f}function I(a){var b="normal";"o"===a.a?b="oblique":"i"===a.a&&(b="italic");return b}
function ga(a){var b=4,d="n",c=null;a&&((c=a.match(/(normal|oblique|italic)/i))&&c[1]&&(d=c[1].substr(0,1).toLowerCase()),(c=a.match(/([1-9]00|normal|bold)/i))&&c[1]&&(/bold/i.test(c[1])?b=7:/[1-9]00/.test(c[1])&&(b=parseInt(c[1].substr(0,1),10))));return d+b};function ha(a,b){this.c=a;this.f=a.m.document.documentElement;this.h=b;this.a=new G("-");this.j=!1!==b.events;this.g=!1!==b.classes}function ia(a){a.g&&w(a.f,[a.a.c("wf","loading")]);L(a,"loading")}function M(a){if(a.g){var b=y(a.f,a.a.c("wf","active")),d=[],c=[a.a.c("wf","loading")];b||d.push(a.a.c("wf","inactive"));w(a.f,d,c)}L(a,"inactive")}function L(a,b,d){if(a.j&&a.h[b])if(d)a.h[b](d.c,K(d));else a.h[b]()};function ja(){this.c={}}function ka(a,b,d){var c=[],e;for(e in b)if(b.hasOwnProperty(e)){var f=a.c[e];f&&c.push(f(b[e],d))}return c};function N(a,b){this.c=a;this.f=b;this.a=t(this.c,"span",{"aria-hidden":"true"},this.f)}function O(a){u(a.c,"body",a.a)}function P(a){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+J(a.c)+";"+("font-style:"+I(a)+";font-weight:"+(a.f+"00")+";")};function Q(a,b,d,c,e,f){this.g=a;this.j=b;this.a=c;this.c=d;this.f=e||3E3;this.h=f||void 0}Q.prototype.start=function(){var a=this.c.m.document,b=this,d=q(),c=new Promise(function(c,e){function k(){q()-d>=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?c():setTimeout(k,25)},function(){e()})}k()}),e=new Promise(function(a,c){setTimeout(c,b.f)});Promise.race([e,c]).then(function(){b.g(b.a)},function(){b.j(b.a)})};function R(a,b,d,c,e,f,g){this.v=a;this.B=b;this.c=d;this.a=c;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.o=this.j=this.h=this.g=null;this.g=new N(this.c,this.s);this.h=new N(this.c,this.s);this.j=new N(this.c,this.s);this.o=new N(this.c,this.s);a=new H(this.a.c+",serif",K(this.a));a=P(a);this.g.a.style.cssText=a;a=new H(this.a.c+",sans-serif",K(this.a));a=P(a);this.h.a.style.cssText=a;a=new H("serif",K(this.a));a=P(a);this.j.a.style.cssText=a;a=new H("sans-serif",K(this.a));a=
P(a);this.o.a.style.cssText=a;O(this.g);O(this.h);O(this.j);O(this.o)}var S={D:"serif",C:"sans-serif"},T=null;function U(){if(null===T){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);T=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return T}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.o.a.offsetWidth;this.A=q();la(this)};
function ma(a,b,d){for(var c in S)if(S.hasOwnProperty(c)&&b===a.f[S[c]]&&d===a.f[S[c]])return!0;return!1}function la(a){var b=a.g.a.offsetWidth,d=a.h.a.offsetWidth,c;(c=b===a.f.serif&&d===a.f["sans-serif"])||(c=U()&&ma(a,b,d));c?q()-a.A>=a.w?U()&&ma(a,b,d)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):na(a):V(a,a.v)}function na(a){setTimeout(p(function(){la(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.o.a);b(this.a)},a),0)};function W(a,b,d){this.c=a;this.a=b;this.f=0;this.o=this.j=!1;this.s=d}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,K(a).toString(),"active")],[b.a.c("wf",a.c,K(a).toString(),"loading"),b.a.c("wf",a.c,K(a).toString(),"inactive")]);L(b,"fontactive",a);this.o=!0;oa(this)};
W.prototype.h=function(a){var b=this.a;if(b.g){var d=y(b.f,b.a.c("wf",a.c,K(a).toString(),"active")),c=[],e=[b.a.c("wf",a.c,K(a).toString(),"loading")];d||c.push(b.a.c("wf",a.c,K(a).toString(),"inactive"));w(b.f,c,e)}L(b,"fontinactive",a);oa(this)};function oa(a){0==--a.f&&a.j&&(a.o?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),L(a,"active")):M(a.a))};function pa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}pa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;qa(this,new ha(this.c,a),a)};
function ra(a,b,d,c,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,k=c||null||{};if(0===d.length&&f)M(b.a);else{b.f+=d.length;f&&(b.j=f);var h,m=[];for(h=0;h<d.length;h++){var l=d[h],n=k[l.c],r=b.a,x=l;r.g&&w(r.f,[r.a.c("wf",x.c,K(x).toString(),"loading")]);L(r,"fontloading",x);r=null;null===X&&(X=window.FontFace?(x=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))?42<parseInt(x[1],10):!0:!1);X?r=new Q(p(b.g,b),p(b.h,b),b.c,l,b.s,n):r=new R(p(b.g,b),p(b.h,b),b.c,l,b.s,a,
n);m.push(r)}for(h=0;h<m.length;h++)m[h].start()}},0)}function qa(a,b,d){var c=[],e=d.timeout;ia(b);var c=ka(a.a,d,a.c),f=new W(a.c,b,e);a.h=c.length;b=0;for(d=c.length;b<d;b++)c[b].load(function(b,c,d){ra(a,f,b,c,d)})};function sa(a,b){this.c=a;this.a=b}function ta(a,b,d){var c=z(a.c);a=(a.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"");return c+"//"+a+"/"+b+".js"+(d?"?v="+d:"")}
sa.prototype.load=function(a){function b(){if(e["__mti_fntLst"+d]){var c=e["__mti_fntLst"+d](),g=[],k;if(c)for(var h=0;h<c.length;h++){var m=c[h].fontfamily;void 0!=c[h].fontStyle&&void 0!=c[h].fontWeight?(k=c[h].fontStyle+c[h].fontWeight,g.push(new H(m,k))):g.push(new H(m))}a(g)}else setTimeout(function(){b()},50)}var d=this.a.projectId,c=this.a.version;if(d){var e=this.c.m;B(this.c,ta(this,d,c),function(c){c?a([]):b()}).id="__MonotypeAPIScript__"+d}else a([])};function ua(a,b){this.c=a;this.a=b}ua.prototype.load=function(a){var b,d,c=this.a.urls||[],e=this.a.families||[],f=this.a.testStrings||{},g=new C;b=0;for(d=c.length;b<d;b++)A(this.c,c[b],D(g));var k=[];b=0;for(d=e.length;b<d;b++)if(c=e[b].split(":"),c[1])for(var h=c[1].split(","),m=0;m<h.length;m+=1)k.push(new H(c[0],h[m]));else k.push(new H(c[0]));F(g,function(){a(k,f)})};function va(a,b,d){a?this.c=a:this.c=b+wa;this.a=[];this.f=[];this.g=d||""}var wa="//fonts.googleapis.com/css";function xa(a,b){for(var d=b.length,c=0;c<d;c++){var e=b[c].split(":");3==e.length&&a.f.push(e.pop());var f="";2==e.length&&""!=e[1]&&(f=":");a.a.push(e.join(f))}}
function ya(a){if(0==a.a.length)throw Error("No fonts to load!");if(-1!=a.c.indexOf("kit="))return a.c;for(var b=a.a.length,d=[],c=0;c<b;c++)d.push(a.a[c].replace(/ /g,"+"));b=a.c+"?family="+d.join("%7C");0<a.f.length&&(b+="&subset="+a.f.join(","));0<a.g.length&&(b+="&text="+encodeURIComponent(a.g));return b};function za(a){this.f=a;this.a=[];this.c={}}
var Aa={latin:"BESbswy",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},Ba={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Ca={i:"i",italic:"i",n:"n",normal:"n"},Da=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
function Ea(a){for(var b=a.f.length,d=0;d<b;d++){var c=a.f[d].split(":"),e=c[0].replace(/\+/g," "),f=["n4"];if(2<=c.length){var g;var k=c[1];g=[];if(k)for(var k=k.split(","),h=k.length,m=0;m<h;m++){var l;l=k[m];if(l.match(/^[\w-]+$/)){var n=Da.exec(l.toLowerCase());if(null==n)l="";else{l=n[2];l=null==l||""==l?"n":Ca[l];n=n[1];if(null==n||""==n)n="4";else var r=Ba[n],n=r?r:isNaN(n)?"4":n.substr(0,1);l=[l,n].join("")}}else l="";l&&g.push(l)}0<g.length&&(f=g);3==c.length&&(c=c[2],g=[],c=c?c.split(","):
g,0<c.length&&(c=Aa[c[0]])&&(a.c[e]=c))}a.c[e]||(c=Aa[e])&&(a.c[e]=c);for(c=0;c<f.length;c+=1)a.a.push(new H(e,f[c]))}};function Fa(a,b){this.c=a;this.a=b}var Ga={Arimo:!0,Cousine:!0,Tinos:!0};Fa.prototype.load=function(a){var b=new C,d=this.c,c=new va(this.a.api,z(d),this.a.text),e=this.a.families;xa(c,e);var f=new za(e);Ea(f);A(d,ya(c),D(b));F(b,function(){a(f.a,f.c,Ga)})};function Ha(a,b){this.c=a;this.a=b}Ha.prototype.load=function(a){var b=this.a.id,d=this.c.m;b?B(this.c,(this.a.api||"https://use.typekit.net")+"/"+b+".js",function(b){if(b)a([]);else if(d.Typekit&&d.Typekit.config&&d.Typekit.config.fn){b=d.Typekit.config.fn;for(var e=[],f=0;f<b.length;f+=2)for(var g=b[f],k=b[f+1],h=0;h<k.length;h++)e.push(new H(g,k[h]));try{d.Typekit.load({events:!1,classes:!1,async:!0})}catch(m){}a(e)}},2E3):a([])};function Ia(a,b){this.c=a;this.f=b;this.a=[]}Ia.prototype.load=function(a){var b=this.f.id,d=this.c.m,c=this;b?(d.__webfontfontdeckmodule__||(d.__webfontfontdeckmodule__={}),d.__webfontfontdeckmodule__[b]=function(b,d){for(var g=0,k=d.fonts.length;g<k;++g){var h=d.fonts[g];c.a.push(new H(h.name,ga("font-weight:"+h.weight+";font-style:"+h.style)))}a(c.a)},B(this.c,z(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+ea(this.c)+"/"+b+".js",function(b){b&&a([])})):a([])};var Y=new pa(window);Y.a.c.custom=function(a,b){return new ua(b,a)};Y.a.c.fontdeck=function(a,b){return new Ia(b,a)};Y.a.c.monotype=function(a,b){return new sa(b,a)};Y.a.c.typekit=function(a,b){return new Ha(b,a)};Y.a.c.google=function(a,b){return new Fa(b,a)};var Z={load:p(Y.load,Y)};"function"===typeof define&&define.amd?define(function(){return Z}):"undefined"!==typeof module&&module.exports?module.exports=Z:(window.WebFont=Z,window.WebFontConfig&&Y.load(window.WebFontConfig));}());
</script>
<script>
$(document).ready(function () {
$('.nav-tabs-examples').find('a:first').tab('show');
$(this).scrollspy({ target: '#scrollingNav', offset: 18 });
});
</script>
</body>
</html>