1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00
focalboard/server/swagger/docs/html/index.html

35263 lines
2.1 MiB
HTML
Raw Normal View History

2021-02-17 21:29:20 +02:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Focalboard Server</title>
2021-02-17 21:29:20 +02:00
<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.
* https://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>
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i<item.align.length;i++){if(/^ *-+: *$/.test(item.align[i])){item.align[i]="right"}else if(/^ *:-+: *$/.test(item.align[i])){item.align[i]="center"}else if(/^ *:-+ *$/.test(item.align[i])){item.align[i]="left"}else{item.align[i]=null}}for(i=0;i<item.cells.length;i++){item.cells[i]=item.cells[i].split(/ *\| */)}this.tokens.push(item);continue}if(cap=this.rules.lheading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[2]==="="?1:2,text:cap[1]});continue}if(cap=this.rules.hr.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"hr"});continue}if(cap=this.rules.blockquote.exec(src)){src=
</script>
<script>
$( document ).ready(function() {
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false
});
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', "*");
}
function processMarked() {
$(".marked").each(function() {
$(this).html(marked($(this).html()));
});
}
// 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();
//Convert elements with "marked" class to markdown
processMarked();
});
function findNode(id, currentNode) {
var currentChild,
result;
if ( Object.keys(currentNode)[0] == id) {
return currentNode;
} else {
// Use a for loop instead of forEach to avoid nested functions
// Otherwise "return" will not work properly
for(var propt in currentNode){
if (currentNode.hasOwnProperty(propt)) {
currentChild = currentNode[propt]
if (id == propt) {
return currentChild;
} else {
// Search in the current child
if (typeof(currentChild) === 'object') {
result = findNode(id, currentChild);
if (result != false) {
return result;
}
}
}
}
}
// The node has not been found and we have no more options
return false;
}
}
</script>
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
2021-02-17 21:29:20 +02:00
/*!
* Bootstrap v2.3.2
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* https://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
* ------------------------------------------------------------------------------------------ */
* {
font-family: 'Source Code Pro', sans-serif;
}
body {
min-width: 980px;
}
.app-desc {
color: #808080
}
body, p, a, div, th, td, li {
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
}
.json-schema-view .readOnly, json-schema-view .readOnly {
color: gray;
font-style: italic
}
.json-schema-view .nullable, json-schema-view .nullable {
color: gray;
font-style: italic
}
.pattern, .example {
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 .closing.brace, json-schema-view.collapsed .closing.brace {
2021-02-17 21:29:20 +02:00
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 .closing.brace, json-schema-view[json-schema-view-dark].collapsed .closing.brace {
2021-02-17 21:29:20 +02:00
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)
}
.exampleStyle {
padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
}
</style>
</head>
<body>
<script>
// Script section to load models into a JS Var
var defs = {}
defs["onboard_200_response"] = {
"type" : "object",
"properties" : {
"boardID" : {
"type" : "string",
"description" : "Board ID"
},
"teamID" : {
"type" : "string",
"description" : "Team ID"
}
}
2021-02-17 21:29:20 +02:00
};
var errs = {};
</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="addMember" class="">
<a href="#api-Default-addMember">addMember</a>
</li>
<li data-group="Default" data-name="archiveExportBoard" class="">
<a href="#api-Default-archiveExportBoard">archiveExportBoard</a>
</li>
<li data-group="Default" data-name="archiveExportTeam" class="">
<a href="#api-Default-archiveExportTeam">archiveExportTeam</a>
</li>
<li data-group="Default" data-name="archiveImport" class="">
<a href="#api-Default-archiveImport">archiveImport</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="changePassword" class="">
<a href="#api-Default-changePassword">changePassword</a>
</li>
<li data-group="Default" data-name="cloudLimits" class="">
<a href="#api-Default-cloudLimits">cloudLimits</a>
</li>
<li data-group="Default" data-name="createBoard" class="">
<a href="#api-Default-createBoard">createBoard</a>
</li>
<li data-group="Default" data-name="createCard" class="">
<a href="#api-Default-createCard">createCard</a>
</li>
<li data-group="Default" data-name="createCategory" class="">
<a href="#api-Default-createCategory">createCategory</a>
</li>
<li data-group="Default" data-name="createSubscription" class="">
<a href="#api-Default-createSubscription">createSubscription</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="deleteBlock" class="">
<a href="#api-Default-deleteBlock">deleteBlock</a>
</li>
<li data-group="Default" data-name="deleteBoard" class="">
<a href="#api-Default-deleteBoard">deleteBoard</a>
</li>
<li data-group="Default" data-name="deleteBoardsAndBlocks" class="">
<a href="#api-Default-deleteBoardsAndBlocks">deleteBoardsAndBlocks</a>
</li>
<li data-group="Default" data-name="deleteCategory" class="">
<a href="#api-Default-deleteCategory">deleteCategory</a>
</li>
<li data-group="Default" data-name="deleteMember" class="">
<a href="#api-Default-deleteMember">deleteMember</a>
</li>
<li data-group="Default" data-name="deleteSubscription" class="">
<a href="#api-Default-deleteSubscription">deleteSubscription</a>
</li>
<li data-group="Default" data-name="duplicateBlock" class="">
<a href="#api-Default-duplicateBlock">duplicateBlock</a>
</li>
<li data-group="Default" data-name="duplicateBoard" class="">
<a href="#api-Default-duplicateBoard">duplicateBoard</a>
2021-02-17 21:29:20 +02:00
</li>
<li data-group="Default" data-name="getBlocks" class="">
<a href="#api-Default-getBlocks">getBlocks</a>
</li>
<li data-group="Default" data-name="getBoard" class="">
<a href="#api-Default-getBoard">getBoard</a>
</li>
<li data-group="Default" data-name="getBoardMetadata" class="">
<a href="#api-Default-getBoardMetadata">getBoardMetadata</a>
</li>
<li data-group="Default" data-name="getBoards" class="">
<a href="#api-Default-getBoards">getBoards</a>
2021-02-17 21:29:20 +02:00
</li>
<li data-group="Default" data-name="getCard" class="">
<a href="#api-Default-getCard">getCard</a>
</li>
<li data-group="Default" data-name="getCards" class="">
<a href="#api-Default-getCards">getCards</a>
</li>
<li data-group="Default" data-name="getChannel" class="">
<a href="#api-Default-getChannel">getChannel</a>
</li>
<li data-group="Default" data-name="getClientConfig" class="">
<a href="#api-Default-getClientConfig">getClientConfig</a>
</li>
<li data-group="Default" data-name="getFile" class="">
<a href="#api-Default-getFile">getFile</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="getMe" class="">
<a href="#api-Default-getMe">getMe</a>
</li>
<li data-group="Default" data-name="getMembersForBoard" class="">
<a href="#api-Default-getMembersForBoard">getMembersForBoard</a>
</li>
<li data-group="Default" data-name="getMyMemberships" class="">
<a href="#api-Default-getMyMemberships">getMyMemberships</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="getSharing" class="">
<a href="#api-Default-getSharing">getSharing</a>
</li>
<li data-group="Default" data-name="getSubscriptions" class="">
<a href="#api-Default-getSubscriptions">getSubscriptions</a>
</li>
<li data-group="Default" data-name="getTeam" class="">
<a href="#api-Default-getTeam">getTeam</a>
</li>
<li data-group="Default" data-name="getTeamUsers" class="">
<a href="#api-Default-getTeamUsers">getTeamUsers</a>
</li>
<li data-group="Default" data-name="getTeams" class="">
<a href="#api-Default-getTeams">getTeams</a>
</li>
<li data-group="Default" data-name="getTemplates" class="">
<a href="#api-Default-getTemplates">getTemplates</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="getUser" class="">
<a href="#api-Default-getUser">getUser</a>
</li>
<li data-group="Default" data-name="getUserBoardsInsights" class="">
<a href="#api-Default-getUserBoardsInsights">getUserBoardsInsights</a>
</li>
<li data-group="Default" data-name="getUserCategoryBoards" class="">
<a href="#api-Default-getUserCategoryBoards">getUserCategoryBoards</a>
</li>
<li data-group="Default" data-name="getUserConfig" class="">
<a href="#api-Default-getUserConfig">getUserConfig</a>
</li>
<li data-group="Default" data-name="getUsersList" class="">
<a href="#api-Default-getUsersList">getUsersList</a>
</li>
<li data-group="Default" data-name="handleNotifyAdminUpgrade" class="">
<a href="#api-Default-handleNotifyAdminUpgrade">handleNotifyAdminUpgrade</a>
</li>
<li data-group="Default" data-name="handleStatistics" class="">
<a href="#api-Default-handleStatistics">handleStatistics</a>
</li>
<li data-group="Default" data-name="handleTeamBoardsInsights" class="">
<a href="#api-Default-handleTeamBoardsInsights">handleTeamBoardsInsights</a>
</li>
<li data-group="Default" data-name="hello" class="">
<a href="#api-Default-hello">hello</a>
</li>
<li data-group="Default" data-name="insertBoardsAndBlocks" class="">
<a href="#api-Default-insertBoardsAndBlocks">insertBoardsAndBlocks</a>
2021-02-17 21:29:20 +02:00
</li>
<li data-group="Default" data-name="joinBoard" class="">
<a href="#api-Default-joinBoard">joinBoard</a>
</li>
<li data-group="Default" data-name="leaveBoard" class="">
<a href="#api-Default-leaveBoard">leaveBoard</a>
2021-02-17 21:29:20 +02:00
</li>
<li data-group="Default" data-name="login" class="">
<a href="#api-Default-login">login</a>
</li>
<li data-group="Default" data-name="logout" class="">
<a href="#api-Default-logout">logout</a>
</li>
<li data-group="Default" data-name="onboard" class="">
<a href="#api-Default-onboard">onboard</a>
</li>
<li data-group="Default" data-name="patchBlock" class="">
<a href="#api-Default-patchBlock">patchBlock</a>
</li>
<li data-group="Default" data-name="patchBlocks" class="">
<a href="#api-Default-patchBlocks">patchBlocks</a>
</li>
<li data-group="Default" data-name="patchBoard" class="">
<a href="#api-Default-patchBoard">patchBoard</a>
</li>
<li data-group="Default" data-name="patchBoardsAndBlocks" class="">
<a href="#api-Default-patchBoardsAndBlocks">patchBoardsAndBlocks</a>
</li>
<li data-group="Default" data-name="patchCard" class="">
<a href="#api-Default-patchCard">patchCard</a>
</li>
<li data-group="Default" data-name="ping" class="">
<a href="#api-Default-ping">ping</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="postSharing" class="">
<a href="#api-Default-postSharing">postSharing</a>
</li>
<li data-group="Default" data-name="regenerateSignupToken" class="">
<a href="#api-Default-regenerateSignupToken">regenerateSignupToken</a>
</li>
<li data-group="Default" data-name="register" class="">
<a href="#api-Default-register">register</a>
</li>
<li data-group="Default" data-name="searchAllBoards" class="">
<a href="#api-Default-searchAllBoards">searchAllBoards</a>
</li>
<li data-group="Default" data-name="searchBoards" class="">
<a href="#api-Default-searchBoards">searchBoards</a>
</li>
<li data-group="Default" data-name="searchLinkableBoards" class="">
<a href="#api-Default-searchLinkableBoards">searchLinkableBoards</a>
</li>
<li data-group="Default" data-name="searchMyChannels" class="">
<a href="#api-Default-searchMyChannels">searchMyChannels</a>
</li>
<li data-group="Default" data-name="undeleteBlock" class="">
<a href="#api-Default-undeleteBlock">undeleteBlock</a>
</li>
<li data-group="Default" data-name="undeleteBoard" class="">
<a href="#api-Default-undeleteBoard">undeleteBoard</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="updateBlocks" class="">
<a href="#api-Default-updateBlocks">updateBlocks</a>
</li>
<li data-group="Default" data-name="updateCategory" class="">
<a href="#api-Default-updateCategory">updateCategory</a>
</li>
<li data-group="Default" data-name="updateCategoryBoard" class="">
<a href="#api-Default-updateCategoryBoard">updateCategoryBoard</a>
</li>
<li data-group="Default" data-name="updateMember" class="">
<a href="#api-Default-updateMember">updateMember</a>
</li>
<li data-group="Default" data-name="updateUserConfig" class="">
<a href="#api-Default-updateUserConfig">updateUserConfig</a>
</li>
2021-02-17 21:29:20 +02:00
<li data-group="Default" data-name="uploadFile" class="">
<a href="#api-Default-uploadFile">uploadFile</a>
</li>
</ul>
</nav>
</div>
<div id="content">
<div id="project">
<div class="pull-left">
<h1>Focalboard Server</h1>
2021-02-17 21:29:20 +02:00
</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: 2.0.0</div>
2021-02-17 21:29:20 +02:00
<hr>
<div id="app-description" class="app-desc">
Focalboard Server
2021-02-17 21:29:20 +02:00
</div>
</div>
</div>
<div id="sections">
<section id="api-Default">
<h1>Default</h1>
<div id="api-Default-addMember">
<article id="api-Default-addMember-0" data-group="User" data-name="addMember" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>addMember</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Adds a new member to a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/members</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-addMember-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-addMember-0-java">Java</a></li>
<li class=""><a href="#examples-Default-addMember-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-addMember-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-addMember-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-addMember-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-addMember-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-addMember-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-addMember-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-addMember-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-addMember-0-python">Python</a></li>
<li class=""><a href="#examples-Default-addMember-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-addMember-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/members" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
Object result = apiInstance.addMember(boardID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addMember");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
Object result = apiInstance.addMember(boardID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addMember");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-addMember-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-addMember-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
Object *body = Object; //
[apiInstance addMemberWith:boardID
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.addMember(boardID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-addMember-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-addMember-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class addMemberExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var body = Object; // Object |
try {
Object result = apiInstance.addMember(boardID, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.addMember: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$body = Object; // Object |
try {
$result = $api_instance->addMember($boardID, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addMember: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->addMember(boardID => $boardID, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->addMember: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
body = Object # Object |
try:
api_response = api_instance.add_member(boardID, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->addMember: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-addMember-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.addMember(boardID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_addMember_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">membership to replace the current one with</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "membership to replace the current one with",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BoardMember"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_addMember_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_addMember_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-addMember-title-200"></h3>
<p id="examples-Default-addMember-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-addMember-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-addMember-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-addMember-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-addMember-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-addMember-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-addMember-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-addMember-200-schema">
<div id="responses-Default-addMember-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardMember stores the information of the membership of a user on a board, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-addMember-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-addMember-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-addMember-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-addMember-title-404"></h3>
<p id="examples-Default-addMember-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-addMember-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-addMember-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-addMember-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-addMember-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-addMember-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-addMember-title-default"></h3>
<p id="examples-Default-addMember-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-addMember-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-addMember-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-addMember-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-addMember-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-addMember-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-addMember-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-addMember-default-schema">
<div id="responses-Default-addMember-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-addMember-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-addMember-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-addMember-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-archiveExportBoard">
<article id="api-Default-archiveExportBoard-0" data-group="User" data-name="archiveExportBoard" data-version="0">
<div class="pull-left">
<h1>archiveExportBoard</h1>
<p>Exports an archive of all blocks for one boards.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/archive/export</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-archiveExportBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-archiveExportBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-archiveExportBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-archiveExportBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-archiveExportBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-archiveExportBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-archiveExportBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/archive/export"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Id of board to export
try {
apiInstance.archiveExportBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveExportBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Id of board to export
try {
apiInstance.archiveExportBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveExportBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Id of board to export (default to null)
// Exports an archive of all blocks for one boards.
[apiInstance archiveExportBoardWith:boardID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Id of board to export
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.archiveExportBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-archiveExportBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class archiveExportBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Id of board to export (default to null)
try {
// Exports an archive of all blocks for one boards.
apiInstance.archiveExportBoard(boardID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.archiveExportBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Id of board to export
try {
$api_instance->archiveExportBoard($boardID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->archiveExportBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Id of board to export
eval {
$api_instance->archiveExportBoard(boardID => $boardID);
};
if ($@) {
warn "Exception when calling DefaultApi->archiveExportBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Id of board to export (default to null)
try:
# Exports an archive of all blocks for one boards.
api_instance.archive_export_board(boardID)
except ApiException as e:
print("Exception when calling DefaultApi->archiveExportBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.archiveExportBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_archiveExportBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Id of board to export
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-archiveExportBoard-title-200"></h3>
<p id="examples-Default-archiveExportBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-archiveExportBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-archiveExportBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-archiveExportBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-archiveExportBoard-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-archiveExportBoard-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-archiveExportBoard-title-default"></h3>
<p id="examples-Default-archiveExportBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-archiveExportBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-archiveExportBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-archiveExportBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-archiveExportBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-archiveExportBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-archiveExportBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-archiveExportBoard-default-schema">
<div id="responses-Default-archiveExportBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-archiveExportBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-archiveExportBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-archiveExportBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-archiveExportTeam">
<article id="api-Default-archiveExportTeam-0" data-group="User" data-name="archiveExportTeam" data-version="0">
<div class="pull-left">
<h1>archiveExportTeam</h1>
<p>Exports an archive of all blocks for all the boards in a team.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/archive/export</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-archiveExportTeam-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-java">Java</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-archiveExportTeam-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-archiveExportTeam-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-archiveExportTeam-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-archiveExportTeam-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-python">Python</a></li>
<li class=""><a href="#examples-Default-archiveExportTeam-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-archiveExportTeam-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/archive/export"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Id of team
try {
apiInstance.archiveExportTeam(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveExportTeam");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Id of team
try {
apiInstance.archiveExportTeam(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveExportTeam");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Id of team (default to null)
// Exports an archive of all blocks for all the boards in a team.
[apiInstance archiveExportTeamWith:teamID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Id of team
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.archiveExportTeam(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-archiveExportTeam-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class archiveExportTeamExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Id of team (default to null)
try {
// Exports an archive of all blocks for all the boards in a team.
apiInstance.archiveExportTeam(teamID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.archiveExportTeam: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Id of team
try {
$api_instance->archiveExportTeam($teamID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->archiveExportTeam: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Id of team
eval {
$api_instance->archiveExportTeam(teamID => $teamID);
};
if ($@) {
warn "Exception when calling DefaultApi->archiveExportTeam: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Id of team (default to null)
try:
# Exports an archive of all blocks for all the boards in a team.
api_instance.archive_export_team(teamID)
except ApiException as e:
print("Exception when calling DefaultApi->archiveExportTeam: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveExportTeam-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.archiveExportTeam(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_archiveExportTeam_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Id of team
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-archiveExportTeam-title-200"></h3>
<p id="examples-Default-archiveExportTeam-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-archiveExportTeam-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-archiveExportTeam-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-archiveExportTeam-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-archiveExportTeam-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-archiveExportTeam-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-archiveExportTeam-title-default"></h3>
<p id="examples-Default-archiveExportTeam-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-archiveExportTeam-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-archiveExportTeam-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-archiveExportTeam-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-archiveExportTeam-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-archiveExportTeam-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-archiveExportTeam-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-archiveExportTeam-default-schema">
<div id="responses-Default-archiveExportTeam-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-archiveExportTeam-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-archiveExportTeam-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-archiveExportTeam-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-archiveImport">
<article id="api-Default-archiveImport-0" data-group="User" data-name="archiveImport" data-version="0">
<div class="pull-left">
<h1>archiveImport</h1>
<p>Import an archive of boards.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/teams/{teamID}/archive/import</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-archiveImport-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-java">Java</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-archiveImport-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-archiveImport-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-archiveImport-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-archiveImport-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-python">Python</a></li>
<li class=""><a href="#examples-Default-archiveImport-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-archiveImport-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: multipart/form-data" \
"http://localhost/api/v2/teams/{teamID}/archive/import"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
File file = BINARY_DATA_HERE; // File | archive file to import
try {
apiInstance.archiveImport(teamID, file);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveImport");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
File file = BINARY_DATA_HERE; // File | archive file to import
try {
apiInstance.archiveImport(teamID, file);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#archiveImport");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-archiveImport-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-archiveImport-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
File *file = BINARY_DATA_HERE; // archive file to import (default to null)
// Import an archive of boards.
[apiInstance archiveImportWith:teamID
file:file
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var file = BINARY_DATA_HERE; // {File} archive file to import
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.archiveImport(teamID, file, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-archiveImport-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-archiveImport-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class archiveImportExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var file = BINARY_DATA_HERE; // File | archive file to import (default to null)
try {
// Import an archive of boards.
apiInstance.archiveImport(teamID, file);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.archiveImport: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$file = BINARY_DATA_HERE; // File | archive file to import
try {
$api_instance->archiveImport($teamID, $file);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->archiveImport: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $file = BINARY_DATA_HERE; # File | archive file to import
eval {
$api_instance->archiveImport(teamID => $teamID, file => $file);
};
if ($@) {
warn "Exception when calling DefaultApi->archiveImport: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
file = BINARY_DATA_HERE # File | archive file to import (default to null)
try:
# Import an archive of boards.
api_instance.archive_import(teamID, file)
except ApiException as e:
print("Exception when calling DefaultApi->archiveImport: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-archiveImport-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let file = BINARY_DATA_HERE; // File
let mut context = DefaultApi::Context::default();
let result = client.archiveImport(teamID, file, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_archiveImport_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Form parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">file*</td>
<td>
<div id="d2e199_archiveImport_file">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
File
</span>
<span class="format">
(binary)
</span>
<div class="inner description marked">
archive file to import
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-archiveImport-title-200"></h3>
<p id="examples-Default-archiveImport-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-archiveImport-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-archiveImport-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-archiveImport-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-archiveImport-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-archiveImport-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-archiveImport-title-default"></h3>
<p id="examples-Default-archiveImport-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-archiveImport-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-archiveImport-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-archiveImport-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-archiveImport-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-archiveImport-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-archiveImport-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-archiveImport-default-schema">
<div id="responses-Default-archiveImport-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-archiveImport-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-archiveImport-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-archiveImport-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-changePassword">
<article id="api-Default-changePassword-0" data-group="User" data-name="changePassword" data-version="0">
<div class="pull-left">
<h1>changePassword</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Change a user&#39;s password</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/users/{userID}/changepassword</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-changePassword-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-changePassword-0-java">Java</a></li>
<li class=""><a href="#examples-Default-changePassword-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-changePassword-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-changePassword-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-changePassword-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-changePassword-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-changePassword-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-changePassword-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-changePassword-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-changePassword-0-python">Python</a></li>
<li class=""><a href="#examples-Default-changePassword-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-changePassword-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/users/{userID}/changepassword" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
Object body = Object; // Object |
try {
apiInstance.changePassword(userID, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#changePassword");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
Object body = Object; // Object |
try {
apiInstance.changePassword(userID, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#changePassword");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-changePassword-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-changePassword-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userID = userID_example; // User ID (default to null)
Object *body = Object; //
[apiInstance changePasswordWith:userID
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var userID = userID_example; // {String} User ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.changePassword(userID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-changePassword-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-changePassword-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class changePasswordExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var userID = userID_example; // String | User ID (default to null)
var body = Object; // Object |
try {
apiInstance.changePassword(userID, body);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.changePassword: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userID = userID_example; // String | User ID
$body = Object; // Object |
try {
$api_instance->changePassword($userID, $body);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->changePassword: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userID = userID_example; # String | User ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
$api_instance->changePassword(userID => $userID, body => $body);
};
if ($@) {
warn "Exception when calling DefaultApi->changePassword: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userID = userID_example # String | User ID (default to null)
body = Object # Object |
try:
api_instance.change_password(userID, body)
except ApiException as e:
print("Exception when calling DefaultApi->changePassword: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-changePassword-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let userID = userID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.changePassword(userID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">userID*</td>
<td>
<div id="d2e199_changePassword_userID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">Change password request</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Change password request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ChangePasswordRequest"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_changePassword_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_changePassword_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-changePassword-title-200"></h3>
<p id="examples-Default-changePassword-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-changePassword-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-changePassword-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-changePassword-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-changePassword-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-changePassword-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-changePassword-title-400"></h3>
<p id="examples-Default-changePassword-description-400" class="marked"></p>
<script>
var responseDefault400_description = `invalid request`;
var responseDefault400_description_break = responseDefault400_description.indexOf('\n');
if (responseDefault400_description_break == -1) {
$("#examples-Default-changePassword-title-400").text("Status: 400 - " + responseDefault400_description);
} else {
$("#examples-Default-changePassword-title-400").text("Status: 400 - " + responseDefault400_description.substring(0, responseDefault400_description_break));
$("#examples-Default-changePassword-description-400").html(responseDefault400_description.substring(responseDefault400_description_break));
}
</script>
<ul id="responses-detail-Default-changePassword-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-changePassword-400-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-changePassword-400-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-changePassword-400-schema">
<div id="responses-Default-changePassword-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-changePassword-400-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-changePassword-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-changePassword-400-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-changePassword-title-500"></h3>
<p id="examples-Default-changePassword-description-500" class="marked"></p>
<script>
var responseDefault500_description = `internal error`;
var responseDefault500_description_break = responseDefault500_description.indexOf('\n');
if (responseDefault500_description_break == -1) {
$("#examples-Default-changePassword-title-500").text("Status: 500 - " + responseDefault500_description);
} else {
$("#examples-Default-changePassword-title-500").text("Status: 500 - " + responseDefault500_description.substring(0, responseDefault500_description_break));
$("#examples-Default-changePassword-description-500").html(responseDefault500_description.substring(responseDefault500_description_break));
}
</script>
<ul id="responses-detail-Default-changePassword-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-changePassword-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-changePassword-500-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-changePassword-500-schema">
<div id="responses-Default-changePassword-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-changePassword-500-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-changePassword-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-changePassword-500-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-cloudLimits">
<article id="api-Default-cloudLimits-0" data-group="User" data-name="cloudLimits" data-version="0">
<div class="pull-left">
<h1>cloudLimits</h1>
<p>Fetches the cloud limits of the server.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/limits</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-cloudLimits-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-java">Java</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-cloudLimits-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-cloudLimits-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-cloudLimits-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-cloudLimits-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-python">Python</a></li>
<li class=""><a href="#examples-Default-cloudLimits-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-cloudLimits-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/limits"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.cloudLimits();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cloudLimits");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.cloudLimits();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cloudLimits");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-cloudLimits-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-cloudLimits-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Fetches the cloud limits of the server.
[apiInstance cloudLimitsWithCompletionHandler:
^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.cloudLimits(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-cloudLimits-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-cloudLimits-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class cloudLimitsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
// Fetches the cloud limits of the server.
Object result = apiInstance.cloudLimits();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.cloudLimits: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->cloudLimits();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->cloudLimits: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->cloudLimits();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->cloudLimits: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
# Fetches the cloud limits of the server.
api_response = api_instance.cloud_limits()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->cloudLimits: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-cloudLimits-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.cloudLimits(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-cloudLimits-title-200"></h3>
<p id="examples-Default-cloudLimits-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-cloudLimits-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-cloudLimits-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-cloudLimits-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-cloudLimits-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-cloudLimits-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-cloudLimits-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-cloudLimits-200-schema">
<div id="responses-Default-cloudLimits-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardsCloudLimits is the representation of the limits for the
Boards server, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-cloudLimits-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-cloudLimits-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-cloudLimits-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-cloudLimits-title-default"></h3>
<p id="examples-Default-cloudLimits-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-cloudLimits-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-cloudLimits-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-cloudLimits-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-cloudLimits-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-cloudLimits-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-cloudLimits-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-cloudLimits-default-schema">
<div id="responses-Default-cloudLimits-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-cloudLimits-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-cloudLimits-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-cloudLimits-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-createBoard">
<article id="api-Default-createBoard-0" data-group="User" data-name="createBoard" data-version="0">
<div class="pull-left">
<h1>createBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Creates a new board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards</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-createBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-createBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-createBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-createBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-createBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-createBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-createBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-createBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-createBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-createBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-createBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-createBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-createBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.createBoard(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.createBoard(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-createBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-createBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
[apiInstance createBoardWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createBoard(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-createBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-createBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class createBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
Object result = apiInstance.createBoard(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.createBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$result = $api_instance->createBoard($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->createBoard(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->createBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
api_response = api_instance.create_board(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->createBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.createBoard(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">the board to create</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the board to create",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Board"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_createBoard_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_createBoard_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-createBoard-title-200"></h3>
<p id="examples-Default-createBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-createBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-createBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-createBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-createBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createBoard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createBoard-200-schema">
<div id="responses-Default-createBoard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Board groups a set of blocks and its layout, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createBoard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createBoard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-createBoard-title-default"></h3>
<p id="examples-Default-createBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-createBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-createBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-createBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-createBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createBoard-default-schema">
<div id="responses-Default-createBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-createCard">
<article id="api-Default-createCard-0" data-group="User" data-name="createCard" data-version="0">
<div class="pull-left">
<h1>createCard</h1>
<p>Creates a new card for the specified board.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/cards</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-createCard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-createCard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-createCard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-createCard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-createCard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-createCard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-createCard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-createCard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-createCard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-createCard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-createCard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-createCard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-createCard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/cards?disable_notify=" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data inserting)
try {
Object result = apiInstance.createCard(boardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createCard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data inserting)
try {
Object result = apiInstance.createCard(boardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createCard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-createCard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-createCard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
Object *body = Object; //
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk data inserting) (optional) (default to null)
// Creates a new card for the specified board.
[apiInstance createCardWith:boardID
body:body
disableNotify:disableNotify
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var body = Object; // {Object}
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk data inserting)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createCard(boardID, body, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-createCard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-createCard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class createCardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var body = Object; // Object |
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk data inserting) (optional) (default to null)
try {
// Creates a new card for the specified board.
Object result = apiInstance.createCard(boardID, body, disableNotify);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.createCard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$body = Object; // Object |
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data inserting)
try {
$result = $api_instance->createCard($boardID, $body, $disableNotify);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createCard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk data inserting)
eval {
my $result = $api_instance->createCard(boardID => $boardID, body => $body, disableNotify => $disableNotify);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->createCard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
body = Object # Object |
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk data inserting) (optional) (default to null)
try:
# Creates a new card for the specified board.
api_response = api_instance.create_card(boardID, body, disableNotify=disableNotify)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->createCard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = Object; // Object
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.createCard(boardID, body, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_createCard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">the card to create</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the card to create",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Card"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_createCard_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_createCard_body"></div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_createCard_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk data inserting)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-createCard-title-200"></h3>
<p id="examples-Default-createCard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-createCard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-createCard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-createCard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-createCard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createCard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createCard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createCard-200-schema">
<div id="responses-Default-createCard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {title=Card represents a group of content blocks and properties., x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createCard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createCard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createCard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-createCard-title-default"></h3>
<p id="examples-Default-createCard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-createCard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-createCard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-createCard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-createCard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createCard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createCard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createCard-default-schema">
<div id="responses-Default-createCard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createCard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createCard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createCard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-createCategory">
<article id="api-Default-createCategory-0" data-group="User" data-name="createCategory" data-version="0">
<div class="pull-left">
<h1>createCategory</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Create a category for boards</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/teams/{teamID}/categories</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-createCategory-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-createCategory-0-java">Java</a></li>
<li class=""><a href="#examples-Default-createCategory-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-createCategory-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-createCategory-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-createCategory-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-createCategory-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-createCategory-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-createCategory-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-createCategory-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-createCategory-0-python">Python</a></li>
<li class=""><a href="#examples-Default-createCategory-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-createCategory-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/teams/{teamID}/categories" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
Object body = Object; // Object |
try {
Object result = apiInstance.createCategory(teamID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createCategory");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
Object body = Object; // Object |
try {
Object result = apiInstance.createCategory(teamID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createCategory");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-createCategory-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-createCategory-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
Object *body = Object; //
[apiInstance createCategoryWith:teamID
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createCategory(teamID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-createCategory-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-createCategory-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class createCategoryExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var body = Object; // Object |
try {
Object result = apiInstance.createCategory(teamID, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.createCategory: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$body = Object; // Object |
try {
$result = $api_instance->createCategory($teamID, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createCategory: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->createCategory(teamID => $teamID, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->createCategory: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
body = Object # Object |
try:
api_response = api_instance.create_category(teamID, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->createCategory: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createCategory-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.createCategory(teamID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_createCategory_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">category to create</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "category to create",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Category"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_createCategory_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_createCategory_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-createCategory-title-200"></h3>
<p id="examples-Default-createCategory-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-createCategory-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-createCategory-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-createCategory-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-createCategory-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createCategory-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createCategory-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createCategory-200-schema">
<div id="responses-Default-createCategory-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Category is a board category, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createCategory-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createCategory-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createCategory-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-createCategory-title-default"></h3>
<p id="examples-Default-createCategory-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-createCategory-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-createCategory-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-createCategory-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-createCategory-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createCategory-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createCategory-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createCategory-default-schema">
<div id="responses-Default-createCategory-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createCategory-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createCategory-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createCategory-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-createSubscription">
<article id="api-Default-createSubscription-0" data-group="User" data-name="createSubscription" data-version="0">
<div class="pull-left">
<h1>createSubscription</h1>
<p>Creates a subscription to a block for a user. The user will receive change notifications for the block.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/subscriptions</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-createSubscription-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-java">Java</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-createSubscription-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-createSubscription-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-createSubscription-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-createSubscription-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-python">Python</a></li>
<li class=""><a href="#examples-Default-createSubscription-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-createSubscription-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/subscriptions" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.createSubscription(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createSubscription");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.createSubscription(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createSubscription");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-createSubscription-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-createSubscription-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
// Creates a subscription to a block for a user. The user will receive change notifications for the block.
[apiInstance createSubscriptionWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createSubscription(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-createSubscription-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-createSubscription-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class createSubscriptionExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
// Creates a subscription to a block for a user. The user will receive change notifications for the block.
Object result = apiInstance.createSubscription(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.createSubscription: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$result = $api_instance->createSubscription($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->createSubscription(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->createSubscription: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
# Creates a subscription to a block for a user. The user will receive change notifications for the block.
api_response = api_instance.create_subscription(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->createSubscription: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-createSubscription-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.createSubscription(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">subscription definition</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "subscription definition",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Subscription"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_createSubscription_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_createSubscription_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-createSubscription-title-200"></h3>
<p id="examples-Default-createSubscription-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-createSubscription-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-createSubscription-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-createSubscription-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-createSubscription-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createSubscription-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createSubscription-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createSubscription-200-schema">
<div id="responses-Default-createSubscription-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=User is a user, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createSubscription-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createSubscription-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createSubscription-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-createSubscription-title-default"></h3>
<p id="examples-Default-createSubscription-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-createSubscription-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-createSubscription-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-createSubscription-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-createSubscription-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-createSubscription-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-createSubscription-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-createSubscription-default-schema">
<div id="responses-Default-createSubscription-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-createSubscription-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-createSubscription-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-createSubscription-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteBlock">
<article id="api-Default-deleteBlock-0" data-group="User" data-name="deleteBlock" data-version="0">
<div class="pull-left">
<h1>deleteBlock</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Deletes a block</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/boards/{boardID}/blocks/{blockID}</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-deleteBlock-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteBlock-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteBlock-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteBlock-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteBlock-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteBlock-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteBlock-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks/{blockID}?disable_notify="
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to delete
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk deletion)
try {
apiInstance.deleteBlock(boardID, blockID, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBlock");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to delete
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk deletion)
try {
apiInstance.deleteBlock(boardID, blockID, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBlock");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteBlock-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteBlock-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *blockID = blockID_example; // ID of block to delete (default to null)
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk deletion) (optional) (default to null)
[apiInstance deleteBlockWith:boardID
blockID:blockID
disableNotify:disableNotify
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var blockID = blockID_example; // {String} ID of block to delete
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk deletion)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteBlock(boardID, blockID, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteBlock-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteBlock-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteBlockExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var blockID = blockID_example; // String | ID of block to delete (default to null)
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk deletion) (optional) (default to null)
try {
apiInstance.deleteBlock(boardID, blockID, disableNotify);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteBlock: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$blockID = blockID_example; // String | ID of block to delete
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk deletion)
try {
$api_instance->deleteBlock($boardID, $blockID, $disableNotify);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteBlock: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $blockID = blockID_example; # String | ID of block to delete
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk deletion)
eval {
$api_instance->deleteBlock(boardID => $boardID, blockID => $blockID, disableNotify => $disableNotify);
};
if ($@) {
warn "Exception when calling DefaultApi->deleteBlock: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
blockID = blockID_example # String | ID of block to delete (default to null)
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk deletion) (optional) (default to null)
try:
api_instance.delete_block(boardID, blockID, disableNotify=disableNotify)
except ApiException as e:
print("Exception when calling DefaultApi->deleteBlock: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBlock-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let blockID = blockID_example; // String
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.deleteBlock(boardID, blockID, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_deleteBlock_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">blockID*</td>
<td>
<div id="d2e199_deleteBlock_blockID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of block to delete
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_deleteBlock_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk deletion)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-deleteBlock-title-200"></h3>
<p id="examples-Default-deleteBlock-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteBlock-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-deleteBlock-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteBlock-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBlock-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteBlock-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteBlock-title-404"></h3>
<p id="examples-Default-deleteBlock-description-404" class="marked"></p>
<script>
var responseDefault404_description = `block not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-deleteBlock-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-deleteBlock-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-deleteBlock-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBlock-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteBlock-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteBlock-title-default"></h3>
<p id="examples-Default-deleteBlock-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteBlock-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-deleteBlock-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteBlock-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBlock-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteBlock-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteBlock-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteBlock-default-schema">
<div id="responses-Default-deleteBlock-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteBlock-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteBlock-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteBlock-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteBoard">
<article id="api-Default-deleteBoard-0" data-group="User" data-name="deleteBoard" data-version="0">
<div class="pull-left">
<h1>deleteBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Removes a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/boards/{boardID}</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-deleteBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
apiInstance.deleteBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
apiInstance.deleteBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
[apiInstance deleteBoardWith:boardID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
try {
apiInstance.deleteBoard(boardID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
try {
$api_instance->deleteBoard($boardID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
eval {
$api_instance->deleteBoard(boardID => $boardID);
};
if ($@) {
warn "Exception when calling DefaultApi->deleteBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
try:
api_instance.delete_board(boardID)
except ApiException as e:
print("Exception when calling DefaultApi->deleteBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.deleteBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_deleteBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-deleteBoard-title-200"></h3>
<p id="examples-Default-deleteBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-deleteBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBoard-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteBoard-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteBoard-title-404"></h3>
<p id="examples-Default-deleteBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-deleteBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-deleteBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-deleteBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteBoard-title-default"></h3>
<p id="examples-Default-deleteBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-deleteBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteBoard-default-schema">
<div id="responses-Default-deleteBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteBoardsAndBlocks">
<article id="api-Default-deleteBoardsAndBlocks-0" data-group="User" data-name="deleteBoardsAndBlocks" data-version="0">
<div class="pull-left">
<h1>deleteBoardsAndBlocks</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Deletes boards and blocks</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/boards-and-blocks</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-deleteBoardsAndBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteBoardsAndBlocks-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteBoardsAndBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards-and-blocks" \
-d ''
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteBoardsAndBlocks(body);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBoardsAndBlocks");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteBoardsAndBlocks(body);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBoardsAndBlocks");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
2021-02-17 21:29:20 +02:00
[apiInstance deleteBoardsAndBlocksWith:body
completionHandler: ^(NSError* error) {
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
2021-02-17 21:29:20 +02:00
}
};
api.deleteBoardsAndBlocks(body, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteBoardsAndBlocksExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteBoardsAndBlocks(body);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteBoardsAndBlocks: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
$api_instance->deleteBoardsAndBlocks($body);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteBoardsAndBlocks: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
2021-02-17 21:29:20 +02:00
eval {
$api_instance->deleteBoardsAndBlocks(body => $body);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->deleteBoardsAndBlocks: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
2021-02-17 21:29:20 +02:00
try:
api_instance.delete_boards_and_blocks(body)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->deleteBoardsAndBlocks: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteBoardsAndBlocks-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.deleteBoardsAndBlocks(body, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<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>
<p class="marked">the boards and blocks to delete</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the boards and blocks to delete",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/DeleteBoardsAndBlocks"
}
}
},
"required" : true
};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
2021-02-17 21:29:20 +02:00
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_deleteBoardsAndBlocks_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_deleteBoardsAndBlocks_body"></div>
</td>
</tr>
2021-02-17 21:29:20 +02:00
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-deleteBoardsAndBlocks-title-200"></h3>
<p id="examples-Default-deleteBoardsAndBlocks-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-deleteBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteBoardsAndBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-deleteBoardsAndBlocks-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteBoardsAndBlocks-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteBoardsAndBlocks-title-default"></h3>
<p id="examples-Default-deleteBoardsAndBlocks-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-deleteBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteBoardsAndBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-deleteBoardsAndBlocks-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteBoardsAndBlocks-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteBoardsAndBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteBoardsAndBlocks-default-schema">
<div id="responses-Default-deleteBoardsAndBlocks-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteBoardsAndBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteBoardsAndBlocks-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteBoardsAndBlocks-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteCategory">
<article id="api-Default-deleteCategory-0" data-group="User" data-name="deleteCategory" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>deleteCategory</h1>
<p></p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Delete a category</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/teams/{teamID}/categories/{categoryID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-deleteCategory-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteCategory-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteCategory-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteCategory-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteCategory-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteCategory-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteCategory-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/categories/{categoryID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteCategory(teamID, categoryID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteCategory");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteCategory(teamID, categoryID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteCategory");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteCategory-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteCategory-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *categoryID = categoryID_example; // Category ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance deleteCategoryWith:teamID
categoryID:categoryID
completionHandler: ^(NSError* error) {
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var categoryID = categoryID_example; // {String} Category ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
2021-02-17 21:29:20 +02:00
}
};
api.deleteCategory(teamID, categoryID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteCategory-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteCategory-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteCategoryExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var categoryID = categoryID_example; // String | Category ID (default to null)
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteCategory(teamID, categoryID);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteCategory: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$categoryID = categoryID_example; // String | Category ID
2021-02-17 21:29:20 +02:00
try {
$api_instance->deleteCategory($teamID, $categoryID);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteCategory: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $categoryID = categoryID_example; # String | Category ID
2021-02-17 21:29:20 +02:00
eval {
$api_instance->deleteCategory(teamID => $teamID, categoryID => $categoryID);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->deleteCategory: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
categoryID = categoryID_example # String | Category ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_instance.delete_category(teamID, categoryID)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->deleteCategory: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteCategory-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let categoryID = categoryID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.deleteCategory(teamID, categoryID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
2021-03-26 20:01:54 +02:00
<td>
<div id="d2e199_deleteCategory_teamID">
2021-03-26 20:01:54 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">categoryID*</td>
<td>
<div id="d2e199_deleteCategory_categoryID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Category ID
2021-03-26 20:01:54 +02:00
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-deleteCategory-title-200"></h3>
<p id="examples-Default-deleteCategory-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteCategory-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-deleteCategory-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteCategory-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-deleteCategory-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteCategory-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteCategory-title-default"></h3>
<p id="examples-Default-deleteCategory-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteCategory-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-deleteCategory-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteCategory-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-deleteCategory-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteCategory-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteCategory-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteCategory-default-schema">
<div id="responses-Default-deleteCategory-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteCategory-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteCategory-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteCategory-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteMember">
<article id="api-Default-deleteMember-0" data-group="User" data-name="deleteMember" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>deleteMember</h1>
<p></p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Deletes a member from a board</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/boards/{boardID}/members/{userID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-deleteMember-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteMember-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteMember-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteMember-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteMember-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteMember-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteMember-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/members/{userID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String userID = userID_example; // String | User ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteMember(boardID, userID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteMember");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String userID = userID_example; // String | User ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteMember(boardID, userID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteMember");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteMember-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteMember-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *userID = userID_example; // User ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance deleteMemberWith:boardID
userID:userID
completionHandler: ^(NSError* error) {
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var userID = userID_example; // {String} User ID
2021-03-26 20:01:54 +02:00
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
2021-02-17 21:29:20 +02:00
}
};
api.deleteMember(boardID, userID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteMember-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteMember-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteMemberExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var userID = userID_example; // String | User ID (default to null)
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteMember(boardID, userID);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteMember: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$userID = userID_example; // String | User ID
2021-02-17 21:29:20 +02:00
try {
$api_instance->deleteMember($boardID, $userID);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteMember: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $userID = userID_example; # String | User ID
2021-02-17 21:29:20 +02:00
eval {
$api_instance->deleteMember(boardID => $boardID, userID => $userID);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->deleteMember: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
userID = userID_example # String | User ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_instance.delete_member(boardID, userID)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->deleteMember: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteMember-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let userID = userID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.deleteMember(boardID, userID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
2021-03-26 20:01:54 +02:00
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_deleteMember_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">userID*</td>
2021-03-26 20:01:54 +02:00
<td>
<div id="d2e199_deleteMember_userID">
2021-03-26 20:01:54 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
2021-03-26 20:01:54 +02:00
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-deleteMember-title-200"></h3>
<p id="examples-Default-deleteMember-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteMember-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-deleteMember-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteMember-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-deleteMember-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteMember-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteMember-title-404"></h3>
<p id="examples-Default-deleteMember-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-deleteMember-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-deleteMember-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-deleteMember-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-deleteMember-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-deleteMember-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-deleteMember-title-default"></h3>
<p id="examples-Default-deleteMember-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteMember-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-deleteMember-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteMember-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-deleteMember-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteMember-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteMember-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteMember-default-schema">
<div id="responses-Default-deleteMember-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteMember-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteMember-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteMember-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-deleteSubscription">
<article id="api-Default-deleteSubscription-0" data-group="User" data-name="deleteSubscription" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>deleteSubscription</h1>
<p>Deletes a subscription a user has for a a block. The user will no longer receive change notifications for the block.</p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/subscriptions/{blockID}/{subscriberID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-deleteSubscription-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-java">Java</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-deleteSubscription-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-deleteSubscription-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-deleteSubscription-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-deleteSubscription-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-python">Python</a></li>
<li class=""><a href="#examples-Default-deleteSubscription-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-deleteSubscription-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/subscriptions/{blockID}/{subscriberID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String blockID = blockID_example; // String | Block ID
String subscriberID = subscriberID_example; // String | Subscriber ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteSubscription(blockID, subscriberID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteSubscription");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String blockID = blockID_example; // String | Block ID
String subscriberID = subscriberID_example; // String | Subscriber ID
2021-02-17 21:29:20 +02:00
try {
apiInstance.deleteSubscription(blockID, subscriberID);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteSubscription");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-deleteSubscription-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-deleteSubscription-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *blockID = blockID_example; // Block ID (default to null)
String *subscriberID = subscriberID_example; // Subscriber ID (default to null)
2021-02-17 21:29:20 +02:00
// Deletes a subscription a user has for a a block. The user will no longer receive change notifications for the block.
[apiInstance deleteSubscriptionWith:blockID
subscriberID:subscriberID
completionHandler: ^(NSError* error) {
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var blockID = blockID_example; // {String} Block ID
var subscriberID = subscriberID_example; // {String} Subscriber ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
2021-02-17 21:29:20 +02:00
}
};
api.deleteSubscription(blockID, subscriberID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-deleteSubscription-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-deleteSubscription-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteSubscriptionExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var blockID = blockID_example; // String | Block ID (default to null)
var subscriberID = subscriberID_example; // String | Subscriber ID (default to null)
2021-02-17 21:29:20 +02:00
try {
// Deletes a subscription a user has for a a block. The user will no longer receive change notifications for the block.
apiInstance.deleteSubscription(blockID, subscriberID);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteSubscription: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$blockID = blockID_example; // String | Block ID
$subscriberID = subscriberID_example; // String | Subscriber ID
2021-02-17 21:29:20 +02:00
try {
$api_instance->deleteSubscription($blockID, $subscriberID);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $blockID = blockID_example; # String | Block ID
my $subscriberID = subscriberID_example; # String | Subscriber ID
2021-02-17 21:29:20 +02:00
eval {
$api_instance->deleteSubscription(blockID => $blockID, subscriberID => $subscriberID);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->deleteSubscription: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
blockID = blockID_example # String | Block ID (default to null)
subscriberID = subscriberID_example # String | Subscriber ID (default to null)
2021-02-17 21:29:20 +02:00
try:
# Deletes a subscription a user has for a a block. The user will no longer receive change notifications for the block.
api_instance.delete_subscription(blockID, subscriberID)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->deleteSubscription: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-deleteSubscription-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let blockID = blockID_example; // String
let subscriberID = subscriberID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.deleteSubscription(blockID, subscriberID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
2021-03-26 20:01:54 +02:00
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">blockID*</td>
2021-03-26 20:01:54 +02:00
<td>
<div id="d2e199_deleteSubscription_blockID">
2021-03-26 20:01:54 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Block ID
2021-03-26 20:01:54 +02:00
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">subscriberID*</td>
2021-02-17 21:29:20 +02:00
<td>
<div id="d2e199_deleteSubscription_subscriberID">
2021-02-17 21:29:20 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
2021-02-17 21:29:20 +02:00
</span>
<div class="inner description marked">
Subscriber ID
2021-02-17 21:29:20 +02:00
</div>
</div>
<div class="inner required">
Required
</div>
2021-02-17 21:29:20 +02:00
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-deleteSubscription-title-200"></h3>
<p id="examples-Default-deleteSubscription-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-deleteSubscription-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-deleteSubscription-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-deleteSubscription-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-deleteSubscription-200" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-deleteSubscription-200-wrapper" style='margin-bottom: 10px;'>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-deleteSubscription-title-default"></h3>
<p id="examples-Default-deleteSubscription-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-deleteSubscription-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-deleteSubscription-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-deleteSubscription-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-deleteSubscription-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-deleteSubscription-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-deleteSubscription-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-deleteSubscription-default-schema">
<div id="responses-Default-deleteSubscription-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-deleteSubscription-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-deleteSubscription-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-deleteSubscription-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-duplicateBlock">
<article id="api-Default-duplicateBlock-0" data-group="User" data-name="duplicateBlock" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>duplicateBlock</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the new created blocks</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/blocks/{blockID}/duplicate</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-duplicateBlock-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-java">Java</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-duplicateBlock-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-duplicateBlock-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-duplicateBlock-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-duplicateBlock-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-python">Python</a></li>
<li class=""><a href="#examples-Default-duplicateBlock-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-duplicateBlock-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks/{blockID}/duplicate"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | Block ID
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.duplicateBlock(boardID, blockID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#duplicateBlock");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | Block ID
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.duplicateBlock(boardID, blockID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#duplicateBlock");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-duplicateBlock-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-duplicateBlock-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *blockID = blockID_example; // Block ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance duplicateBlockWith:boardID
blockID:blockID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var blockID = blockID_example; // {String} Block ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.duplicateBlock(boardID, blockID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-duplicateBlock-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-duplicateBlock-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class duplicateBlockExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var blockID = blockID_example; // String | Block ID (default to null)
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.duplicateBlock(boardID, blockID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.duplicateBlock: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$blockID = blockID_example; // String | Block ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->duplicateBlock($boardID, $blockID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->duplicateBlock: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $blockID = blockID_example; # String | Block ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->duplicateBlock(boardID => $boardID, blockID => $blockID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->duplicateBlock: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
blockID = blockID_example # String | Block ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.duplicate_block(boardID, blockID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->duplicateBlock: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-duplicateBlock-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let blockID = blockID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.duplicateBlock(boardID, blockID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_duplicateBlock_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">blockID*</td>
<td>
<div id="d2e199_duplicateBlock_blockID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Block ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-duplicateBlock-title-200"></h3>
<p id="examples-Default-duplicateBlock-description-200" class="marked"></p>
<script>
2021-02-17 21:29:20 +02:00
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-duplicateBlock-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-duplicateBlock-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-duplicateBlock-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-duplicateBlock-200" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-duplicateBlock-200-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-duplicateBlock-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-duplicateBlock-200-schema">
<div id="responses-Default-duplicateBlock-schema-200" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = ;
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-duplicateBlock-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-duplicateBlock-schema-200');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-duplicateBlock-200-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
<h3 id="examples-Default-duplicateBlock-title-404"></h3>
<p id="examples-Default-duplicateBlock-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board or block not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-duplicateBlock-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-duplicateBlock-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-duplicateBlock-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-duplicateBlock-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-duplicateBlock-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-duplicateBlock-title-default"></h3>
<p id="examples-Default-duplicateBlock-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-duplicateBlock-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-duplicateBlock-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-duplicateBlock-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-duplicateBlock-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-duplicateBlock-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-duplicateBlock-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-duplicateBlock-default-schema">
<div id="responses-Default-duplicateBlock-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-duplicateBlock-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-duplicateBlock-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-duplicateBlock-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-duplicateBoard">
<article id="api-Default-duplicateBoard-0" data-group="User" data-name="duplicateBoard" data-version="0">
<div class="pull-left">
<h1>duplicateBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the new created board and all the blocks</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/duplicate</span></code></pre>
<p>
2021-02-17 21:29:20 +02:00
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-duplicateBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-duplicateBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-duplicateBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-duplicateBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-duplicateBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-duplicateBoard-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-duplicateBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/duplicate"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.duplicateBoard(boardID);
2021-02-17 21:29:20 +02:00
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#duplicateBoard");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.duplicateBoard(boardID);
2021-02-17 21:29:20 +02:00
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#duplicateBoard");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-duplicateBoard-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-duplicateBoard-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance duplicateBoardWith:boardID
completionHandler: ^(Object output, NSError* error) {
2021-02-17 21:29:20 +02:00
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.duplicateBoard(boardID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-duplicateBoard-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-duplicateBoard-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class duplicateBoardExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.duplicateBoard(boardID);
2021-02-17 21:29:20 +02:00
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.duplicateBoard: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->duplicateBoard($boardID);
2021-02-17 21:29:20 +02:00
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->duplicateBoard: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->duplicateBoard(boardID => $boardID);
2021-02-17 21:29:20 +02:00
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->duplicateBoard: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.duplicate_board(boardID)
2021-02-17 21:29:20 +02:00
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->duplicateBoard: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-duplicateBoard-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.duplicateBoard(boardID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_duplicateBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-duplicateBoard-title-200"></h3>
<p id="examples-Default-duplicateBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-duplicateBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-duplicateBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-duplicateBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-duplicateBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-duplicateBoard-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-duplicateBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-duplicateBoard-200-schema">
<div id="responses-Default-duplicateBoard-schema-200" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardsAndBlocks is used to operate over boards and blocks at the
same time, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-duplicateBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-duplicateBoard-schema-200');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-duplicateBoard-200-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
<h3 id="examples-Default-duplicateBoard-title-404"></h3>
<p id="examples-Default-duplicateBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-duplicateBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-duplicateBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-duplicateBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-duplicateBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-duplicateBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-duplicateBoard-title-default"></h3>
<p id="examples-Default-duplicateBoard-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-duplicateBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-duplicateBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-duplicateBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-duplicateBoard-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-duplicateBoard-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-duplicateBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-duplicateBoard-default-schema">
<div id="responses-Default-duplicateBoard-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-duplicateBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-duplicateBoard-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-duplicateBoard-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getBlocks">
<article id="api-Default-getBlocks-0" data-group="User" data-name="getBlocks" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getBlocks</h1>
<p></p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns blocks</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/blocks</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getBlocks-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks?parent_id=parentId_example&type=type_example"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String parentId = parentId_example; // String | ID of parent block, omit to specify all blocks
String type = type_example; // String | Type of blocks to return, omit to specify all types
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBlocks(boardID, parentId, type);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBlocks");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String parentId = parentId_example; // String | ID of parent block, omit to specify all blocks
String type = type_example; // String | Type of blocks to return, omit to specify all types
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBlocks(boardID, parentId, type);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBlocks");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getBlocks-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getBlocks-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *parentId = parentId_example; // ID of parent block, omit to specify all blocks (optional) (default to null)
String *type = type_example; // Type of blocks to return, omit to specify all types (optional) (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getBlocksWith:boardID
parentId:parentId
type:type
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var opts = {
'parentId': parentId_example, // {String} ID of parent block, omit to specify all blocks
'type': type_example // {String} Type of blocks to return, omit to specify all types
};
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getBlocks(boardID, opts, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getBlocks-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getBlocks-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getBlocksExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var parentId = parentId_example; // String | ID of parent block, omit to specify all blocks (optional) (default to null)
var type = type_example; // String | Type of blocks to return, omit to specify all types (optional) (default to null)
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBlocks(boardID, parentId, type);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getBlocks: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$parentId = parentId_example; // String | ID of parent block, omit to specify all blocks
$type = type_example; // String | Type of blocks to return, omit to specify all types
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getBlocks($boardID, $parentId, $type);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getBlocks: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $parentId = parentId_example; # String | ID of parent block, omit to specify all blocks
my $type = type_example; # String | Type of blocks to return, omit to specify all types
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getBlocks(boardID => $boardID, parentId => $parentId, type => $type);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getBlocks: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
parentId = parentId_example # String | ID of parent block, omit to specify all blocks (optional) (default to null)
type = type_example # String | Type of blocks to return, omit to specify all types (optional) (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_blocks(boardID, parentId=parentId, type=type)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getBlocks: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBlocks-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let parentId = parentId_example; // String
let type = type_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getBlocks(boardID, parentId, type, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getBlocks_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">parent_id</td>
<td>
<div id="d2e199_getBlocks_parentId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of parent block, omit to specify all blocks
</div>
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">type</td>
<td>
<div id="d2e199_getBlocks_type">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Type of blocks to return, omit to specify all types
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getBlocks-title-200"></h3>
<p id="examples-Default-getBlocks-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getBlocks-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBlocks-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-getBlocks-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBlocks-200-schema">
<div id="responses-Default-getBlocks-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBlocks-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBlocks-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBlocks-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-getBlocks-title-404"></h3>
<p id="examples-Default-getBlocks-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-getBlocks-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-getBlocks-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-getBlocks-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-getBlocks-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getBlocks-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getBlocks-title-default"></h3>
<p id="examples-Default-getBlocks-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBlocks-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBlocks-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBlocks-default-schema">
<div id="responses-Default-getBlocks-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBlocks-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBlocks-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getBoard">
<article id="api-Default-getBoard-0" data-group="User" data-name="getBoard" data-version="0">
<div class="pull-left">
<h1>getBoard</h1>
<p></p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns a board</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getBoard-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoard(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoard");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoard(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoard");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getBoard-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getBoard-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getBoardWith:boardID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getBoard(boardID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getBoard-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getBoard-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getBoardExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoard(boardID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getBoard: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getBoard($boardID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getBoard: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getBoard(boardID => $boardID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getBoard: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_board(boardID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getBoard: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoard-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getBoard(boardID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-03-26 20:01:54 +02:00
2021-02-17 21:29:20 +02:00
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getBoard-title-200"></h3>
<p id="examples-Default-getBoard-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getBoard-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoard-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
2021-02-17 21:29:20 +02:00
<div class="tab-content" id="responses-Default-getBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoard-200-schema">
<div id="responses-Default-getBoard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Board groups a set of blocks and its layout, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoard-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-getBoard-title-404"></h3>
<p id="examples-Default-getBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-getBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-getBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-getBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-getBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getBoard-title-default"></h3>
<p id="examples-Default-getBoard-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBoard-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoard-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoard-default-schema">
<div id="responses-Default-getBoard-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoard-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoard-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getBoardMetadata">
<article id="api-Default-getBoardMetadata-0" data-group="User" data-name="getBoardMetadata" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getBoardMetadata</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns a board&#39;s metadata</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/metadata</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getBoardMetadata-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getBoardMetadata-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getBoardMetadata-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getBoardMetadata-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getBoardMetadata-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getBoardMetadata-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getBoardMetadata-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/metadata"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoardMetadata(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoardMetadata");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoardMetadata(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoardMetadata");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getBoardMetadataWith:boardID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getBoardMetadata(boardID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getBoardMetadata-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getBoardMetadataExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getBoardMetadata(boardID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getBoardMetadata: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getBoardMetadata($boardID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getBoardMetadata: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getBoardMetadata(boardID => $boardID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getBoardMetadata: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_board_metadata(boardID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getBoardMetadata: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoardMetadata-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getBoardMetadata(boardID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getBoardMetadata_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getBoardMetadata-title-200"></h3>
<p id="examples-Default-getBoardMetadata-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getBoardMetadata-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoardMetadata-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getBoardMetadata-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
2021-02-17 21:29:20 +02:00
</script>
<ul id="responses-detail-Default-getBoardMetadata-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoardMetadata-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-getBoardMetadata-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoardMetadata-200-schema">
<div id="responses-Default-getBoardMetadata-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardMetadata contains metadata for a Board, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoardMetadata-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoardMetadata-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoardMetadata-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-getBoardMetadata-title-404"></h3>
<p id="examples-Default-getBoardMetadata-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-getBoardMetadata-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-getBoardMetadata-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-getBoardMetadata-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-getBoardMetadata-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getBoardMetadata-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getBoardMetadata-title-501"></h3>
<p id="examples-Default-getBoardMetadata-description-501" class="marked"></p>
<script>
var responseDefault501_description = `required license not found`;
var responseDefault501_description_break = responseDefault501_description.indexOf('\n');
if (responseDefault501_description_break == -1) {
$("#examples-Default-getBoardMetadata-title-501").text("Status: 501 - " + responseDefault501_description);
} else {
$("#examples-Default-getBoardMetadata-title-501").text("Status: 501 - " + responseDefault501_description.substring(0, responseDefault501_description_break));
$("#examples-Default-getBoardMetadata-description-501").html(responseDefault501_description.substring(responseDefault501_description_break));
}
</script>
<ul id="responses-detail-Default-getBoardMetadata-501" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getBoardMetadata-501-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getBoardMetadata-title-default"></h3>
<p id="examples-Default-getBoardMetadata-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getBoardMetadata-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoardMetadata-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getBoardMetadata-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBoardMetadata-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoardMetadata-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getBoardMetadata-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoardMetadata-default-schema">
<div id="responses-Default-getBoardMetadata-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoardMetadata-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoardMetadata-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoardMetadata-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getBoards">
<article id="api-Default-getBoards-0" data-group="User" data-name="getBoards" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getBoards</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns team boards</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/boards</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getBoards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getBoards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getBoards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getBoards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getBoards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getBoards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getBoards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getBoards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getBoards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getBoards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getBoards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getBoards-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getBoards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/boards"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBoards(teamID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoards");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBoards(teamID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBoards");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getBoards-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getBoards-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getBoardsWith:teamID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
2021-03-26 20:01:54 +02:00
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getBoards(teamID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getBoards-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getBoards-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getBoardsExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getBoards(teamID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getBoards: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getBoards($teamID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getBoards: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getBoards(teamID => $teamID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getBoards: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_boards(teamID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getBoards: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getBoards-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getBoards(teamID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getBoards_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getBoards-title-200"></h3>
<p id="examples-Default-getBoards-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getBoards-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getBoards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBoards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getBoards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoards-200-schema">
<div id="responses-Default-getBoards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getBoards-title-default"></h3>
<p id="examples-Default-getBoards-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getBoards-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getBoards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getBoards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getBoards-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getBoards-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getBoards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getBoards-default-schema">
<div id="responses-Default-getBoards-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getBoards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getBoards-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getBoards-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getCard">
<article id="api-Default-getCard-0" data-group="User" data-name="getCard" data-version="0">
<div class="pull-left">
<h1>getCard</h1>
<p>Fetches the specified card.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/cards/{cardID}</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-getCard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getCard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getCard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getCard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getCard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getCard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getCard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getCard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getCard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getCard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getCard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getCard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getCard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/cards/{cardID}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String cardID = cardID_example; // String | Card ID
try {
Object result = apiInstance.getCard(cardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String cardID = cardID_example; // String | Card ID
try {
Object result = apiInstance.getCard(cardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getCard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getCard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *cardID = cardID_example; // Card ID (default to null)
// Fetches the specified card.
[apiInstance getCardWith:cardID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var cardID = cardID_example; // {String} Card ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getCard(cardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getCard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getCard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getCardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var cardID = cardID_example; // String | Card ID (default to null)
try {
// Fetches the specified card.
Object result = apiInstance.getCard(cardID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getCard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$cardID = cardID_example; // String | Card ID
try {
$result = $api_instance->getCard($cardID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getCard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $cardID = cardID_example; # String | Card ID
eval {
my $result = $api_instance->getCard(cardID => $cardID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getCard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
cardID = cardID_example # String | Card ID (default to null)
try:
# Fetches the specified card.
api_response = api_instance.get_card(cardID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getCard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let cardID = cardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getCard(cardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">cardID*</td>
<td>
<div id="d2e199_getCard_cardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Card ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getCard-title-200"></h3>
<p id="examples-Default-getCard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getCard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getCard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getCard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getCard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getCard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getCard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getCard-200-schema">
<div id="responses-Default-getCard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {title=Card represents a group of content blocks and properties., x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getCard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getCard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getCard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getCard-title-default"></h3>
<p id="examples-Default-getCard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getCard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getCard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getCard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getCard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getCard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getCard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getCard-default-schema">
<div id="responses-Default-getCard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getCard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getCard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getCard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getCards">
<article id="api-Default-getCards-0" data-group="User" data-name="getCards" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getCards</h1>
<p>Fetches cards for the specified board.</p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/cards</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getCards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getCards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getCards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getCards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getCards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getCards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getCards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getCards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getCards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getCards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getCards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getCards-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getCards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/cards?page=56&per_page=56"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getCards-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Integer page = 56; // Integer | The page to select (default=0)
Integer perPage = 56; // Integer | Number of cards to return per page(default=100)
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getCards(boardID, page, perPage);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCards");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCards-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Integer page = 56; // Integer | The page to select (default=0)
Integer perPage = 56; // Integer | Number of cards to return per page(default=100)
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getCards(boardID, page, perPage);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCards");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getCards-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getCards-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
Integer *page = 56; // The page to select (default=0) (optional) (default to null)
Integer *perPage = 56; // Number of cards to return per page(default=100) (optional) (default to null)
2021-02-17 21:29:20 +02:00
// Fetches cards for the specified board.
[apiInstance getCardsWith:boardID
page:page
perPage:perPage
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var opts = {
'page': 56, // {Integer} The page to select (default=0)
'perPage': 56 // {Integer} Number of cards to return per page(default=100)
};
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getCards(boardID, opts, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getCards-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getCards-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getCardsExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var page = 56; // Integer | The page to select (default=0) (optional) (default to null)
var perPage = 56; // Integer | Number of cards to return per page(default=100) (optional) (default to null)
2021-02-17 21:29:20 +02:00
try {
// Fetches cards for the specified board.
array[Object] result = apiInstance.getCards(boardID, page, perPage);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getCards: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCards-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$page = 56; // Integer | The page to select (default=0)
$perPage = 56; // Integer | Number of cards to return per page(default=100)
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getCards($boardID, $page, $perPage);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getCards: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCards-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $page = 56; # Integer | The page to select (default=0)
my $perPage = 56; # Integer | Number of cards to return per page(default=100)
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getCards(boardID => $boardID, page => $page, perPage => $perPage);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getCards: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getCards-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
page = 56 # Integer | The page to select (default=0) (optional) (default to null)
perPage = 56 # Integer | Number of cards to return per page(default=100) (optional) (default to null)
2021-02-17 21:29:20 +02:00
try:
# Fetches cards for the specified board.
api_response = api_instance.get_cards(boardID, page=page, perPage=perPage)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getCards: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getCards-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let page = 56; // Integer
let perPage = 56; // Integer
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getCards(boardID, page, perPage, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
2021-03-26 20:01:54 +02:00
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
2021-03-26 20:01:54 +02:00
<td>
<div id="d2e199_getCards_boardID">
2021-03-26 20:01:54 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">page</td>
<td>
<div id="d2e199_getCards_page">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>
<div class="inner description marked">
The page to select (default&#x3D;0)
</div>
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">per_page</td>
<td>
<div id="d2e199_getCards_perPage">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>
<div class="inner description marked">
Number of cards to return per page(default&#x3D;100)
2021-03-26 20:01:54 +02:00
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getCards-title-200"></h3>
<p id="examples-Default-getCards-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getCards-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getCards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getCards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getCards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getCards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getCards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getCards-200-schema">
<div id="responses-Default-getCards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getCards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getCards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getCards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getCards-title-default"></h3>
<p id="examples-Default-getCards-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getCards-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getCards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getCards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
2021-02-17 21:29:20 +02:00
<ul id="responses-detail-Default-getCards-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getCards-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getCards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getCards-default-schema">
<div id="responses-Default-getCards-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getCards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getCards-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getCards-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getChannel">
<article id="api-Default-getChannel-0" data-group="User" data-name="getChannel" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getChannel</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the requested channel</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/channels/{channelID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getChannel-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getChannel-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getChannel-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getChannel-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getChannel-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getChannel-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getChannel-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getChannel-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getChannel-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getChannel-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getChannel-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getChannel-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getChannel-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/channels/{channelID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String channelID = channelID_example; // String | Channel ID
2021-02-17 21:29:20 +02:00
try {
array[Channel] result = apiInstance.getChannel(teamID, channelID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getChannel");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String channelID = channelID_example; // String | Channel ID
2021-02-17 21:29:20 +02:00
try {
array[Channel] result = apiInstance.getChannel(teamID, channelID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getChannel");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getChannel-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getChannel-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *channelID = channelID_example; // Channel ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getChannelWith:teamID
channelID:channelID
completionHandler: ^(array[Channel] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var channelID = channelID_example; // {String} Channel ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getChannel(teamID, channelID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getChannel-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getChannel-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getChannelExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var channelID = channelID_example; // String | Channel ID (default to null)
2021-02-17 21:29:20 +02:00
try {
array[Channel] result = apiInstance.getChannel(teamID, channelID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getChannel: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$channelID = channelID_example; // String | Channel ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getChannel($teamID, $channelID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getChannel: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $channelID = channelID_example; # String | Channel ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getChannel(teamID => $teamID, channelID => $channelID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getChannel: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
channelID = channelID_example # String | Channel ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_channel(teamID, channelID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getChannel: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getChannel-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let channelID = channelID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getChannel(teamID, channelID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getChannel_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">channelID*</td>
<td>
<div id="d2e199_getChannel_channelID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Channel ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getChannel-title-200"></h3>
<p id="examples-Default-getChannel-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getChannel-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getChannel-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getChannel-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getChannel-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getChannel-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getChannel-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getChannel-200-schema">
<div id="responses-Default-getChannel-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getChannel-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getChannel-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getChannel-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getChannel-title-default"></h3>
<p id="examples-Default-getChannel-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getChannel-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getChannel-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getChannel-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getChannel-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getChannel-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getChannel-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getChannel-default-schema">
<div id="responses-Default-getChannel-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getChannel-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getChannel-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getChannel-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getClientConfig">
<article id="api-Default-getClientConfig-0" data-group="User" data-name="getClientConfig" data-version="0">
<div class="pull-left">
<h1>getClientConfig</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the client configuration</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/clientConfig</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-getClientConfig-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getClientConfig-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getClientConfig-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getClientConfig-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getClientConfig-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getClientConfig-0-rust">Rust</a></li>
</ul>
2021-02-17 21:29:20 +02:00
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getClientConfig-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json" \
"http://localhost/api/v2/clientConfig"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
2021-02-17 21:29:20 +02:00
import java.io.File;
import java.util.*;
2021-02-17 21:29:20 +02:00
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.getClientConfig();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getClientConfig");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.getClientConfig();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getClientConfig");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getClientConfig-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getClientConfig-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getClientConfigWithCompletionHandler:
^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getClientConfig(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getClientConfig-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getClientConfig-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getClientConfigExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
Object result = apiInstance.getClientConfig();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getClientConfig: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->getClientConfig();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getClientConfig: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->getClientConfig();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getClientConfig: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_response = api_instance.get_client_config()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getClientConfig: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getClientConfig-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.getClientConfig(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-getClientConfig-title-200"></h3>
<p id="examples-Default-getClientConfig-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getClientConfig-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getClientConfig-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getClientConfig-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getClientConfig-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getClientConfig-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getClientConfig-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getClientConfig-200-schema">
<div id="responses-Default-getClientConfig-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ClientConfig is the client configuration, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getClientConfig-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getClientConfig-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getClientConfig-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getClientConfig-title-default"></h3>
<p id="examples-Default-getClientConfig-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getClientConfig-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getClientConfig-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getClientConfig-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getClientConfig-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getClientConfig-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getClientConfig-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getClientConfig-default-schema">
<div id="responses-Default-getClientConfig-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getClientConfig-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getClientConfig-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getClientConfig-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getFile">
<article id="api-Default-getFile-0" data-group="User" data-name="getFile" data-version="0">
<div class="pull-left">
<h1>getFile</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the contents of an uploaded file</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/files/teams/{teamID}/{boardID}/{filename}</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-getFile-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getFile-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getFile-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getFile-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getFile-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getFile-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getFile-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getFile-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getFile-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getFile-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getFile-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getFile-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getFile-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json,image/jpg,image/png,image/gif" \
"http://localhost/api/v2/files/teams/{teamID}/{boardID}/{filename}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String boardID = boardID_example; // String | Board ID
String filename = filename_example; // String | name of the file
try {
apiInstance.getFile(teamID, boardID, filename);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getFile");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String boardID = boardID_example; // String | Board ID
String filename = filename_example; // String | name of the file
try {
apiInstance.getFile(teamID, boardID, filename);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getFile");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getFile-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getFile-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *boardID = boardID_example; // Board ID (default to null)
String *filename = filename_example; // name of the file (default to null)
[apiInstance getFileWith:teamID
boardID:boardID
filename:filename
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var boardID = boardID_example; // {String} Board ID
var filename = filename_example; // {String} name of the file
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getFile(teamID, boardID, filename, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getFile-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getFile-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getFileExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var boardID = boardID_example; // String | Board ID (default to null)
var filename = filename_example; // String | name of the file (default to null)
try {
apiInstance.getFile(teamID, boardID, filename);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getFile: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$boardID = boardID_example; // String | Board ID
$filename = filename_example; // String | name of the file
try {
$api_instance->getFile($teamID, $boardID, $filename);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getFile: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $boardID = boardID_example; # String | Board ID
my $filename = filename_example; # String | name of the file
eval {
$api_instance->getFile(teamID => $teamID, boardID => $boardID, filename => $filename);
};
if ($@) {
warn "Exception when calling DefaultApi->getFile: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
boardID = boardID_example # String | Board ID (default to null)
filename = filename_example # String | name of the file (default to null)
try:
api_instance.get_file(teamID, boardID, filename)
except ApiException as e:
print("Exception when calling DefaultApi->getFile: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getFile-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let boardID = boardID_example; // String
let filename = filename_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getFile(teamID, boardID, filename, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getFile_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getFile_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">filename*</td>
<td>
<div id="d2e199_getFile_filename">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
name of the file
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getFile-title-200"></h3>
<p id="examples-Default-getFile-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getFile-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getFile-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getFile-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getFile-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getFile-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getFile-title-404"></h3>
<p id="examples-Default-getFile-description-404" class="marked"></p>
<script>
var responseDefault404_description = `file not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-getFile-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-getFile-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-getFile-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-getFile-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getFile-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getFile-title-default"></h3>
<p id="examples-Default-getFile-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getFile-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getFile-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getFile-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getFile-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getFile-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getFile-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getFile-default-schema">
<div id="responses-Default-getFile-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getFile-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getFile-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getFile-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getMe">
<article id="api-Default-getMe-0" data-group="User" data-name="getMe" data-version="0">
<div class="pull-left">
<h1>getMe</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the currently logged-in user</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/users/me</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-getMe-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getMe-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getMe-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getMe-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getMe-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getMe-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getMe-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getMe-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getMe-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getMe-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getMe-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getMe-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getMe-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users/me"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.getMe();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMe");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Object result = apiInstance.getMe();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMe");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getMe-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getMe-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getMeWithCompletionHandler:
^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMe(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getMe-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getMe-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getMeExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
Object result = apiInstance.getMe();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getMe: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->getMe();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMe: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->getMe();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getMe: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_response = api_instance.get_me()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getMe: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMe-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.getMe(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-getMe-title-200"></h3>
<p id="examples-Default-getMe-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getMe-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getMe-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getMe-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getMe-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMe-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMe-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMe-200-schema">
<div id="responses-Default-getMe-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=User is a user, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMe-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMe-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMe-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getMe-title-default"></h3>
<p id="examples-Default-getMe-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getMe-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getMe-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getMe-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getMe-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMe-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMe-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMe-default-schema">
<div id="responses-Default-getMe-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMe-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMe-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMe-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getMembersForBoard">
<article id="api-Default-getMembersForBoard-0" data-group="User" data-name="getMembersForBoard" data-version="0">
<div class="pull-left">
<h1>getMembersForBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the members of the board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/members</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-getMembersForBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getMembersForBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getMembersForBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getMembersForBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getMembersForBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getMembersForBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getMembersForBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/members"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
array[Object] result = apiInstance.getMembersForBoard(boardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMembersForBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
array[Object] result = apiInstance.getMembersForBoard(boardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMembersForBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
[apiInstance getMembersForBoardWith:boardID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMembersForBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getMembersForBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getMembersForBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
try {
array[Object] result = apiInstance.getMembersForBoard(boardID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getMembersForBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
try {
$result = $api_instance->getMembersForBoard($boardID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMembersForBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
eval {
my $result = $api_instance->getMembersForBoard(boardID => $boardID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getMembersForBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
try:
api_response = api_instance.get_members_for_board(boardID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getMembersForBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMembersForBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getMembersForBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getMembersForBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getMembersForBoard-title-200"></h3>
<p id="examples-Default-getMembersForBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getMembersForBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getMembersForBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getMembersForBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getMembersForBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMembersForBoard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMembersForBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMembersForBoard-200-schema">
<div id="responses-Default-getMembersForBoard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMembersForBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMembersForBoard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMembersForBoard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getMembersForBoard-title-default"></h3>
<p id="examples-Default-getMembersForBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getMembersForBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getMembersForBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getMembersForBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getMembersForBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMembersForBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMembersForBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMembersForBoard-default-schema">
<div id="responses-Default-getMembersForBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMembersForBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMembersForBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMembersForBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getMyMemberships">
<article id="api-Default-getMyMemberships-0" data-group="User" data-name="getMyMemberships" data-version="0">
<div class="pull-left">
<h1>getMyMemberships</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the currently users board memberships</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/users/me/memberships</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-getMyMemberships-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getMyMemberships-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getMyMemberships-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getMyMemberships-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getMyMemberships-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getMyMemberships-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getMyMemberships-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users/me/memberships"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getMyMemberships();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMyMemberships");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getMyMemberships();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getMyMemberships");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getMyMemberships-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getMyMemberships-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getMyMembershipsWithCompletionHandler:
^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMyMemberships(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getMyMemberships-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getMyMemberships-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getMyMembershipsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getMyMemberships();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getMyMemberships: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->getMyMemberships();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyMemberships: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->getMyMemberships();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getMyMemberships: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_response = api_instance.get_my_memberships()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getMyMemberships: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getMyMemberships-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.getMyMemberships(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-getMyMemberships-title-200"></h3>
<p id="examples-Default-getMyMemberships-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getMyMemberships-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getMyMemberships-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getMyMemberships-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getMyMemberships-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMyMemberships-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMyMemberships-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMyMemberships-200-schema">
<div id="responses-Default-getMyMemberships-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMyMemberships-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMyMemberships-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMyMemberships-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getMyMemberships-title-default"></h3>
<p id="examples-Default-getMyMemberships-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getMyMemberships-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getMyMemberships-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getMyMemberships-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getMyMemberships-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getMyMemberships-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getMyMemberships-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getMyMemberships-default-schema">
<div id="responses-Default-getMyMemberships-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getMyMemberships-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getMyMemberships-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getMyMemberships-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getSharing">
<article id="api-Default-getSharing-0" data-group="User" data-name="getSharing" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getSharing</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns sharing information for a board</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/{boardID}/sharing</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getSharing-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getSharing-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getSharing-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getSharing-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getSharing-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getSharing-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getSharing-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getSharing-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getSharing-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getSharing-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getSharing-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getSharing-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getSharing-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/sharing"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getSharing(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getSharing");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getSharing(boardID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getSharing");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getSharing-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getSharing-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getSharingWith:boardID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getSharing(boardID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getSharing-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getSharing-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getSharingExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getSharing(boardID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getSharing: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getSharing($boardID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getSharing: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getSharing(boardID => $boardID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getSharing: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_sharing(boardID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getSharing: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getSharing-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getSharing(boardID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_getSharing_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-03-26 20:01:54 +02:00
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getSharing-title-200"></h3>
<p id="examples-Default-getSharing-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getSharing-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getSharing-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getSharing-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
2021-02-17 21:29:20 +02:00
<ul id="responses-detail-Default-getSharing-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getSharing-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getSharing-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getSharing-200-schema">
<div id="responses-Default-getSharing-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Sharing is sharing information for a root block, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
2021-02-17 21:29:20 +02:00
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getSharing-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getSharing-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getSharing-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-getSharing-title-404"></h3>
<p id="examples-Default-getSharing-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-getSharing-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-getSharing-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-getSharing-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-getSharing-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-getSharing-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-getSharing-title-default"></h3>
<p id="examples-Default-getSharing-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getSharing-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getSharing-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getSharing-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getSharing-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getSharing-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getSharing-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getSharing-default-schema">
<div id="responses-Default-getSharing-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getSharing-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getSharing-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getSharing-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getSubscriptions">
<article id="api-Default-getSubscriptions-0" data-group="User" data-name="getSubscriptions" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getSubscriptions</h1>
<p>Gets subscriptions for a user.</p>
2021-02-17 21:29:20 +02:00
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/subscriptions/{subscriberID}</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getSubscriptions-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getSubscriptions-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getSubscriptions-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getSubscriptions-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getSubscriptions-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getSubscriptions-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getSubscriptions-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/subscriptions/{subscriberID}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String subscriberID = subscriberID_example; // String | Subscriber ID
try {
array[Object] result = apiInstance.getSubscriptions(subscriberID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getSubscriptions");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String subscriberID = subscriberID_example; // String | Subscriber ID
try {
array[Object] result = apiInstance.getSubscriptions(subscriberID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getSubscriptions");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getSubscriptions-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getSubscriptions-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *subscriberID = subscriberID_example; // Subscriber ID (default to null)
// Gets subscriptions for a user.
[apiInstance getSubscriptionsWith:subscriberID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var subscriberID = subscriberID_example; // {String} Subscriber ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getSubscriptions(subscriberID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getSubscriptions-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getSubscriptions-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getSubscriptionsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var subscriberID = subscriberID_example; // String | Subscriber ID (default to null)
try {
// Gets subscriptions for a user.
array[Object] result = apiInstance.getSubscriptions(subscriberID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getSubscriptions: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$subscriberID = subscriberID_example; // String | Subscriber ID
try {
$result = $api_instance->getSubscriptions($subscriberID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getSubscriptions: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $subscriberID = subscriberID_example; # String | Subscriber ID
eval {
my $result = $api_instance->getSubscriptions(subscriberID => $subscriberID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getSubscriptions: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
subscriberID = subscriberID_example # String | Subscriber ID (default to null)
try:
# Gets subscriptions for a user.
api_response = api_instance.get_subscriptions(subscriberID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getSubscriptions: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getSubscriptions-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let subscriberID = subscriberID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getSubscriptions(subscriberID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">subscriberID*</td>
<td>
<div id="d2e199_getSubscriptions_subscriberID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Subscriber ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getSubscriptions-title-200"></h3>
<p id="examples-Default-getSubscriptions-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getSubscriptions-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getSubscriptions-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getSubscriptions-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getSubscriptions-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getSubscriptions-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getSubscriptions-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getSubscriptions-200-schema">
<div id="responses-Default-getSubscriptions-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getSubscriptions-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getSubscriptions-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getSubscriptions-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getSubscriptions-title-default"></h3>
<p id="examples-Default-getSubscriptions-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getSubscriptions-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getSubscriptions-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getSubscriptions-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getSubscriptions-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getSubscriptions-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getSubscriptions-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getSubscriptions-default-schema">
<div id="responses-Default-getSubscriptions-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getSubscriptions-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getSubscriptions-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getSubscriptions-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getTeam">
<article id="api-Default-getTeam-0" data-group="User" data-name="getTeam" data-version="0">
<div class="pull-left">
<h1>getTeam</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns information of the root team</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}</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-getTeam-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getTeam-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getTeam-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getTeam-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getTeam-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getTeam-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getTeam-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getTeam-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getTeam-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getTeam-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getTeam-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getTeam-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getTeam-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getTeam(teamID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeam");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getTeam(teamID);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeam");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getTeam-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getTeam-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
2021-02-17 21:29:20 +02:00
[apiInstance getTeamWith:teamID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.getTeam(teamID, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getTeam-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getTeam-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getTeamExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.getTeam(teamID);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getTeam: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->getTeam($teamID);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTeam: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->getTeam(teamID => $teamID);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->getTeam: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.get_team(teamID)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->getTeam: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getTeam-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.getTeam(teamID, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getTeam_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<h2>Responses</h2>
<h3 id="examples-Default-getTeam-title-200"></h3>
<p id="examples-Default-getTeam-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getTeam-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getTeam-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getTeam-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getTeam-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeam-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-getTeam-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeam-200-schema">
<div id="responses-Default-getTeam-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Team is information global to a team, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeam-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeam-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeam-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-getTeam-title-default"></h3>
<p id="examples-Default-getTeam-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getTeam-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-getTeam-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getTeam-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-getTeam-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeam-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-getTeam-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeam-default-schema">
<div id="responses-Default-getTeam-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeam-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeam-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeam-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getTeamUsers">
<article id="api-Default-getTeamUsers-0" data-group="User" data-name="getTeamUsers" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>getTeamUsers</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns team users</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/users</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-getTeamUsers-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getTeamUsers-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getTeamUsers-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getTeamUsers-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getTeamUsers-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getTeamUsers-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getTeamUsers-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/users?search=search_example&exclude_bots=true"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String search = search_example; // String | string to filter users list
Boolean excludeBots = true; // Boolean | exclude bot users
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getTeamUsers(teamID, search, excludeBots);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeamUsers");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String search = search_example; // String | string to filter users list
Boolean excludeBots = true; // Boolean | exclude bot users
2021-02-17 21:29:20 +02:00
try {
array[Object] result = apiInstance.getTeamUsers(teamID, search, excludeBots);
System.out.println(result);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeamUsers");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getTeamUsers-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getTeamUsers-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *search = search_example; // string to filter users list (optional) (default to null)
Boolean *excludeBots = true; // exclude bot users (optional) (default to null)
[apiInstance getTeamUsersWith:teamID
search:search
excludeBots:excludeBots
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var opts = {
'search': search_example, // {String} string to filter users list
'excludeBots': true // {Boolean} exclude bot users
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getTeamUsers(teamID, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getTeamUsers-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getTeamUsers-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getTeamUsersExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var search = search_example; // String | string to filter users list (optional) (default to null)
var excludeBots = true; // Boolean | exclude bot users (optional) (default to null)
try {
array[Object] result = apiInstance.getTeamUsers(teamID, search, excludeBots);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getTeamUsers: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$search = search_example; // String | string to filter users list
$excludeBots = true; // Boolean | exclude bot users
try {
$result = $api_instance->getTeamUsers($teamID, $search, $excludeBots);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTeamUsers: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $search = search_example; # String | string to filter users list
my $excludeBots = true; # Boolean | exclude bot users
eval {
my $result = $api_instance->getTeamUsers(teamID => $teamID, search => $search, excludeBots => $excludeBots);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getTeamUsers: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
search = search_example # String | string to filter users list (optional) (default to null)
excludeBots = true # Boolean | exclude bot users (optional) (default to null)
try:
api_response = api_instance.get_team_users(teamID, search=search, excludeBots=excludeBots)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getTeamUsers: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeamUsers-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let search = search_example; // String
let excludeBots = true; // Boolean
let mut context = DefaultApi::Context::default();
let result = client.getTeamUsers(teamID, search, excludeBots, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getTeamUsers_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">search</td>
<td>
<div id="d2e199_getTeamUsers_search">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
string to filter users list
</div>
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">exclude_bots</td>
<td>
<div id="d2e199_getTeamUsers_excludeBots">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Boolean
</span>
<div class="inner description marked">
exclude bot users
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getTeamUsers-title-200"></h3>
<p id="examples-Default-getTeamUsers-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getTeamUsers-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getTeamUsers-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getTeamUsers-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getTeamUsers-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeamUsers-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTeamUsers-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeamUsers-200-schema">
<div id="responses-Default-getTeamUsers-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeamUsers-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeamUsers-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeamUsers-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getTeamUsers-title-default"></h3>
<p id="examples-Default-getTeamUsers-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getTeamUsers-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getTeamUsers-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getTeamUsers-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getTeamUsers-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeamUsers-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTeamUsers-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeamUsers-default-schema">
<div id="responses-Default-getTeamUsers-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeamUsers-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeamUsers-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeamUsers-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getTeams">
<article id="api-Default-getTeams-0" data-group="User" data-name="getTeams" data-version="0">
<div class="pull-left">
<h1>getTeams</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns information of all the teams</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams</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-getTeams-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getTeams-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getTeams-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getTeams-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getTeams-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getTeams-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getTeams-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getTeams-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getTeams-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getTeams-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getTeams-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getTeams-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getTeams-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getTeams();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeams");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getTeams();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTeams");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getTeams-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getTeams-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getTeamsWithCompletionHandler:
^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getTeams(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getTeams-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getTeams-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getTeamsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
array[Object] result = apiInstance.getTeams();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getTeams: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->getTeams();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTeams: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->getTeams();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getTeams: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_response = api_instance.get_teams()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getTeams: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTeams-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.getTeams(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-getTeams-title-200"></h3>
<p id="examples-Default-getTeams-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getTeams-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getTeams-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getTeams-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getTeams-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeams-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTeams-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeams-200-schema">
<div id="responses-Default-getTeams-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeams-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeams-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeams-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getTeams-title-default"></h3>
<p id="examples-Default-getTeams-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getTeams-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getTeams-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getTeams-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getTeams-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTeams-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTeams-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTeams-default-schema">
<div id="responses-Default-getTeams-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTeams-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTeams-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTeams-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getTemplates">
<article id="api-Default-getTemplates-0" data-group="User" data-name="getTemplates" data-version="0">
<div class="pull-left">
<h1>getTemplates</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns team templates</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/templates</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-getTemplates-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getTemplates-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getTemplates-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getTemplates-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getTemplates-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getTemplates-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getTemplates-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/templates"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
array[Object] result = apiInstance.getTemplates(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTemplates");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
array[Object] result = apiInstance.getTemplates(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getTemplates");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getTemplates-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getTemplates-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
[apiInstance getTemplatesWith:teamID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getTemplates(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getTemplates-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getTemplates-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getTemplatesExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
try {
array[Object] result = apiInstance.getTemplates(teamID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getTemplates: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
try {
$result = $api_instance->getTemplates($teamID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTemplates: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
eval {
my $result = $api_instance->getTemplates(teamID => $teamID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getTemplates: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
try:
api_response = api_instance.get_templates(teamID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getTemplates: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getTemplates-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getTemplates(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getTemplates_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getTemplates-title-200"></h3>
<p id="examples-Default-getTemplates-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getTemplates-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getTemplates-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getTemplates-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getTemplates-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTemplates-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTemplates-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTemplates-200-schema">
<div id="responses-Default-getTemplates-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTemplates-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTemplates-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTemplates-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getTemplates-title-default"></h3>
<p id="examples-Default-getTemplates-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getTemplates-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getTemplates-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getTemplates-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getTemplates-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getTemplates-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getTemplates-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getTemplates-default-schema">
<div id="responses-Default-getTemplates-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getTemplates-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getTemplates-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getTemplates-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getUser">
<article id="api-Default-getUser-0" data-group="User" data-name="getUser" data-version="0">
<div class="pull-left">
<h1>getUser</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns a user</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/users/{userID}</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-getUser-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getUser-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getUser-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getUser-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getUser-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getUser-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getUser-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getUser-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getUser-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getUser-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getUser-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getUser-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getUser-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users/{userID}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
try {
Object result = apiInstance.getUser(userID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUser");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
try {
Object result = apiInstance.getUser(userID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUser");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getUser-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getUser-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userID = userID_example; // User ID (default to null)
[apiInstance getUserWith:userID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var userID = userID_example; // {String} User ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getUser(userID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getUser-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getUser-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getUserExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var userID = userID_example; // String | User ID (default to null)
try {
Object result = apiInstance.getUser(userID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getUser: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userID = userID_example; // String | User ID
try {
$result = $api_instance->getUser($userID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userID = userID_example; # String | User ID
eval {
my $result = $api_instance->getUser(userID => $userID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getUser: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userID = userID_example # String | User ID (default to null)
try:
api_response = api_instance.get_user(userID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getUser: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUser-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let userID = userID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getUser(userID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">userID*</td>
<td>
<div id="d2e199_getUser_userID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getUser-title-200"></h3>
<p id="examples-Default-getUser-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getUser-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getUser-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getUser-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getUser-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUser-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUser-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUser-200-schema">
<div id="responses-Default-getUser-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=User is a user, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUser-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUser-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUser-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getUser-title-default"></h3>
<p id="examples-Default-getUser-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getUser-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getUser-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getUser-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getUser-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUser-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUser-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUser-default-schema">
<div id="responses-Default-getUser-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUser-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUser-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUser-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getUserBoardsInsights">
<article id="api-Default-getUserBoardsInsights-0" data-group="User" data-name="getUserBoardsInsights" data-version="0">
<div class="pull-left">
<h1>getUserBoardsInsights</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns user boards insights</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/users/me/boards/insights</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-getUserBoardsInsights-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getUserBoardsInsights-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getUserBoardsInsights-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getUserBoardsInsights-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getUserBoardsInsights-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users/me/boards/insights?time_range=timeRange_example&page=page_example&per_page=perPage_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String timeRange = timeRange_example; // String | duration of data to calculate insights for
String page = page_example; // String | page offset for top boards
String perPage = perPage_example; // String | limit for boards in a page.
try {
array[Object] result = apiInstance.getUserBoardsInsights(teamID, timeRange, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserBoardsInsights");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String timeRange = timeRange_example; // String | duration of data to calculate insights for
String page = page_example; // String | page offset for top boards
String perPage = perPage_example; // String | limit for boards in a page.
try {
array[Object] result = apiInstance.getUserBoardsInsights(teamID, timeRange, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserBoardsInsights");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *timeRange = timeRange_example; // duration of data to calculate insights for (default to null)
String *page = page_example; // page offset for top boards (default to null)
String *perPage = perPage_example; // limit for boards in a page. (default to null)
[apiInstance getUserBoardsInsightsWith:teamID
timeRange:timeRange
page:page
perPage:perPage
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var timeRange = timeRange_example; // {String} duration of data to calculate insights for
var page = page_example; // {String} page offset for top boards
var perPage = perPage_example; // {String} limit for boards in a page.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getUserBoardsInsights(teamID, timeRange, page, perPage, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getUserBoardsInsightsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var timeRange = timeRange_example; // String | duration of data to calculate insights for (default to null)
var page = page_example; // String | page offset for top boards (default to null)
var perPage = perPage_example; // String | limit for boards in a page. (default to null)
try {
array[Object] result = apiInstance.getUserBoardsInsights(teamID, timeRange, page, perPage);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getUserBoardsInsights: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$timeRange = timeRange_example; // String | duration of data to calculate insights for
$page = page_example; // String | page offset for top boards
$perPage = perPage_example; // String | limit for boards in a page.
try {
$result = $api_instance->getUserBoardsInsights($teamID, $timeRange, $page, $perPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUserBoardsInsights: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $timeRange = timeRange_example; # String | duration of data to calculate insights for
my $page = page_example; # String | page offset for top boards
my $perPage = perPage_example; # String | limit for boards in a page.
eval {
my $result = $api_instance->getUserBoardsInsights(teamID => $teamID, timeRange => $timeRange, page => $page, perPage => $perPage);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getUserBoardsInsights: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
timeRange = timeRange_example # String | duration of data to calculate insights for (default to null)
page = page_example # String | page offset for top boards (default to null)
perPage = perPage_example # String | limit for boards in a page. (default to null)
try:
api_response = api_instance.get_user_boards_insights(teamID, timeRange, page, perPage)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getUserBoardsInsights: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserBoardsInsights-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let timeRange = timeRange_example; // String
let page = page_example; // String
let perPage = perPage_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getUserBoardsInsights(teamID, timeRange, page, perPage, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getUserBoardsInsights_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">time_range*</td>
<td>
<div id="d2e199_getUserBoardsInsights_timeRange">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
duration of data to calculate insights for
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">page*</td>
<td>
<div id="d2e199_getUserBoardsInsights_page">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
page offset for top boards
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">per_page*</td>
<td>
<div id="d2e199_getUserBoardsInsights_perPage">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
limit for boards in a page.
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getUserBoardsInsights-title-200"></h3>
<p id="examples-Default-getUserBoardsInsights-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getUserBoardsInsights-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getUserBoardsInsights-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getUserBoardsInsights-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getUserBoardsInsights-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserBoardsInsights-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserBoardsInsights-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserBoardsInsights-200-schema">
<div id="responses-Default-getUserBoardsInsights-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserBoardsInsights-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserBoardsInsights-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserBoardsInsights-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getUserBoardsInsights-title-default"></h3>
<p id="examples-Default-getUserBoardsInsights-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getUserBoardsInsights-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getUserBoardsInsights-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getUserBoardsInsights-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getUserBoardsInsights-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserBoardsInsights-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserBoardsInsights-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserBoardsInsights-default-schema">
<div id="responses-Default-getUserBoardsInsights-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserBoardsInsights-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserBoardsInsights-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserBoardsInsights-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getUserCategoryBoards">
<article id="api-Default-getUserCategoryBoards-0" data-group="User" data-name="getUserCategoryBoards" data-version="0">
<div class="pull-left">
<h1>getUserCategoryBoards</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Gets the user&#39;s board categories</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/categories</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-getUserCategoryBoards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getUserCategoryBoards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getUserCategoryBoards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getUserCategoryBoards-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getUserCategoryBoards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/categories"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
array[Object] result = apiInstance.getUserCategoryBoards(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserCategoryBoards");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
array[Object] result = apiInstance.getUserCategoryBoards(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserCategoryBoards");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
[apiInstance getUserCategoryBoardsWith:teamID
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getUserCategoryBoards(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getUserCategoryBoardsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
try {
array[Object] result = apiInstance.getUserCategoryBoards(teamID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getUserCategoryBoards: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
try {
$result = $api_instance->getUserCategoryBoards($teamID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUserCategoryBoards: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
eval {
my $result = $api_instance->getUserCategoryBoards(teamID => $teamID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getUserCategoryBoards: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
try:
api_response = api_instance.get_user_category_boards(teamID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getUserCategoryBoards: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserCategoryBoards-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getUserCategoryBoards(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_getUserCategoryBoards_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getUserCategoryBoards-title-200"></h3>
<p id="examples-Default-getUserCategoryBoards-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getUserCategoryBoards-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getUserCategoryBoards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getUserCategoryBoards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getUserCategoryBoards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserCategoryBoards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserCategoryBoards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserCategoryBoards-200-schema">
<div id="responses-Default-getUserCategoryBoards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserCategoryBoards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserCategoryBoards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserCategoryBoards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getUserCategoryBoards-title-default"></h3>
<p id="examples-Default-getUserCategoryBoards-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getUserCategoryBoards-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getUserCategoryBoards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getUserCategoryBoards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getUserCategoryBoards-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserCategoryBoards-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserCategoryBoards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserCategoryBoards-default-schema">
<div id="responses-Default-getUserCategoryBoards-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserCategoryBoards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserCategoryBoards-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserCategoryBoards-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getUserConfig">
<article id="api-Default-getUserConfig-0" data-group="User" data-name="getUserConfig" data-version="0">
<div class="pull-left">
<h1>getUserConfig</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns an array of user preferences</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/users/me/config</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-getUserConfig-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getUserConfig-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getUserConfig-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getUserConfig-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getUserConfig-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getUserConfig-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getUserConfig-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users/me/config"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
Preferences result = apiInstance.getUserConfig();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserConfig");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
Preferences result = apiInstance.getUserConfig();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserConfig");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getUserConfig-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getUserConfig-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getUserConfigWithCompletionHandler:
^(Preferences output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getUserConfig(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getUserConfig-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getUserConfig-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getUserConfigExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
Preferences result = apiInstance.getUserConfig();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getUserConfig: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->getUserConfig();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUserConfig: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->getUserConfig();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getUserConfig: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_response = api_instance.get_user_config()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getUserConfig: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUserConfig-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.getUserConfig(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-getUserConfig-title-200"></h3>
<p id="examples-Default-getUserConfig-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getUserConfig-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getUserConfig-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getUserConfig-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getUserConfig-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserConfig-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserConfig-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserConfig-200-schema">
<div id="responses-Default-getUserConfig-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserConfig-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserConfig-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserConfig-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getUserConfig-title-default"></h3>
<p id="examples-Default-getUserConfig-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getUserConfig-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getUserConfig-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getUserConfig-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getUserConfig-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUserConfig-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUserConfig-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUserConfig-default-schema">
<div id="responses-Default-getUserConfig-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUserConfig-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUserConfig-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUserConfig-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-getUsersList">
<article id="api-Default-getUsersList-0" data-group="User" data-name="getUsersList" data-version="0">
<div class="pull-left">
<h1>getUsersList</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns a user[]</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/users</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-getUsersList-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-java">Java</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-getUsersList-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-getUsersList-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-getUsersList-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-getUsersList-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-python">Python</a></li>
<li class=""><a href="#examples-Default-getUsersList-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-getUsersList-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/users"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
try {
Object result = apiInstance.getUsersList(userID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUsersList");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
try {
Object result = apiInstance.getUsersList(userID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUsersList");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-getUsersList-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-getUsersList-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userID = userID_example; // User ID (default to null)
[apiInstance getUsersListWith:userID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var userID = userID_example; // {String} User ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getUsersList(userID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-getUsersList-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-getUsersList-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getUsersListExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var userID = userID_example; // String | User ID (default to null)
try {
Object result = apiInstance.getUsersList(userID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.getUsersList: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userID = userID_example; // String | User ID
try {
$result = $api_instance->getUsersList($userID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUsersList: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userID = userID_example; # String | User ID
eval {
my $result = $api_instance->getUsersList(userID => $userID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getUsersList: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userID = userID_example # String | User ID (default to null)
try:
api_response = api_instance.get_users_list(userID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getUsersList: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-getUsersList-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let userID = userID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getUsersList(userID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">userID*</td>
<td>
<div id="d2e199_getUsersList_userID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-getUsersList-title-200"></h3>
<p id="examples-Default-getUsersList-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-getUsersList-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-getUsersList-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-getUsersList-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-getUsersList-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUsersList-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUsersList-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUsersList-200-schema">
<div id="responses-Default-getUsersList-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=User is a user, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUsersList-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUsersList-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUsersList-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-getUsersList-title-default"></h3>
<p id="examples-Default-getUsersList-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-getUsersList-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-getUsersList-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-getUsersList-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-getUsersList-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-getUsersList-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-getUsersList-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-getUsersList-default-schema">
<div id="responses-Default-getUsersList-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-getUsersList-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-getUsersList-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-getUsersList-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-handleNotifyAdminUpgrade">
<article id="api-Default-handleNotifyAdminUpgrade-0" data-group="User" data-name="handleNotifyAdminUpgrade" data-version="0">
<div class="pull-left">
<h1>handleNotifyAdminUpgrade</h1>
<p>Notifies admins for upgrade request.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/api/v2/teams/{teamID}/notifyadminupgrade</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-handleNotifyAdminUpgrade-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-java">Java</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-python">Python</a></li>
<li class=""><a href="#examples-Default-handleNotifyAdminUpgrade-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-handleNotifyAdminUpgrade-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/api/v2/teams/{teamID}/notifyadminupgrade"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
apiInstance.handleNotifyAdminUpgrade(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleNotifyAdminUpgrade");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
apiInstance.handleNotifyAdminUpgrade(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleNotifyAdminUpgrade");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
// Notifies admins for upgrade request.
[apiInstance handleNotifyAdminUpgradeWith:teamID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.handleNotifyAdminUpgrade(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class handleNotifyAdminUpgradeExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
try {
// Notifies admins for upgrade request.
apiInstance.handleNotifyAdminUpgrade(teamID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.handleNotifyAdminUpgrade: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
try {
$api_instance->handleNotifyAdminUpgrade($teamID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->handleNotifyAdminUpgrade: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
eval {
$api_instance->handleNotifyAdminUpgrade(teamID => $teamID);
};
if ($@) {
warn "Exception when calling DefaultApi->handleNotifyAdminUpgrade: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
try:
# Notifies admins for upgrade request.
api_instance.handle_notify_admin_upgrade(teamID)
except ApiException as e:
print("Exception when calling DefaultApi->handleNotifyAdminUpgrade: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleNotifyAdminUpgrade-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.handleNotifyAdminUpgrade(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_handleNotifyAdminUpgrade_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-handleNotifyAdminUpgrade-title-200"></h3>
<p id="examples-Default-handleNotifyAdminUpgrade-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-handleNotifyAdminUpgrade-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-handleNotifyAdminUpgrade-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-handleNotifyAdminUpgrade-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-handleNotifyAdminUpgrade-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-handleNotifyAdminUpgrade-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-handleNotifyAdminUpgrade-title-default"></h3>
<p id="examples-Default-handleNotifyAdminUpgrade-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-handleNotifyAdminUpgrade-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-handleNotifyAdminUpgrade-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-handleNotifyAdminUpgrade-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-handleNotifyAdminUpgrade-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-handleNotifyAdminUpgrade-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-handleNotifyAdminUpgrade-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-handleNotifyAdminUpgrade-default-schema">
<div id="responses-Default-handleNotifyAdminUpgrade-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-handleNotifyAdminUpgrade-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-handleNotifyAdminUpgrade-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-handleNotifyAdminUpgrade-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-handleStatistics">
<article id="api-Default-handleStatistics-0" data-group="User" data-name="handleStatistics" data-version="0">
<div class="pull-left">
<h1>handleStatistics</h1>
<p>Fetches the statistic of the server.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/statistics</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-handleStatistics-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-java">Java</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-handleStatistics-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-handleStatistics-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-handleStatistics-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-handleStatistics-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-python">Python</a></li>
<li class=""><a href="#examples-Default-handleStatistics-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-handleStatistics-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/statistics"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
BoardStatistics result = apiInstance.handleStatistics();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleStatistics");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
BoardStatistics result = apiInstance.handleStatistics();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleStatistics");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-handleStatistics-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-handleStatistics-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Fetches the statistic of the server.
[apiInstance handleStatisticsWithCompletionHandler:
^(BoardStatistics output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.handleStatistics(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-handleStatistics-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-handleStatistics-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class handleStatisticsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
// Fetches the statistic of the server.
BoardStatistics result = apiInstance.handleStatistics();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.handleStatistics: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$result = $api_instance->handleStatistics();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->handleStatistics: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
my $result = $api_instance->handleStatistics();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->handleStatistics: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
# Fetches the statistic of the server.
api_response = api_instance.handle_statistics()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->handleStatistics: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleStatistics-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.handleStatistics(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-handleStatistics-title-200"></h3>
<p id="examples-Default-handleStatistics-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-handleStatistics-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-handleStatistics-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-handleStatistics-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-handleStatistics-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-handleStatistics-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-handleStatistics-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-handleStatistics-200-schema">
<div id="responses-Default-handleStatistics-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-handleStatistics-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-handleStatistics-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-handleStatistics-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-handleStatistics-title-default"></h3>
<p id="examples-Default-handleStatistics-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-handleStatistics-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-handleStatistics-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-handleStatistics-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-handleStatistics-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-handleStatistics-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-handleStatistics-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-handleStatistics-default-schema">
<div id="responses-Default-handleStatistics-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-handleStatistics-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-handleStatistics-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-handleStatistics-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-handleTeamBoardsInsights">
<article id="api-Default-handleTeamBoardsInsights-0" data-group="User" data-name="handleTeamBoardsInsights" data-version="0">
<div class="pull-left">
<h1>handleTeamBoardsInsights</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns team boards insights</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/boards/insights</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-handleTeamBoardsInsights-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-java">Java</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-python">Python</a></li>
<li class=""><a href="#examples-Default-handleTeamBoardsInsights-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-handleTeamBoardsInsights-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/boards/insights?time_range=timeRange_example&page=page_example&per_page=perPage_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String timeRange = timeRange_example; // String | duration of data to calculate insights for
String page = page_example; // String | page offset for top boards
String perPage = perPage_example; // String | limit for boards in a page.
try {
array[Object] result = apiInstance.handleTeamBoardsInsights(teamID, timeRange, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleTeamBoardsInsights");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String timeRange = timeRange_example; // String | duration of data to calculate insights for
String page = page_example; // String | page offset for top boards
String perPage = perPage_example; // String | limit for boards in a page.
try {
array[Object] result = apiInstance.handleTeamBoardsInsights(teamID, timeRange, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#handleTeamBoardsInsights");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *timeRange = timeRange_example; // duration of data to calculate insights for (default to null)
String *page = page_example; // page offset for top boards (default to null)
String *perPage = perPage_example; // limit for boards in a page. (default to null)
[apiInstance handleTeamBoardsInsightsWith:teamID
timeRange:timeRange
page:page
perPage:perPage
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var timeRange = timeRange_example; // {String} duration of data to calculate insights for
var page = page_example; // {String} page offset for top boards
var perPage = perPage_example; // {String} limit for boards in a page.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.handleTeamBoardsInsights(teamID, timeRange, page, perPage, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class handleTeamBoardsInsightsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var timeRange = timeRange_example; // String | duration of data to calculate insights for (default to null)
var page = page_example; // String | page offset for top boards (default to null)
var perPage = perPage_example; // String | limit for boards in a page. (default to null)
try {
array[Object] result = apiInstance.handleTeamBoardsInsights(teamID, timeRange, page, perPage);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.handleTeamBoardsInsights: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$timeRange = timeRange_example; // String | duration of data to calculate insights for
$page = page_example; // String | page offset for top boards
$perPage = perPage_example; // String | limit for boards in a page.
try {
$result = $api_instance->handleTeamBoardsInsights($teamID, $timeRange, $page, $perPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->handleTeamBoardsInsights: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $timeRange = timeRange_example; # String | duration of data to calculate insights for
my $page = page_example; # String | page offset for top boards
my $perPage = perPage_example; # String | limit for boards in a page.
eval {
my $result = $api_instance->handleTeamBoardsInsights(teamID => $teamID, timeRange => $timeRange, page => $page, perPage => $perPage);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->handleTeamBoardsInsights: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
timeRange = timeRange_example # String | duration of data to calculate insights for (default to null)
page = page_example # String | page offset for top boards (default to null)
perPage = perPage_example # String | limit for boards in a page. (default to null)
try:
api_response = api_instance.handle_team_boards_insights(teamID, timeRange, page, perPage)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->handleTeamBoardsInsights: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-handleTeamBoardsInsights-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let timeRange = timeRange_example; // String
let page = page_example; // String
let perPage = perPage_example; // String
let mut context = DefaultApi::Context::default();
let result = client.handleTeamBoardsInsights(teamID, timeRange, page, perPage, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_handleTeamBoardsInsights_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">time_range*</td>
<td>
<div id="d2e199_handleTeamBoardsInsights_timeRange">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
duration of data to calculate insights for
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">page*</td>
<td>
<div id="d2e199_handleTeamBoardsInsights_page">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
page offset for top boards
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">per_page*</td>
<td>
<div id="d2e199_handleTeamBoardsInsights_perPage">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
limit for boards in a page.
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-handleTeamBoardsInsights-title-200"></h3>
<p id="examples-Default-handleTeamBoardsInsights-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-handleTeamBoardsInsights-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-handleTeamBoardsInsights-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-handleTeamBoardsInsights-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-handleTeamBoardsInsights-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-handleTeamBoardsInsights-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-handleTeamBoardsInsights-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-handleTeamBoardsInsights-200-schema">
<div id="responses-Default-handleTeamBoardsInsights-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-handleTeamBoardsInsights-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-handleTeamBoardsInsights-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-handleTeamBoardsInsights-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-handleTeamBoardsInsights-title-default"></h3>
<p id="examples-Default-handleTeamBoardsInsights-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-handleTeamBoardsInsights-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-handleTeamBoardsInsights-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-handleTeamBoardsInsights-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-handleTeamBoardsInsights-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-handleTeamBoardsInsights-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-handleTeamBoardsInsights-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-handleTeamBoardsInsights-default-schema">
<div id="responses-Default-handleTeamBoardsInsights-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-handleTeamBoardsInsights-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-handleTeamBoardsInsights-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-handleTeamBoardsInsights-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-hello">
<article id="api-Default-hello-0" data-group="User" data-name="hello" data-version="0">
<div class="pull-left">
<h1>hello</h1>
<p>Responds with &#x60;Hello&#x60; if the web service is running.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/hello</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-hello-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-hello-0-java">Java</a></li>
<li class=""><a href="#examples-Default-hello-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-hello-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-hello-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-hello-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-hello-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-hello-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-hello-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-hello-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-hello-0-python">Python</a></li>
<li class=""><a href="#examples-Default-hello-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-hello-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
"http://localhost/api/v2/hello"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.hello();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#hello");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.hello();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#hello");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-hello-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-hello-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Responds with `Hello` if the web service is running.
[apiInstance helloWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.hello(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-hello-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-hello-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class helloExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
// Responds with `Hello` if the web service is running.
apiInstance.hello();
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.hello: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$api_instance->hello();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->hello: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
$api_instance->hello();
};
if ($@) {
warn "Exception when calling DefaultApi->hello: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
# Responds with `Hello` if the web service is running.
api_instance.hello()
except ApiException as e:
print("Exception when calling DefaultApi->hello: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-hello-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.hello(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-hello-title-200"></h3>
<p id="examples-Default-hello-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-hello-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-hello-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-hello-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-hello-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-hello-200-wrapper" style='margin-bottom: 10px;'>
</div>
</article>
</div>
<hr>
<div id="api-Default-insertBoardsAndBlocks">
<article id="api-Default-insertBoardsAndBlocks-0" data-group="User" data-name="insertBoardsAndBlocks" data-version="0">
<div class="pull-left">
<h1>insertBoardsAndBlocks</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Creates new boards and blocks</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards-and-blocks</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-insertBoardsAndBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-insertBoardsAndBlocks-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-insertBoardsAndBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards-and-blocks" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.insertBoardsAndBlocks(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#insertBoardsAndBlocks");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.insertBoardsAndBlocks(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#insertBoardsAndBlocks");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
[apiInstance insertBoardsAndBlocksWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.insertBoardsAndBlocks(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class insertBoardsAndBlocksExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
Object result = apiInstance.insertBoardsAndBlocks(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.insertBoardsAndBlocks: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$result = $api_instance->insertBoardsAndBlocks($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->insertBoardsAndBlocks: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->insertBoardsAndBlocks(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->insertBoardsAndBlocks: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
api_response = api_instance.insert_boards_and_blocks(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->insertBoardsAndBlocks: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-insertBoardsAndBlocks-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.insertBoardsAndBlocks(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">the boards and blocks to create</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the boards and blocks to create",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BoardsAndBlocks"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_insertBoardsAndBlocks_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_insertBoardsAndBlocks_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-insertBoardsAndBlocks-title-200"></h3>
<p id="examples-Default-insertBoardsAndBlocks-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-insertBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-insertBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-insertBoardsAndBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-insertBoardsAndBlocks-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-insertBoardsAndBlocks-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-insertBoardsAndBlocks-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-insertBoardsAndBlocks-200-schema">
<div id="responses-Default-insertBoardsAndBlocks-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardsAndBlocks is used to operate over boards and blocks at the
same time, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-insertBoardsAndBlocks-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-insertBoardsAndBlocks-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-insertBoardsAndBlocks-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-insertBoardsAndBlocks-title-default"></h3>
<p id="examples-Default-insertBoardsAndBlocks-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-insertBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-insertBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-insertBoardsAndBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-insertBoardsAndBlocks-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-insertBoardsAndBlocks-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-insertBoardsAndBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-insertBoardsAndBlocks-default-schema">
<div id="responses-Default-insertBoardsAndBlocks-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-insertBoardsAndBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-insertBoardsAndBlocks-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-insertBoardsAndBlocks-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-joinBoard">
<article id="api-Default-joinBoard-0" data-group="User" data-name="joinBoard" data-version="0">
<div class="pull-left">
<h1>joinBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Become a member of a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/join</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-joinBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-joinBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-joinBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-joinBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-joinBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-joinBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-joinBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/join"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
Object result = apiInstance.joinBoard(boardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#joinBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
Object result = apiInstance.joinBoard(boardID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#joinBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-joinBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-joinBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
[apiInstance joinBoardWith:boardID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.joinBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-joinBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-joinBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class joinBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
try {
Object result = apiInstance.joinBoard(boardID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.joinBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
try {
$result = $api_instance->joinBoard($boardID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->joinBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
eval {
my $result = $api_instance->joinBoard(boardID => $boardID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->joinBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
try:
api_response = api_instance.join_board(boardID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->joinBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-joinBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.joinBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_joinBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-joinBoard-title-200"></h3>
<p id="examples-Default-joinBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-joinBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-joinBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-joinBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-joinBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-joinBoard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-joinBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-joinBoard-200-schema">
<div id="responses-Default-joinBoard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardMember stores the information of the membership of a user on a board, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-joinBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-joinBoard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-joinBoard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-joinBoard-title-403"></h3>
<p id="examples-Default-joinBoard-description-403" class="marked"></p>
<script>
var responseDefault403_description = `access denied`;
var responseDefault403_description_break = responseDefault403_description.indexOf('\n');
if (responseDefault403_description_break == -1) {
$("#examples-Default-joinBoard-title-403").text("Status: 403 - " + responseDefault403_description);
} else {
$("#examples-Default-joinBoard-title-403").text("Status: 403 - " + responseDefault403_description.substring(0, responseDefault403_description_break));
$("#examples-Default-joinBoard-description-403").html(responseDefault403_description.substring(responseDefault403_description_break));
}
</script>
<ul id="responses-detail-Default-joinBoard-403" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-joinBoard-403-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-joinBoard-title-404"></h3>
<p id="examples-Default-joinBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-joinBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-joinBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-joinBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-joinBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-joinBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-joinBoard-title-default"></h3>
<p id="examples-Default-joinBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-joinBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-joinBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-joinBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-joinBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-joinBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-joinBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-joinBoard-default-schema">
<div id="responses-Default-joinBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-joinBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-joinBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-joinBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-leaveBoard">
<article id="api-Default-leaveBoard-0" data-group="User" data-name="leaveBoard" data-version="0">
<div class="pull-left">
<h1>leaveBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Remove your own membership from a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/leave</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-leaveBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-leaveBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-leaveBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-leaveBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-leaveBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-leaveBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-leaveBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/leave"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
apiInstance.leaveBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#leaveBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
try {
apiInstance.leaveBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#leaveBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-leaveBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-leaveBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
[apiInstance leaveBoardWith:boardID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.leaveBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-leaveBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-leaveBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class leaveBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
try {
apiInstance.leaveBoard(boardID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.leaveBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
try {
$api_instance->leaveBoard($boardID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->leaveBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
eval {
$api_instance->leaveBoard(boardID => $boardID);
};
if ($@) {
warn "Exception when calling DefaultApi->leaveBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
try:
api_instance.leave_board(boardID)
except ApiException as e:
print("Exception when calling DefaultApi->leaveBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-leaveBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.leaveBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_leaveBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-leaveBoard-title-200"></h3>
<p id="examples-Default-leaveBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-leaveBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-leaveBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-leaveBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-leaveBoard-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-leaveBoard-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-leaveBoard-title-403"></h3>
<p id="examples-Default-leaveBoard-description-403" class="marked"></p>
<script>
var responseDefault403_description = `access denied`;
var responseDefault403_description_break = responseDefault403_description.indexOf('\n');
if (responseDefault403_description_break == -1) {
$("#examples-Default-leaveBoard-title-403").text("Status: 403 - " + responseDefault403_description);
} else {
$("#examples-Default-leaveBoard-title-403").text("Status: 403 - " + responseDefault403_description.substring(0, responseDefault403_description_break));
$("#examples-Default-leaveBoard-description-403").html(responseDefault403_description.substring(responseDefault403_description_break));
}
</script>
<ul id="responses-detail-Default-leaveBoard-403" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-leaveBoard-403-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-leaveBoard-title-404"></h3>
<p id="examples-Default-leaveBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-leaveBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-leaveBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-leaveBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-leaveBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-leaveBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-leaveBoard-title-default"></h3>
<p id="examples-Default-leaveBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-leaveBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-leaveBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-leaveBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-leaveBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-leaveBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-leaveBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-leaveBoard-default-schema">
<div id="responses-Default-leaveBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-leaveBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-leaveBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-leaveBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-login">
<article id="api-Default-login-0" data-group="User" data-name="login" data-version="0">
<div class="pull-left">
<h1>login</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Login user</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/login</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-login-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-login-0-java">Java</a></li>
<li class=""><a href="#examples-Default-login-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-login-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-login-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-login-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-login-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-login-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-login-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-login-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-login-0-python">Python</a></li>
<li class=""><a href="#examples-Default-login-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-login-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/login" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.login(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#login");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.login(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#login");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-login-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-login-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
[apiInstance loginWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.login(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-login-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-login-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class loginExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
Object result = apiInstance.login(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.login: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$result = $api_instance->login($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->login: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->login(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->login: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
api_response = api_instance.login(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->login: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-login-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.login(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">Login request</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Login request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LoginRequest"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_login_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_login_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-login-title-200"></h3>
<p id="examples-Default-login-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-login-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-login-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-login-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-login-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-login-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-login-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-login-200-schema">
<div id="responses-Default-login-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=LoginResponse is a login response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-login-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-login-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-login-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-login-title-401"></h3>
<p id="examples-Default-login-description-401" class="marked"></p>
<script>
var responseDefault401_description = `invalid login`;
var responseDefault401_description_break = responseDefault401_description.indexOf('\n');
if (responseDefault401_description_break == -1) {
$("#examples-Default-login-title-401").text("Status: 401 - " + responseDefault401_description);
} else {
$("#examples-Default-login-title-401").text("Status: 401 - " + responseDefault401_description.substring(0, responseDefault401_description_break));
$("#examples-Default-login-description-401").html(responseDefault401_description.substring(responseDefault401_description_break));
}
</script>
<ul id="responses-detail-Default-login-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-login-401-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-login-401-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-login-401-schema">
<div id="responses-Default-login-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-login-401-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-login-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-login-401-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-login-title-500"></h3>
<p id="examples-Default-login-description-500" class="marked"></p>
<script>
var responseDefault500_description = `internal error`;
var responseDefault500_description_break = responseDefault500_description.indexOf('\n');
if (responseDefault500_description_break == -1) {
$("#examples-Default-login-title-500").text("Status: 500 - " + responseDefault500_description);
} else {
$("#examples-Default-login-title-500").text("Status: 500 - " + responseDefault500_description.substring(0, responseDefault500_description_break));
$("#examples-Default-login-description-500").html(responseDefault500_description.substring(responseDefault500_description_break));
}
</script>
<ul id="responses-detail-Default-login-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-login-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-login-500-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-login-500-schema">
<div id="responses-Default-login-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-login-500-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-login-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-login-500-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-logout">
<article id="api-Default-logout-0" data-group="User" data-name="logout" data-version="0">
<div class="pull-left">
<h1>logout</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Logout user</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/logout</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-logout-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-logout-0-java">Java</a></li>
<li class=""><a href="#examples-Default-logout-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-logout-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-logout-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-logout-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-logout-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-logout-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-logout-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-logout-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-logout-0-python">Python</a></li>
<li class=""><a href="#examples-Default-logout-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-logout-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/logout"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.logout();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#logout");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.logout();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#logout");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-logout-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-logout-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance logoutWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.logout(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-logout-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-logout-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class logoutExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
apiInstance.logout();
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.logout: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$api_instance->logout();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->logout: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
$api_instance->logout();
};
if ($@) {
warn "Exception when calling DefaultApi->logout: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
api_instance.logout()
except ApiException as e:
print("Exception when calling DefaultApi->logout: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-logout-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.logout(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-logout-title-200"></h3>
<p id="examples-Default-logout-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-logout-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-logout-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-logout-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-logout-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-logout-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-logout-title-500"></h3>
<p id="examples-Default-logout-description-500" class="marked"></p>
<script>
var responseDefault500_description = `internal error`;
var responseDefault500_description_break = responseDefault500_description.indexOf('\n');
if (responseDefault500_description_break == -1) {
$("#examples-Default-logout-title-500").text("Status: 500 - " + responseDefault500_description);
} else {
$("#examples-Default-logout-title-500").text("Status: 500 - " + responseDefault500_description.substring(0, responseDefault500_description_break));
$("#examples-Default-logout-description-500").html(responseDefault500_description.substring(responseDefault500_description_break));
}
</script>
<ul id="responses-detail-Default-logout-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-logout-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-logout-500-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-logout-500-schema">
<div id="responses-Default-logout-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-logout-500-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-logout-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-logout-500-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-onboard">
<article id="api-Default-onboard-0" data-group="User" data-name="onboard" data-version="0">
<div class="pull-left">
<h1>onboard</h1>
<p>Onboards a user on Boards.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/team/{teamID}/onboard</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-onboard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-onboard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-onboard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-onboard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-onboard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-onboard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-onboard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-onboard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-onboard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-onboard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-onboard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-onboard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-onboard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/team/{teamID}/onboard"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
onboard_200_response result = apiInstance.onboard(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#onboard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
onboard_200_response result = apiInstance.onboard(teamID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#onboard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-onboard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-onboard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
// Onboards a user on Boards.
[apiInstance onboardWith:teamID
completionHandler: ^(onboard_200_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.onboard(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-onboard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-onboard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class onboardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
try {
// Onboards a user on Boards.
onboard_200_response result = apiInstance.onboard(teamID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.onboard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
try {
$result = $api_instance->onboard($teamID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->onboard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
eval {
my $result = $api_instance->onboard(teamID => $teamID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->onboard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
try:
# Onboards a user on Boards.
api_response = api_instance.onboard(teamID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->onboard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-onboard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.onboard(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_onboard_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-onboard-title-200"></h3>
<p id="examples-Default-onboard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-onboard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-onboard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-onboard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-onboard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-onboard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-onboard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-onboard-200-schema">
<div id="responses-Default-onboard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-onboard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-onboard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-onboard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-onboard-title-default"></h3>
<p id="examples-Default-onboard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-onboard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-onboard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-onboard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-onboard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-onboard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-onboard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-onboard-default-schema">
<div id="responses-Default-onboard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-onboard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-onboard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-onboard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-patchBlock">
<article id="api-Default-patchBlock-0" data-group="User" data-name="patchBlock" data-version="0">
<div class="pull-left">
<h1>patchBlock</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Partially updates a block</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/boards/{boardID}/blocks/{blockID}</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-patchBlock-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-java">Java</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-patchBlock-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-patchBlock-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-patchBlock-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-patchBlock-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-python">Python</a></li>
<li class=""><a href="#examples-Default-patchBlock-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-patchBlock-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks/{blockID}?disable_notify=" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to patch
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
apiInstance.patchBlock(boardID, blockID, body, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBlock");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to patch
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
apiInstance.patchBlock(boardID, blockID, body, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBlock");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-patchBlock-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-patchBlock-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *blockID = blockID_example; // ID of block to patch (default to null)
Object *body = Object; //
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk patching) (optional) (default to null)
[apiInstance patchBlockWith:boardID
blockID:blockID
body:body
disableNotify:disableNotify
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var blockID = blockID_example; // {String} ID of block to patch
var body = Object; // {Object}
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk patching)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.patchBlock(boardID, blockID, body, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-patchBlock-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-patchBlock-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class patchBlockExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var blockID = blockID_example; // String | ID of block to patch (default to null)
var body = Object; // Object |
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk patching) (optional) (default to null)
try {
apiInstance.patchBlock(boardID, blockID, body, disableNotify);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.patchBlock: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$blockID = blockID_example; // String | ID of block to patch
$body = Object; // Object |
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
$api_instance->patchBlock($boardID, $blockID, $body, $disableNotify);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->patchBlock: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $blockID = blockID_example; # String | ID of block to patch
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk patching)
eval {
$api_instance->patchBlock(boardID => $boardID, blockID => $blockID, body => $body, disableNotify => $disableNotify);
};
if ($@) {
warn "Exception when calling DefaultApi->patchBlock: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
blockID = blockID_example # String | ID of block to patch (default to null)
body = Object # Object |
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk patching) (optional) (default to null)
try:
api_instance.patch_block(boardID, blockID, body, disableNotify=disableNotify)
except ApiException as e:
print("Exception when calling DefaultApi->patchBlock: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlock-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let blockID = blockID_example; // String
let body = Object; // Object
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.patchBlock(boardID, blockID, body, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_patchBlock_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">blockID*</td>
<td>
<div id="d2e199_patchBlock_blockID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of block to patch
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">block patch to apply</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "block patch to apply",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BlockPatch"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_patchBlock_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_patchBlock_body"></div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_patchBlock_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk patching)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-patchBlock-title-200"></h3>
<p id="examples-Default-patchBlock-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-patchBlock-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-patchBlock-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-patchBlock-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-patchBlock-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-patchBlock-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-patchBlock-title-404"></h3>
<p id="examples-Default-patchBlock-description-404" class="marked"></p>
<script>
var responseDefault404_description = `block not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-patchBlock-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-patchBlock-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-patchBlock-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-patchBlock-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-patchBlock-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-patchBlock-title-default"></h3>
<p id="examples-Default-patchBlock-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-patchBlock-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-patchBlock-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-patchBlock-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-patchBlock-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBlock-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBlock-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBlock-default-schema">
<div id="responses-Default-patchBlock-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBlock-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBlock-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBlock-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-patchBlocks">
<article id="api-Default-patchBlocks-0" data-group="User" data-name="patchBlocks" data-version="0">
<div class="pull-left">
<h1>patchBlocks</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Partially updates batch of blocks</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/boards/{boardID}/blocks/</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-patchBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-patchBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-patchBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-patchBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-patchBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-patchBlocks-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-patchBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks/?disable_notify=" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Workspace ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
apiInstance.patchBlocks(boardID, body, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBlocks");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Workspace ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
apiInstance.patchBlocks(boardID, body, disableNotify);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBlocks");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-patchBlocks-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-patchBlocks-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Workspace ID (default to null)
Object *body = Object; //
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk patching) (optional) (default to null)
[apiInstance patchBlocksWith:boardID
body:body
disableNotify:disableNotify
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Workspace ID
var body = Object; // {Object}
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk patching)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.patchBlocks(boardID, body, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-patchBlocks-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-patchBlocks-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class patchBlocksExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Workspace ID (default to null)
var body = Object; // Object |
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk patching) (optional) (default to null)
try {
apiInstance.patchBlocks(boardID, body, disableNotify);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.patchBlocks: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Workspace ID
$body = Object; // Object |
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk patching)
try {
$api_instance->patchBlocks($boardID, $body, $disableNotify);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->patchBlocks: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Workspace ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk patching)
eval {
$api_instance->patchBlocks(boardID => $boardID, body => $body, disableNotify => $disableNotify);
};
if ($@) {
warn "Exception when calling DefaultApi->patchBlocks: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Workspace ID (default to null)
body = Object # Object |
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk patching) (optional) (default to null)
try:
api_instance.patch_blocks(boardID, body, disableNotify=disableNotify)
except ApiException as e:
print("Exception when calling DefaultApi->patchBlocks: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBlocks-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = Object; // Object
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.patchBlocks(boardID, body, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_patchBlocks_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Workspace ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">block Ids and block patches to apply</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "block Ids and block patches to apply",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BlockPatchBatch"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_patchBlocks_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_patchBlocks_body"></div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_patchBlocks_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk patching)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-patchBlocks-title-200"></h3>
<p id="examples-Default-patchBlocks-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-patchBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-patchBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-patchBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-patchBlocks-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-patchBlocks-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-patchBlocks-title-default"></h3>
<p id="examples-Default-patchBlocks-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-patchBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-patchBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-patchBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-patchBlocks-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBlocks-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBlocks-default-schema">
<div id="responses-Default-patchBlocks-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBlocks-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBlocks-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-patchBoard">
<article id="api-Default-patchBoard-0" data-group="User" data-name="patchBoard" data-version="0">
<div class="pull-left">
<h1>patchBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Partially updates a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/boards/{boardID}</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-patchBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-patchBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-patchBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-patchBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-patchBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-patchBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-patchBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
Object result = apiInstance.patchBoard(boardID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
Object result = apiInstance.patchBoard(boardID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-patchBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-patchBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
Object *body = Object; //
[apiInstance patchBoardWith:boardID
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.patchBoard(boardID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-patchBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-patchBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class patchBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var body = Object; // Object |
try {
Object result = apiInstance.patchBoard(boardID, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.patchBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$body = Object; // Object |
try {
$result = $api_instance->patchBoard($boardID, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->patchBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->patchBoard(boardID => $boardID, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->patchBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
body = Object # Object |
try:
api_response = api_instance.patch_board(boardID, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->patchBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.patchBoard(boardID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_patchBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">board patch to apply</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "board patch to apply",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BoardPatch"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_patchBoard_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_patchBoard_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-patchBoard-title-200"></h3>
<p id="examples-Default-patchBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-patchBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-patchBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-patchBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-patchBoard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBoard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBoard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBoard-200-schema">
<div id="responses-Default-patchBoard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Board groups a set of blocks and its layout, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBoard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBoard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBoard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-patchBoard-title-404"></h3>
<p id="examples-Default-patchBoard-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-patchBoard-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-patchBoard-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-patchBoard-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-patchBoard-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-patchBoard-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-patchBoard-title-default"></h3>
<p id="examples-Default-patchBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-patchBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-patchBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-patchBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-patchBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBoard-default-schema">
<div id="responses-Default-patchBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-patchBoardsAndBlocks">
<article id="api-Default-patchBoardsAndBlocks-0" data-group="User" data-name="patchBoardsAndBlocks" data-version="0">
<div class="pull-left">
<h1>patchBoardsAndBlocks</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Patches a set of related boards and blocks</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/boards-and-blocks</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-patchBoardsAndBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-patchBoardsAndBlocks-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-patchBoardsAndBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards-and-blocks" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.patchBoardsAndBlocks(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBoardsAndBlocks");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
Object result = apiInstance.patchBoardsAndBlocks(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchBoardsAndBlocks");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
[apiInstance patchBoardsAndBlocksWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.patchBoardsAndBlocks(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class patchBoardsAndBlocksExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
Object result = apiInstance.patchBoardsAndBlocks(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.patchBoardsAndBlocks: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$result = $api_instance->patchBoardsAndBlocks($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->patchBoardsAndBlocks: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->patchBoardsAndBlocks(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->patchBoardsAndBlocks: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
api_response = api_instance.patch_boards_and_blocks(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->patchBoardsAndBlocks: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchBoardsAndBlocks-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.patchBoardsAndBlocks(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">the patches for the boards and blocks</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the patches for the boards and blocks",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/PatchBoardsAndBlocks"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_patchBoardsAndBlocks_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_patchBoardsAndBlocks_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-patchBoardsAndBlocks-title-200"></h3>
<p id="examples-Default-patchBoardsAndBlocks-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-patchBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-patchBoardsAndBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-patchBoardsAndBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-patchBoardsAndBlocks-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBoardsAndBlocks-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBoardsAndBlocks-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBoardsAndBlocks-200-schema">
<div id="responses-Default-patchBoardsAndBlocks-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardsAndBlocks is used to operate over boards and blocks at the
same time, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBoardsAndBlocks-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBoardsAndBlocks-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBoardsAndBlocks-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-patchBoardsAndBlocks-title-default"></h3>
<p id="examples-Default-patchBoardsAndBlocks-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-patchBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-patchBoardsAndBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-patchBoardsAndBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-patchBoardsAndBlocks-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchBoardsAndBlocks-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchBoardsAndBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchBoardsAndBlocks-default-schema">
<div id="responses-Default-patchBoardsAndBlocks-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchBoardsAndBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchBoardsAndBlocks-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchBoardsAndBlocks-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-patchCard">
<article id="api-Default-patchCard-0" data-group="User" data-name="patchCard" data-version="0">
<div class="pull-left">
<h1>patchCard</h1>
<p>Patches the specified card.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/cards/{cardID}/cards</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-patchCard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-patchCard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-patchCard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-patchCard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-patchCard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-patchCard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-patchCard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-patchCard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-patchCard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-patchCard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-patchCard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-patchCard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-patchCard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/cards/{cardID}/cards?disable_notify=" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String cardID = cardID_example; // String | Card ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data patching)
try {
Object result = apiInstance.patchCard(cardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchCard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String cardID = cardID_example; // String | Card ID
Object body = Object; // Object |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data patching)
try {
Object result = apiInstance.patchCard(cardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#patchCard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-patchCard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-patchCard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *cardID = cardID_example; // Card ID (default to null)
Object *body = Object; //
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk data patching) (optional) (default to null)
// Patches the specified card.
[apiInstance patchCardWith:cardID
body:body
disableNotify:disableNotify
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var cardID = cardID_example; // {String} Card ID
var body = Object; // {Object}
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk data patching)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.patchCard(cardID, body, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-patchCard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-patchCard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class patchCardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var cardID = cardID_example; // String | Card ID (default to null)
var body = Object; // Object |
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk data patching) (optional) (default to null)
try {
// Patches the specified card.
Object result = apiInstance.patchCard(cardID, body, disableNotify);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.patchCard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$cardID = cardID_example; // String | Card ID
$body = Object; // Object |
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk data patching)
try {
$result = $api_instance->patchCard($cardID, $body, $disableNotify);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->patchCard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $cardID = cardID_example; # String | Card ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk data patching)
eval {
my $result = $api_instance->patchCard(cardID => $cardID, body => $body, disableNotify => $disableNotify);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->patchCard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
cardID = cardID_example # String | Card ID (default to null)
body = Object # Object |
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk data patching) (optional) (default to null)
try:
# Patches the specified card.
api_response = api_instance.patch_card(cardID, body, disableNotify=disableNotify)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->patchCard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-patchCard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let cardID = cardID_example; // String
let body = Object; // Object
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.patchCard(cardID, body, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">cardID*</td>
<td>
<div id="d2e199_patchCard_cardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Card ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">the card patch</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "the card patch",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CardPatch"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_patchCard_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_patchCard_body"></div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_patchCard_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk data patching)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-patchCard-title-200"></h3>
<p id="examples-Default-patchCard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-patchCard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-patchCard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-patchCard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-patchCard-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchCard-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchCard-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchCard-200-schema">
<div id="responses-Default-patchCard-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {title=Card represents a group of content blocks and properties., x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchCard-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchCard-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchCard-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-patchCard-title-default"></h3>
<p id="examples-Default-patchCard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-patchCard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-patchCard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-patchCard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-patchCard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-patchCard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-patchCard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-patchCard-default-schema">
<div id="responses-Default-patchCard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-patchCard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-patchCard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-patchCard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-ping">
<article id="api-Default-ping-0" data-group="User" data-name="ping" data-version="0">
<div class="pull-left">
<h1>ping</h1>
<p>Responds with server metadata if the web service is running.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked"></p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/ping</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-ping-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-ping-0-java">Java</a></li>
<li class=""><a href="#examples-Default-ping-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-ping-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-ping-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-ping-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-ping-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-ping-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-ping-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-ping-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-ping-0-python">Python</a></li>
<li class=""><a href="#examples-Default-ping-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-ping-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
"http://localhost/api/v2/ping"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.ping();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#ping");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.ping();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#ping");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-ping-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-ping-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Responds with server metadata if the web service is running.
[apiInstance pingWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.ping(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-ping-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-ping-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class pingExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
try {
// Responds with server metadata if the web service is running.
apiInstance.ping();
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.ping: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
try {
$api_instance->ping();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->ping: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
eval {
$api_instance->ping();
};
if ($@) {
warn "Exception when calling DefaultApi->ping: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
try:
# Responds with server metadata if the web service is running.
api_instance.ping()
except ApiException as e:
print("Exception when calling DefaultApi->ping: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-ping-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let mut context = DefaultApi::Context::default();
let result = client.ping(&context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3 id="examples-Default-ping-title-200"></h3>
<p id="examples-Default-ping-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-ping-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-ping-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-ping-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-ping-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-ping-200-wrapper" style='margin-bottom: 10px;'>
</div>
</article>
</div>
<hr>
<div id="api-Default-postSharing">
<article id="api-Default-postSharing-0" data-group="User" data-name="postSharing" data-version="0">
<div class="pull-left">
<h1>postSharing</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Sets sharing information for a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/sharing</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-postSharing-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-postSharing-0-java">Java</a></li>
<li class=""><a href="#examples-Default-postSharing-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-postSharing-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-postSharing-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-postSharing-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-postSharing-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-postSharing-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-postSharing-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-postSharing-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-postSharing-0-python">Python</a></li>
<li class=""><a href="#examples-Default-postSharing-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-postSharing-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/sharing" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
apiInstance.postSharing(boardID, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#postSharing");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
Object body = Object; // Object |
try {
apiInstance.postSharing(boardID, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#postSharing");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-postSharing-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-postSharing-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
Object *body = Object; //
[apiInstance postSharingWith:boardID
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.postSharing(boardID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-postSharing-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-postSharing-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class postSharingExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var body = Object; // Object |
try {
apiInstance.postSharing(boardID, body);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.postSharing: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$body = Object; // Object |
try {
$api_instance->postSharing($boardID, $body);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->postSharing: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
$api_instance->postSharing(boardID => $boardID, body => $body);
};
if ($@) {
warn "Exception when calling DefaultApi->postSharing: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
body = Object # Object |
try:
api_instance.post_sharing(boardID, body)
except ApiException as e:
print("Exception when calling DefaultApi->postSharing: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-postSharing-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.postSharing(boardID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_postSharing_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">sharing information for a root block</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "sharing information for a root block",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Sharing"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_postSharing_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_postSharing_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-postSharing-title-200"></h3>
<p id="examples-Default-postSharing-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-postSharing-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-postSharing-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-postSharing-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-postSharing-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-postSharing-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-postSharing-title-default"></h3>
<p id="examples-Default-postSharing-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-postSharing-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-postSharing-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-postSharing-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-postSharing-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-postSharing-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-postSharing-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-postSharing-default-schema">
<div id="responses-Default-postSharing-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-postSharing-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-postSharing-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-postSharing-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-regenerateSignupToken">
<article id="api-Default-regenerateSignupToken-0" data-group="User" data-name="regenerateSignupToken" data-version="0">
<div class="pull-left">
<h1>regenerateSignupToken</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Regenerates the signup token for the root team</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/teams/{teamID}/regenerate_signup_token</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-regenerateSignupToken-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-java">Java</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-regenerateSignupToken-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-regenerateSignupToken-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-regenerateSignupToken-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-regenerateSignupToken-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-python">Python</a></li>
<li class=""><a href="#examples-Default-regenerateSignupToken-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-regenerateSignupToken-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/regenerate_signup_token"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
apiInstance.regenerateSignupToken(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#regenerateSignupToken");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
try {
apiInstance.regenerateSignupToken(teamID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#regenerateSignupToken");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
[apiInstance regenerateSignupTokenWith:teamID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.regenerateSignupToken(teamID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class regenerateSignupTokenExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
try {
apiInstance.regenerateSignupToken(teamID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.regenerateSignupToken: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
try {
$api_instance->regenerateSignupToken($teamID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->regenerateSignupToken: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
eval {
$api_instance->regenerateSignupToken(teamID => $teamID);
};
if ($@) {
warn "Exception when calling DefaultApi->regenerateSignupToken: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
try:
api_instance.regenerate_signup_token(teamID)
except ApiException as e:
print("Exception when calling DefaultApi->regenerateSignupToken: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-regenerateSignupToken-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.regenerateSignupToken(teamID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_regenerateSignupToken_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-regenerateSignupToken-title-200"></h3>
<p id="examples-Default-regenerateSignupToken-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-regenerateSignupToken-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-regenerateSignupToken-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-regenerateSignupToken-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-regenerateSignupToken-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-regenerateSignupToken-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-regenerateSignupToken-title-default"></h3>
<p id="examples-Default-regenerateSignupToken-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-regenerateSignupToken-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-regenerateSignupToken-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-regenerateSignupToken-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-regenerateSignupToken-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-regenerateSignupToken-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-regenerateSignupToken-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-regenerateSignupToken-default-schema">
<div id="responses-Default-regenerateSignupToken-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-regenerateSignupToken-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-regenerateSignupToken-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-regenerateSignupToken-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-register">
<article id="api-Default-register-0" data-group="User" data-name="register" data-version="0">
<div class="pull-left">
<h1>register</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Register new user</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/register</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-register-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-register-0-java">Java</a></li>
<li class=""><a href="#examples-Default-register-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-register-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-register-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-register-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-register-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-register-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-register-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-register-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-register-0-python">Python</a></li>
<li class=""><a href="#examples-Default-register-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-register-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/register" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
apiInstance.register(body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#register");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object body = Object; // Object |
try {
apiInstance.register(body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#register");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-register-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-register-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Object *body = Object; //
[apiInstance registerWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.register(body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-register-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-register-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class registerExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var body = Object; // Object |
try {
apiInstance.register(body);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.register: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = Object; // Object |
try {
$api_instance->register($body);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->register: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
$api_instance->register(body => $body);
};
if ($@) {
warn "Exception when calling DefaultApi->register: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = Object # Object |
try:
api_instance.register(body)
except ApiException as e:
print("Exception when calling DefaultApi->register: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-register-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.register(body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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>
<p class="marked">Register request</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Register request",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RegisterRequest"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_register_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_register_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-register-title-200"></h3>
<p id="examples-Default-register-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-register-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-register-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-register-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-register-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-register-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-register-title-401"></h3>
<p id="examples-Default-register-description-401" class="marked"></p>
<script>
var responseDefault401_description = `invalid registration token`;
var responseDefault401_description_break = responseDefault401_description.indexOf('\n');
if (responseDefault401_description_break == -1) {
$("#examples-Default-register-title-401").text("Status: 401 - " + responseDefault401_description);
} else {
$("#examples-Default-register-title-401").text("Status: 401 - " + responseDefault401_description.substring(0, responseDefault401_description_break));
$("#examples-Default-register-description-401").html(responseDefault401_description.substring(responseDefault401_description_break));
}
</script>
<ul id="responses-detail-Default-register-401" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-register-401-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-register-title-500"></h3>
<p id="examples-Default-register-description-500" class="marked"></p>
<script>
var responseDefault500_description = `internal error`;
var responseDefault500_description_break = responseDefault500_description.indexOf('\n');
if (responseDefault500_description_break == -1) {
$("#examples-Default-register-title-500").text("Status: 500 - " + responseDefault500_description);
} else {
$("#examples-Default-register-title-500").text("Status: 500 - " + responseDefault500_description.substring(0, responseDefault500_description_break));
$("#examples-Default-register-description-500").html(responseDefault500_description.substring(responseDefault500_description_break));
}
</script>
<ul id="responses-detail-Default-register-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-register-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-register-500-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-register-500-schema">
<div id="responses-Default-register-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-register-500-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-register-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-register-500-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-searchAllBoards">
<article id="api-Default-searchAllBoards-0" data-group="User" data-name="searchAllBoards" data-version="0">
<div class="pull-left">
<h1>searchAllBoards</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the boards that match with a search term</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/boards/search</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-searchAllBoards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-searchAllBoards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-searchAllBoards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-searchAllBoards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-searchAllBoards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-searchAllBoards-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-searchAllBoards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/search?q=q_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchAllBoards(q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchAllBoards");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchAllBoards(q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchAllBoards");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-searchAllBoards-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-searchAllBoards-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *q = q_example; // The search term. Must have at least one character (default to null)
[apiInstance searchAllBoardsWith:q
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var q = q_example; // {String} The search term. Must have at least one character
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchAllBoards(q, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-searchAllBoards-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-searchAllBoards-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class searchAllBoardsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var q = q_example; // String | The search term. Must have at least one character (default to null)
try {
array[Object] result = apiInstance.searchAllBoards(q);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.searchAllBoards: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$q = q_example; // String | The search term. Must have at least one character
try {
$result = $api_instance->searchAllBoards($q);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchAllBoards: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $q = q_example; # String | The search term. Must have at least one character
eval {
my $result = $api_instance->searchAllBoards(q => $q);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->searchAllBoards: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
q = q_example # String | The search term. Must have at least one character (default to null)
try:
api_response = api_instance.search_all_boards(q)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->searchAllBoards: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchAllBoards-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let q = q_example; // String
let mut context = DefaultApi::Context::default();
let result = client.searchAllBoards(q, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<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;">q*</td>
<td>
<div id="d2e199_searchAllBoards_q">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
The search term. Must have at least one character
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-searchAllBoards-title-200"></h3>
<p id="examples-Default-searchAllBoards-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-searchAllBoards-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-searchAllBoards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-searchAllBoards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-searchAllBoards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchAllBoards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchAllBoards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchAllBoards-200-schema">
<div id="responses-Default-searchAllBoards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchAllBoards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchAllBoards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchAllBoards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-searchAllBoards-title-default"></h3>
<p id="examples-Default-searchAllBoards-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-searchAllBoards-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-searchAllBoards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-searchAllBoards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-searchAllBoards-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchAllBoards-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchAllBoards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchAllBoards-default-schema">
<div id="responses-Default-searchAllBoards-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchAllBoards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchAllBoards-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchAllBoards-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-searchBoards">
<article id="api-Default-searchBoards-0" data-group="User" data-name="searchBoards" data-version="0">
<div class="pull-left">
<h1>searchBoards</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the boards that match with a search term in the team</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/boards/search</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-searchBoards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-searchBoards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-searchBoards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-searchBoards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-searchBoards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-searchBoards-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-searchBoards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/boards/search?q=q_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchBoards(teamID, q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchBoards");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchBoards(teamID, q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchBoards");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-searchBoards-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-searchBoards-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *q = q_example; // The search term. Must have at least one character (default to null)
[apiInstance searchBoardsWith:teamID
q:q
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var q = q_example; // {String} The search term. Must have at least one character
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchBoards(teamID, q, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-searchBoards-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-searchBoards-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class searchBoardsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var q = q_example; // String | The search term. Must have at least one character (default to null)
try {
array[Object] result = apiInstance.searchBoards(teamID, q);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.searchBoards: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$q = q_example; // String | The search term. Must have at least one character
try {
$result = $api_instance->searchBoards($teamID, $q);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchBoards: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $q = q_example; # String | The search term. Must have at least one character
eval {
my $result = $api_instance->searchBoards(teamID => $teamID, q => $q);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->searchBoards: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
q = q_example # String | The search term. Must have at least one character (default to null)
try:
api_response = api_instance.search_boards(teamID, q)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->searchBoards: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchBoards-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let q = q_example; // String
let mut context = DefaultApi::Context::default();
let result = client.searchBoards(teamID, q, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_searchBoards_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">q*</td>
<td>
<div id="d2e199_searchBoards_q">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
The search term. Must have at least one character
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-searchBoards-title-200"></h3>
<p id="examples-Default-searchBoards-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-searchBoards-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-searchBoards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-searchBoards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-searchBoards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchBoards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchBoards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchBoards-200-schema">
<div id="responses-Default-searchBoards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchBoards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchBoards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchBoards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-searchBoards-title-default"></h3>
<p id="examples-Default-searchBoards-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-searchBoards-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-searchBoards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-searchBoards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-searchBoards-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchBoards-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchBoards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchBoards-default-schema">
<div id="responses-Default-searchBoards-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchBoards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchBoards-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchBoards-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-searchLinkableBoards">
<article id="api-Default-searchLinkableBoards-0" data-group="User" data-name="searchLinkableBoards" data-version="0">
<div class="pull-left">
<h1>searchLinkableBoards</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the boards that match with a search term in the team and the
user has permission to manage members</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/boards/search/linkable</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-searchLinkableBoards-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-java">Java</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-searchLinkableBoards-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-searchLinkableBoards-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-searchLinkableBoards-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-searchLinkableBoards-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-python">Python</a></li>
<li class=""><a href="#examples-Default-searchLinkableBoards-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-searchLinkableBoards-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/boards/search/linkable?q=q_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchLinkableBoards(teamID, q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchLinkableBoards");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String q = q_example; // String | The search term. Must have at least one character
try {
array[Object] result = apiInstance.searchLinkableBoards(teamID, q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchLinkableBoards");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *q = q_example; // The search term. Must have at least one character (default to null)
[apiInstance searchLinkableBoardsWith:teamID
q:q
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var q = q_example; // {String} The search term. Must have at least one character
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchLinkableBoards(teamID, q, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class searchLinkableBoardsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var q = q_example; // String | The search term. Must have at least one character (default to null)
try {
array[Object] result = apiInstance.searchLinkableBoards(teamID, q);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.searchLinkableBoards: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$q = q_example; // String | The search term. Must have at least one character
try {
$result = $api_instance->searchLinkableBoards($teamID, $q);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchLinkableBoards: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $q = q_example; # String | The search term. Must have at least one character
eval {
my $result = $api_instance->searchLinkableBoards(teamID => $teamID, q => $q);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->searchLinkableBoards: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
q = q_example # String | The search term. Must have at least one character (default to null)
try:
api_response = api_instance.search_linkable_boards(teamID, q)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->searchLinkableBoards: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchLinkableBoards-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let q = q_example; // String
let mut context = DefaultApi::Context::default();
let result = client.searchLinkableBoards(teamID, q, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_searchLinkableBoards_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">q*</td>
<td>
<div id="d2e199_searchLinkableBoards_q">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
The search term. Must have at least one character
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-searchLinkableBoards-title-200"></h3>
<p id="examples-Default-searchLinkableBoards-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-searchLinkableBoards-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-searchLinkableBoards-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-searchLinkableBoards-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-searchLinkableBoards-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchLinkableBoards-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchLinkableBoards-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchLinkableBoards-200-schema">
<div id="responses-Default-searchLinkableBoards-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchLinkableBoards-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchLinkableBoards-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchLinkableBoards-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-searchLinkableBoards-title-default"></h3>
<p id="examples-Default-searchLinkableBoards-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-searchLinkableBoards-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-searchLinkableBoards-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-searchLinkableBoards-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-searchLinkableBoards-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchLinkableBoards-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchLinkableBoards-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchLinkableBoards-default-schema">
<div id="responses-Default-searchLinkableBoards-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchLinkableBoards-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchLinkableBoards-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchLinkableBoards-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-searchMyChannels">
<article id="api-Default-searchMyChannels-0" data-group="User" data-name="searchMyChannels" data-version="0">
<div class="pull-left">
<h1>searchMyChannels</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Returns the user available channels</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/teams/{teamID}/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-searchMyChannels-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-java">Java</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-searchMyChannels-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-searchMyChannels-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-searchMyChannels-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-searchMyChannels-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-python">Python</a></li>
<li class=""><a href="#examples-Default-searchMyChannels-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-searchMyChannels-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/channels?search=search_example"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String search = search_example; // String | string to filter channels list
try {
array[Channel] result = apiInstance.searchMyChannels(teamID, search);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchMyChannels");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String search = search_example; // String | string to filter channels list
try {
array[Channel] result = apiInstance.searchMyChannels(teamID, search);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchMyChannels");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-searchMyChannels-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-searchMyChannels-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *search = search_example; // string to filter channels list (optional) (default to null)
[apiInstance searchMyChannelsWith:teamID
search:search
completionHandler: ^(array[Channel] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var opts = {
'search': search_example // {String} string to filter channels list
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchMyChannels(teamID, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-searchMyChannels-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-searchMyChannels-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class searchMyChannelsExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var search = search_example; // String | string to filter channels list (optional) (default to null)
try {
array[Channel] result = apiInstance.searchMyChannels(teamID, search);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.searchMyChannels: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$search = search_example; // String | string to filter channels list
try {
$result = $api_instance->searchMyChannels($teamID, $search);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchMyChannels: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $search = search_example; # String | string to filter channels list
eval {
my $result = $api_instance->searchMyChannels(teamID => $teamID, search => $search);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->searchMyChannels: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
search = search_example # String | string to filter channels list (optional) (default to null)
try:
api_response = api_instance.search_my_channels(teamID, search=search)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->searchMyChannels: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-searchMyChannels-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let search = search_example; // String
let mut context = DefaultApi::Context::default();
let result = client.searchMyChannels(teamID, search, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_searchMyChannels_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">search</td>
<td>
<div id="d2e199_searchMyChannels_search">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
string to filter channels list
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-searchMyChannels-title-200"></h3>
<p id="examples-Default-searchMyChannels-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-searchMyChannels-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-searchMyChannels-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-searchMyChannels-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-searchMyChannels-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchMyChannels-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchMyChannels-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchMyChannels-200-schema">
<div id="responses-Default-searchMyChannels-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchMyChannels-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchMyChannels-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchMyChannels-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-searchMyChannels-title-default"></h3>
<p id="examples-Default-searchMyChannels-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-searchMyChannels-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-searchMyChannels-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-searchMyChannels-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-searchMyChannels-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-searchMyChannels-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-searchMyChannels-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-searchMyChannels-default-schema">
<div id="responses-Default-searchMyChannels-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-searchMyChannels-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-searchMyChannels-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-searchMyChannels-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-undeleteBlock">
<article id="api-Default-undeleteBlock-0" data-group="User" data-name="undeleteBlock" data-version="0">
<div class="pull-left">
<h1>undeleteBlock</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Undeletes a block</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/blocks/{blockID}/undelete</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-undeleteBlock-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-java">Java</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-undeleteBlock-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-undeleteBlock-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-undeleteBlock-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-undeleteBlock-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-python">Python</a></li>
<li class=""><a href="#examples-Default-undeleteBlock-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-undeleteBlock-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks/{blockID}/undelete"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to undelete
try {
Object result = apiInstance.undeleteBlock(boardID, blockID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#undeleteBlock");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String blockID = blockID_example; // String | ID of block to undelete
try {
Object result = apiInstance.undeleteBlock(boardID, blockID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#undeleteBlock");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-undeleteBlock-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-undeleteBlock-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *blockID = blockID_example; // ID of block to undelete (default to null)
[apiInstance undeleteBlockWith:boardID
blockID:blockID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var blockID = blockID_example; // {String} ID of block to undelete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.undeleteBlock(boardID, blockID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-undeleteBlock-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-undeleteBlock-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class undeleteBlockExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var blockID = blockID_example; // String | ID of block to undelete (default to null)
try {
Object result = apiInstance.undeleteBlock(boardID, blockID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.undeleteBlock: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$blockID = blockID_example; // String | ID of block to undelete
try {
$result = $api_instance->undeleteBlock($boardID, $blockID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->undeleteBlock: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $blockID = blockID_example; # String | ID of block to undelete
eval {
my $result = $api_instance->undeleteBlock(boardID => $boardID, blockID => $blockID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->undeleteBlock: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
blockID = blockID_example # String | ID of block to undelete (default to null)
try:
api_response = api_instance.undelete_block(boardID, blockID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->undeleteBlock: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBlock-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let blockID = blockID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.undeleteBlock(boardID, blockID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_undeleteBlock_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">blockID*</td>
<td>
<div id="d2e199_undeleteBlock_blockID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of block to undelete
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-undeleteBlock-title-200"></h3>
<p id="examples-Default-undeleteBlock-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-undeleteBlock-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-undeleteBlock-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-undeleteBlock-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-undeleteBlock-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-undeleteBlock-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-undeleteBlock-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-undeleteBlock-200-schema">
<div id="responses-Default-undeleteBlock-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BlockPatch is a patch for modify blocks, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-undeleteBlock-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-undeleteBlock-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-undeleteBlock-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-undeleteBlock-title-404"></h3>
<p id="examples-Default-undeleteBlock-description-404" class="marked"></p>
<script>
var responseDefault404_description = `block not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-undeleteBlock-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-undeleteBlock-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-undeleteBlock-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-undeleteBlock-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-undeleteBlock-404-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-undeleteBlock-title-default"></h3>
<p id="examples-Default-undeleteBlock-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-undeleteBlock-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-undeleteBlock-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-undeleteBlock-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-undeleteBlock-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-undeleteBlock-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-undeleteBlock-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-undeleteBlock-default-schema">
<div id="responses-Default-undeleteBlock-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-undeleteBlock-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-undeleteBlock-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-undeleteBlock-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-undeleteBoard">
<article id="api-Default-undeleteBoard-0" data-group="User" data-name="undeleteBoard" data-version="0">
<div class="pull-left">
<h1>undeleteBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Undeletes a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/undelete</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-undeleteBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-undeleteBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-undeleteBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-undeleteBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-undeleteBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-undeleteBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-undeleteBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/boards/{boardID}/undelete"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | ID of board to undelete
try {
apiInstance.undeleteBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#undeleteBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | ID of board to undelete
try {
apiInstance.undeleteBoard(boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#undeleteBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-undeleteBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-undeleteBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // ID of board to undelete (default to null)
[apiInstance undeleteBoardWith:boardID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} ID of board to undelete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.undeleteBoard(boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-undeleteBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-undeleteBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class undeleteBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | ID of board to undelete (default to null)
try {
apiInstance.undeleteBoard(boardID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.undeleteBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | ID of board to undelete
try {
$api_instance->undeleteBoard($boardID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->undeleteBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | ID of board to undelete
eval {
$api_instance->undeleteBoard(boardID => $boardID);
};
if ($@) {
warn "Exception when calling DefaultApi->undeleteBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | ID of board to undelete (default to null)
try:
api_instance.undelete_board(boardID)
except ApiException as e:
print("Exception when calling DefaultApi->undeleteBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-undeleteBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.undeleteBoard(boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_undeleteBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of board to undelete
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-undeleteBoard-title-200"></h3>
<p id="examples-Default-undeleteBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-undeleteBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-undeleteBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-undeleteBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-undeleteBoard-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-undeleteBoard-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-undeleteBoard-title-default"></h3>
<p id="examples-Default-undeleteBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-undeleteBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-undeleteBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-undeleteBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-undeleteBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-undeleteBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-undeleteBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-undeleteBoard-default-schema">
<div id="responses-Default-undeleteBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-undeleteBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-undeleteBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-undeleteBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-updateBlocks">
<article id="api-Default-updateBlocks-0" data-group="User" data-name="updateBlocks" data-version="0">
<div class="pull-left">
<h1>updateBlocks</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Insert blocks. The specified IDs will only be used to link
blocks with existing ones, the rest will be replaced by server
generated IDs</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/boards/{boardID}/blocks</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-updateBlocks-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-java">Java</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-updateBlocks-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-updateBlocks-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-updateBlocks-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-updateBlocks-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-python">Python</a></li>
<li class=""><a href="#examples-Default-updateBlocks-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-updateBlocks-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/blocks?disable_notify=" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
array[Object] body = ; // array[Object] |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk inserting)
try {
array[Object] result = apiInstance.updateBlocks(boardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateBlocks");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
array[Object] body = ; // array[Object] |
oas_any_type_not_mapped disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk inserting)
try {
array[Object] result = apiInstance.updateBlocks(boardID, body, disableNotify);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateBlocks");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-updateBlocks-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-updateBlocks-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
array[Object] *body = ; //
oas_any_type_not_mapped *disableNotify = ; // Disables notifications (for bulk inserting) (optional) (default to null)
[apiInstance updateBlocksWith:boardID
body:body
disableNotify:disableNotify
completionHandler: ^(array[Object] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var body = ; // {array[Object]}
var opts = {
'disableNotify': // {oas_any_type_not_mapped} Disables notifications (for bulk inserting)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateBlocks(boardID, body, opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-updateBlocks-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-updateBlocks-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateBlocksExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var body = new array[Object](); // array[Object] |
var disableNotify = new oas_any_type_not_mapped(); // oas_any_type_not_mapped | Disables notifications (for bulk inserting) (optional) (default to null)
try {
array[Object] result = apiInstance.updateBlocks(boardID, body, disableNotify);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.updateBlocks: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$body = ; // array[Object] |
$disableNotify = ; // oas_any_type_not_mapped | Disables notifications (for bulk inserting)
try {
$result = $api_instance->updateBlocks($boardID, $body, $disableNotify);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateBlocks: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $body = [WWW::OPenAPIClient::Object::array[Object]->new()]; # array[Object] |
my $disableNotify = ; # oas_any_type_not_mapped | Disables notifications (for bulk inserting)
eval {
my $result = $api_instance->updateBlocks(boardID => $boardID, body => $body, disableNotify => $disableNotify);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->updateBlocks: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
body = # array[Object] |
disableNotify = # oas_any_type_not_mapped | Disables notifications (for bulk inserting) (optional) (default to null)
try:
api_response = api_instance.update_blocks(boardID, body, disableNotify=disableNotify)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->updateBlocks: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateBlocks-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let body = ; // array[Object]
let disableNotify = ; // oas_any_type_not_mapped
let mut context = DefaultApi::Context::default();
let result = client.updateBlocks(boardID, body, disableNotify, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_updateBlocks_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">array of blocks to insert or update</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "array of blocks to insert or update",
"content" : {
"application/json" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Block"
}
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_updateBlocks_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_updateBlocks_body"></div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">disable_notify</td>
<td>
<div id="d2e199_updateBlocks_disableNotify">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
oas_any_type_not_mapped
</span>
<div class="inner description marked">
Disables notifications (for bulk inserting)
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-updateBlocks-title-200"></h3>
<p id="examples-Default-updateBlocks-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-updateBlocks-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-updateBlocks-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-updateBlocks-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-updateBlocks-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateBlocks-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-updateBlocks-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateBlocks-200-schema">
<div id="responses-Default-updateBlocks-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = ;
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateBlocks-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateBlocks-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateBlocks-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-updateBlocks-title-default"></h3>
<p id="examples-Default-updateBlocks-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-updateBlocks-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-updateBlocks-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-updateBlocks-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-updateBlocks-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateBlocks-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-updateBlocks-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateBlocks-default-schema">
<div id="responses-Default-updateBlocks-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateBlocks-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateBlocks-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateBlocks-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-updateCategory">
<article id="api-Default-updateCategory-0" data-group="User" data-name="updateCategory" data-version="0">
<div class="pull-left">
<h1>updateCategory</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Create a category for boards</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/teams/{teamID}/categories/{categoryID}</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-updateCategory-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-java">Java</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-updateCategory-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-updateCategory-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-updateCategory-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-updateCategory-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-python">Python</a></li>
<li class=""><a href="#examples-Default-updateCategory-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-updateCategory-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/teams/{teamID}/categories/{categoryID}" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
Object body = Object; // Object |
try {
Object result = apiInstance.updateCategory(teamID, categoryID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateCategory");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
Object body = Object; // Object |
try {
Object result = apiInstance.updateCategory(teamID, categoryID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateCategory");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-updateCategory-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-updateCategory-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *categoryID = categoryID_example; // Category ID (default to null)
Object *body = Object; //
[apiInstance updateCategoryWith:teamID
categoryID:categoryID
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var categoryID = categoryID_example; // {String} Category ID
var body = Object; // {Object}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateCategory(teamID, categoryID, body, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-updateCategory-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-updateCategory-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateCategoryExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var categoryID = categoryID_example; // String | Category ID (default to null)
var body = Object; // Object |
try {
Object result = apiInstance.updateCategory(teamID, categoryID, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.updateCategory: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$categoryID = categoryID_example; // String | Category ID
$body = Object; // Object |
try {
$result = $api_instance->updateCategory($teamID, $categoryID, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateCategory: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $categoryID = categoryID_example; # String | Category ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
my $result = $api_instance->updateCategory(teamID => $teamID, categoryID => $categoryID, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->updateCategory: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
categoryID = categoryID_example # String | Category ID (default to null)
body = Object # Object |
try:
api_response = api_instance.update_category(teamID, categoryID, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->updateCategory: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategory-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let categoryID = categoryID_example; // String
let body = Object; // Object
let mut context = DefaultApi::Context::default();
let result = client.updateCategory(teamID, categoryID, body, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_updateCategory_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">categoryID*</td>
<td>
<div id="d2e199_updateCategory_categoryID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Category ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">body <span style="color:red;">*</span></td>
<td>
<p class="marked">category to update</p>
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "category to update",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Category"
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_updateCategory_body');
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_updateCategory_body"></div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-updateCategory-title-200"></h3>
<p id="examples-Default-updateCategory-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-updateCategory-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-updateCategory-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-updateCategory-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-updateCategory-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateCategory-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-updateCategory-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateCategory-200-schema">
<div id="responses-Default-updateCategory-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=Category is a board category, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateCategory-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateCategory-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateCategory-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-updateCategory-title-default"></h3>
<p id="examples-Default-updateCategory-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-updateCategory-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-updateCategory-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-updateCategory-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-updateCategory-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateCategory-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-updateCategory-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateCategory-default-schema">
<div id="responses-Default-updateCategory-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateCategory-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateCategory-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateCategory-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-updateCategoryBoard">
<article id="api-Default-updateCategoryBoard-0" data-group="User" data-name="updateCategoryBoard" data-version="0">
<div class="pull-left">
<h1>updateCategoryBoard</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Set the category of a board</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/teams/{teamID}/categories/{categoryID}/boards/{boardID}</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-updateCategoryBoard-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-java">Java</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-updateCategoryBoard-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-updateCategoryBoard-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-updateCategoryBoard-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-updateCategoryBoard-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-python">Python</a></li>
<li class=""><a href="#examples-Default-updateCategoryBoard-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-updateCategoryBoard-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
"http://localhost/api/v2/teams/{teamID}/categories/{categoryID}/boards/{boardID}"
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
String boardID = boardID_example; // String | Board ID
try {
apiInstance.updateCategoryBoard(teamID, categoryID, boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateCategoryBoard");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | Team ID
String categoryID = categoryID_example; // String | Category ID
String boardID = boardID_example; // String | Board ID
try {
apiInstance.updateCategoryBoard(teamID, categoryID, boardID);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateCategoryBoard");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // Team ID (default to null)
String *categoryID = categoryID_example; // Category ID (default to null)
String *boardID = boardID_example; // Board ID (default to null)
[apiInstance updateCategoryBoardWith:teamID
categoryID:categoryID
boardID:boardID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} Team ID
var categoryID = categoryID_example; // {String} Category ID
var boardID = boardID_example; // {String} Board ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.updateCategoryBoard(teamID, categoryID, boardID, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateCategoryBoardExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | Team ID (default to null)
var categoryID = categoryID_example; // String | Category ID (default to null)
var boardID = boardID_example; // String | Board ID (default to null)
try {
apiInstance.updateCategoryBoard(teamID, categoryID, boardID);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.updateCategoryBoard: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | Team ID
$categoryID = categoryID_example; // String | Category ID
$boardID = boardID_example; // String | Board ID
try {
$api_instance->updateCategoryBoard($teamID, $categoryID, $boardID);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateCategoryBoard: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | Team ID
my $categoryID = categoryID_example; # String | Category ID
my $boardID = boardID_example; # String | Board ID
eval {
$api_instance->updateCategoryBoard(teamID => $teamID, categoryID => $categoryID, boardID => $boardID);
};
if ($@) {
warn "Exception when calling DefaultApi->updateCategoryBoard: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | Team ID (default to null)
categoryID = categoryID_example # String | Category ID (default to null)
boardID = boardID_example # String | Board ID (default to null)
try:
api_instance.update_category_board(teamID, categoryID, boardID)
except ApiException as e:
print("Exception when calling DefaultApi->updateCategoryBoard: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateCategoryBoard-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let categoryID = categoryID_example; // String
let boardID = boardID_example; // String
let mut context = DefaultApi::Context::default();
let result = client.updateCategoryBoard(teamID, categoryID, boardID, &context).wait();
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_updateCategoryBoard_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Team ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">categoryID*</td>
<td>
<div id="d2e199_updateCategoryBoard_categoryID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Category ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_updateCategoryBoard_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-updateCategoryBoard-title-200"></h3>
<p id="examples-Default-updateCategoryBoard-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-updateCategoryBoard-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-updateCategoryBoard-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-updateCategoryBoard-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-updateCategoryBoard-200" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-updateCategoryBoard-200-wrapper" style='margin-bottom: 10px;'>
</div>
<h3 id="examples-Default-updateCategoryBoard-title-default"></h3>
<p id="examples-Default-updateCategoryBoard-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-updateCategoryBoard-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-updateCategoryBoard-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-updateCategoryBoard-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-updateCategoryBoard-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateCategoryBoard-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-updateCategoryBoard-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateCategoryBoard-default-schema">
<div id="responses-Default-updateCategoryBoard-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateCategoryBoard-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateCategoryBoard-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateCategoryBoard-default-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-updateMember">
<article id="api-Default-updateMember-0" data-group="User" data-name="updateMember" data-version="0">
<div class="pull-left">
<h1>updateMember</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Updates a board member</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/boards/{boardID}/members/{userID}</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-updateMember-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-updateMember-0-java">Java</a></li>
<li class=""><a href="#examples-Default-updateMember-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-updateMember-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-updateMember-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-updateMember-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-updateMember-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-updateMember-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-updateMember-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-updateMember-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-updateMember-0-python">Python</a></li>
<li class=""><a href="#examples-Default-updateMember-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-updateMember-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/boards/{boardID}/members/{userID}" \
-d ''
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String userID = userID_example; // String | User ID
Object body = Object; // Object |
try {
Object result = apiInstance.updateMember(boardID, userID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateMember");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String boardID = boardID_example; // String | Board ID
String userID = userID_example; // String | User ID
Object body = Object; // Object |
try {
Object result = apiInstance.updateMember(boardID, userID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateMember");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-updateMember-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-updateMember-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *boardID = boardID_example; // Board ID (default to null)
String *userID = userID_example; // User ID (default to null)
Object *body = Object; //
2021-02-17 21:29:20 +02:00
[apiInstance updateMemberWith:boardID
userID:userID
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var boardID = boardID_example; // {String} Board ID
var userID = userID_example; // {String} User ID
var body = Object; // {Object}
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
2021-02-17 21:29:20 +02:00
}
};
api.updateMember(boardID, userID, body, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-updateMember-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-updateMember-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateMemberExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var boardID = boardID_example; // String | Board ID (default to null)
var userID = userID_example; // String | User ID (default to null)
var body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.updateMember(boardID, userID, body);
Debug.WriteLine(result);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.updateMember: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$boardID = boardID_example; // String | Board ID
$userID = userID_example; // String | User ID
$body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
$result = $api_instance->updateMember($boardID, $userID, $body);
print_r($result);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateMember: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $boardID = boardID_example; # String | Board ID
my $userID = userID_example; # String | User ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
2021-02-17 21:29:20 +02:00
eval {
my $result = $api_instance->updateMember(boardID => $boardID, userID => $userID, body => $body);
print Dumper($result);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->updateMember: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
2021-02-17 21:29:20 +02:00
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
boardID = boardID_example # String | Board ID (default to null)
userID = userID_example # String | User ID (default to null)
body = Object # Object |
2021-02-17 21:29:20 +02:00
try:
api_response = api_instance.update_member(boardID, userID, body)
pprint(api_response)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->updateMember: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-updateMember-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let boardID = boardID_example; // String
let userID = userID_example; // String
let body = Object; // Object
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.updateMember(boardID, userID, body, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_updateMember_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">userID*</td>
<td>
<div id="d2e199_updateMember_userID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<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>
<p class="marked">membership to replace the current one with</p>
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "membership to replace the current one with",
2021-02-17 21:29:20 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/BoardMember"
2021-02-17 21:29:20 +02:00
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_updateMember_body');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_updateMember_body"></div>
2021-02-17 21:29:20 +02:00
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-updateMember-title-200"></h3>
<p id="examples-Default-updateMember-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-updateMember-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-updateMember-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-updateMember-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-updateMember-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateMember-200-schema">Schema</a>
</li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-updateMember-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateMember-200-schema">
<div id="responses-Default-updateMember-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=BoardMember stores the information of the membership of a user on a board, x-go-package=github.com/mattermost/focalboard/server/model};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateMember-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateMember-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateMember-200-schema-data' type='hidden' value=''></input>
</div>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-updateMember-title-default"></h3>
<p id="examples-Default-updateMember-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-updateMember-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-updateMember-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-updateMember-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-updateMember-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateMember-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-updateMember-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateMember-default-schema">
<div id="responses-Default-updateMember-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateMember-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateMember-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateMember-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-updateUserConfig">
<article id="api-Default-updateUserConfig-0" data-group="User" data-name="updateUserConfig" data-version="0">
2021-02-17 21:29:20 +02:00
<div class="pull-left">
<h1>updateUserConfig</h1>
2021-02-17 21:29:20 +02:00
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Updates user config</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/users/{userID}/config</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-updateUserConfig-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-java">Java</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-updateUserConfig-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-updateUserConfig-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-updateUserConfig-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-updateUserConfig-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-python">Python</a></li>
<li class=""><a href="#examples-Default-updateUserConfig-0-rust">Rust</a></li>
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-updateUserConfig-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/v2/users/{userID}/config" \
-d ''
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-java">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
Object body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.updateUserConfig(userID, body);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateUserConfig");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-android">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String userID = userID_example; // String | User ID
Object body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.updateUserConfig(userID, body);
2021-02-17 21:29:20 +02:00
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#updateUserConfig");
2021-02-17 21:29:20 +02:00
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-updateUserConfig-0-groovy">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-updateUserConfig-0-objc">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userID = userID_example; // User ID (default to null)
Object *body = Object; //
2021-02-17 21:29:20 +02:00
[apiInstance updateUserConfigWith:userID
2021-03-26 20:01:54 +02:00
body:body
completionHandler: ^(NSError* error) {
2021-02-17 21:29:20 +02:00
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var userID = userID_example; // {String} User ID
var body = Object; // {Object}
2021-02-17 21:29:20 +02:00
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
2021-02-17 21:29:20 +02:00
}
};
api.updateUserConfig(userID, body, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-updateUserConfig-0-angular">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-updateUserConfig-0-csharp">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateUserConfigExample
2021-02-17 21:29:20 +02:00
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var userID = userID_example; // String | User ID (default to null)
var body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
apiInstance.updateUserConfig(userID, body);
2021-02-17 21:29:20 +02:00
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.updateUserConfig: " + e.Message );
2021-02-17 21:29:20 +02:00
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-php">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userID = userID_example; // String | User ID
$body = Object; // Object |
2021-02-17 21:29:20 +02:00
try {
$api_instance->updateUserConfig($userID, $body);
2021-02-17 21:29:20 +02:00
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateUserConfig: ', $e->getMessage(), PHP_EOL;
2021-02-17 21:29:20 +02:00
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-perl">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userID = userID_example; # String | User ID
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
2021-02-17 21:29:20 +02:00
eval {
$api_instance->updateUserConfig(userID => $userID, body => $body);
2021-02-17 21:29:20 +02:00
};
if ($@) {
warn "Exception when calling DefaultApi->updateUserConfig: $@\n";
2021-02-17 21:29:20 +02:00
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-python">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userID = userID_example # String | User ID (default to null)
body = Object # Object |
2021-02-17 21:29:20 +02:00
try:
api_instance.update_user_config(userID, body)
2021-02-17 21:29:20 +02:00
except ApiException as e:
print("Exception when calling DefaultApi->updateUserConfig: %s\n" % e)</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-updateUserConfig-0-rust">
2021-02-17 21:29:20 +02:00
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let userID = userID_example; // String
let body = Object; // Object
2021-02-17 21:29:20 +02:00
let mut context = DefaultApi::Context::default();
let result = client.updateUserConfig(userID, body, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
2021-03-26 20:01:54 +02:00
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">userID*</td>
2021-03-26 20:01:54 +02:00
<td>
<div id="d2e199_updateUserConfig_userID">
2021-03-26 20:01:54 +02:00
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
User ID
2021-03-26 20:01:54 +02:00
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<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>
<p class="marked">User config patch to apply</p>
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "User config patch to apply",
2021-02-17 21:29:20 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/UserPreferencesPatch"
2021-02-17 21:29:20 +02:00
}
}
},
"required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
var result = $('#d2e199_updateUserConfig_body');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
<div id="d2e199_updateUserConfig_body"></div>
2021-02-17 21:29:20 +02:00
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-updateUserConfig-title-200"></h3>
<p id="examples-Default-updateUserConfig-description-200" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-updateUserConfig-title-200").text("Status: 200 - " + responseDefault200_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-updateUserConfig-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-updateUserConfig-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-updateUserConfig-200" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
</ul>
<div class="tab-content" id="responses-Default-updateUserConfig-200-wrapper" style='margin-bottom: 10px;'>
2021-02-17 21:29:20 +02:00
</div>
<h3 id="examples-Default-updateUserConfig-title-default"></h3>
<p id="examples-Default-updateUserConfig-description-default" class="marked"></p>
2021-02-17 21:29:20 +02:00
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-updateUserConfig-title-default").text("Status: default - " + responseDefaultdefault_description);
2021-02-17 21:29:20 +02:00
} else {
$("#examples-Default-updateUserConfig-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-updateUserConfig-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
2021-02-17 21:29:20 +02:00
}
</script>
<ul id="responses-detail-Default-updateUserConfig-default" class="nav nav-tabs nav-tabs-examples" >
2021-02-17 21:29:20 +02:00
<li class="active">
<a data-toggle="tab" href="#responses-Default-updateUserConfig-default-schema">Schema</a>
2021-02-17 21:29:20 +02:00
</li>
</ul>
<div class="tab-content" id="responses-Default-updateUserConfig-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-updateUserConfig-default-schema">
<div id="responses-Default-updateUserConfig-schema-default" class="exampleStyle">
2021-02-17 21:29:20 +02:00
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-updateUserConfig-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-updateUserConfig-schema-default');
2021-02-17 21:29:20 +02:00
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-updateUserConfig-default-schema-data' type='hidden' value=''></input>
2021-02-17 21:29:20 +02:00
</div>
</div>
</article>
</div>
<hr>
<div id="api-Default-uploadFile">
<article id="api-Default-uploadFile-0" data-group="User" data-name="uploadFile" data-version="0">
<div class="pull-left">
<h1>uploadFile</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Upload a binary file, attached to a root block</p>
2021-02-17 21:29:20 +02:00
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/teams/{teamID}/boards/{boardID}/files</span></code></pre>
2021-02-17 21:29:20 +02:00
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Default-uploadFile-0-curl">Curl</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-java">Java</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Default-uploadFile-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Default-uploadFile-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Default-uploadFile-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Default-uploadFile-0-csharp">C#</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-php">PHP</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-perl">Perl</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-python">Python</a></li>
<li class=""><a href="#examples-Default-uploadFile-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Default-uploadFile-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST \
-H "Authorization: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: multipart/form-data" \
"http://localhost/api/v2/teams/{teamID}/boards/{boardID}/files"
</code></pre>
2021-02-17 21:29:20 +02:00
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
ApiKeyAuth BearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("BearerAuth");
BearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.setApiKeyPrefix("Token");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | ID of the team
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
File uploaded file = BINARY_DATA_HERE; // File | The file to upload
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.uploadFile(teamID, boardID, uploaded file);
2021-02-17 21:29:20 +02:00
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#uploadFile");
e.printStackTrace();
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String teamID = teamID_example; // String | ID of the team
String boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
File uploaded file = BINARY_DATA_HERE; // File | The file to upload
2021-02-17 21:29:20 +02:00
try {
Object result = apiInstance.uploadFile(teamID, boardID, uploaded file);
2021-02-17 21:29:20 +02:00
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#uploadFile");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Default-uploadFile-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Default-uploadFile-0-objc">
<pre class="prettyprint"><code class="language-cpp">Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: BearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *teamID = teamID_example; // ID of the team (default to null)
String *boardID = boardID_example; // Board ID (default to null)
2021-02-17 21:29:20 +02:00
File *uploaded file = BINARY_DATA_HERE; // The file to upload (optional) (default to null)
[apiInstance uploadFileWith:teamID
boardID:boardID
uploaded file:uploaded file
completionHandler: ^(Object output, NSError* error) {
2021-02-17 21:29:20 +02:00
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-javascript">
<pre class="prettyprint"><code class="language-js">var FocalboardServer = require('focalboard_server');
var defaultClient = FocalboardServer.ApiClient.instance;
2021-02-17 21:29:20 +02:00
// Configure API key authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerAuth.apiKeyPrefix['Authorization'] = "Token";
// Create an instance of the API class
var api = new FocalboardServer.DefaultApi()
var teamID = teamID_example; // {String} ID of the team
var boardID = boardID_example; // {String} Board ID
2021-02-17 21:29:20 +02:00
var opts = {
'uploaded file': BINARY_DATA_HERE // {File} The file to upload
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.uploadFile(teamID, boardID, opts, callback);
2021-02-17 21:29:20 +02:00
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Default-uploadFile-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Default-uploadFile-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class uploadFileExample
{
public void main()
{
// Configure API key authorization: BearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
2021-02-17 21:29:20 +02:00
// Create an instance of the API class
var apiInstance = new DefaultApi();
var teamID = teamID_example; // String | ID of the team (default to null)
var boardID = boardID_example; // String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
var uploaded file = BINARY_DATA_HERE; // File | The file to upload (optional) (default to null)
try {
Object result = apiInstance.uploadFile(teamID, boardID, uploaded file);
2021-02-17 21:29:20 +02:00
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.uploadFile: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: BearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$teamID = teamID_example; // String | ID of the team
$boardID = boardID_example; // String | Board ID
2021-02-17 21:29:20 +02:00
$uploaded file = BINARY_DATA_HERE; // File | The file to upload
try {
$result = $api_instance->uploadFile($teamID, $boardID, $uploaded file);
2021-02-17 21:29:20 +02:00
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->uploadFile: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: BearerAuth
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $teamID = teamID_example; # String | ID of the team
my $boardID = boardID_example; # String | Board ID
2021-02-17 21:29:20 +02:00
my $uploaded file = BINARY_DATA_HERE; # File | The file to upload
eval {
my $result = $api_instance->uploadFile(teamID => $teamID, boardID => $boardID, uploaded file => $uploaded file);
2021-02-17 21:29:20 +02:00
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->uploadFile: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: BearerAuth
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
teamID = teamID_example # String | ID of the team (default to null)
boardID = boardID_example # String | Board ID (default to null)
2021-02-17 21:29:20 +02:00
uploaded file = BINARY_DATA_HERE # File | The file to upload (optional) (default to null)
try:
api_response = api_instance.upload_file(teamID, boardID, uploaded file=uploaded file)
2021-02-17 21:29:20 +02:00
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->uploadFile: %s\n" % e)</code></pre>
</div>
<div class="tab-pane" id="examples-Default-uploadFile-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate DefaultApi;
pub fn main() {
let teamID = teamID_example; // String
let boardID = boardID_example; // String
2021-02-17 21:29:20 +02:00
let uploaded file = BINARY_DATA_HERE; // File
let mut context = DefaultApi::Context::default();
let result = client.uploadFile(teamID, boardID, uploaded file, &context).wait();
2021-02-17 21:29:20 +02:00
println!("{:?}", result);
}
</code></pre>
</div>
</div>
<h2>Scopes</h2>
<table>
2021-02-17 21:29:20 +02:00
</table>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">teamID*</td>
<td>
<div id="d2e199_uploadFile_teamID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
ID of the team
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
<tr><td style="width:150px;">boardID*</td>
<td>
<div id="d2e199_uploadFile_boardID">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
<div class="inner description marked">
Board ID
</div>
</div>
<div class="inner required">
Required
</div>
</div>
</div>
</td>
</tr>
</table>
2021-02-17 21:29:20 +02:00
<div class="methodsubtabletitle">Form parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">uploaded file</td>
<td>
<div id="d2e199_uploadFile_uploaded file">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
File
</span>
<span class="format">
(binary)
</span>
<div class="inner description marked">
The file to upload
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3 id="examples-Default-uploadFile-title-200"></h3>
<p id="examples-Default-uploadFile-description-200" class="marked"></p>
<script>
var responseDefault200_description = `success`;
var responseDefault200_description_break = responseDefault200_description.indexOf('\n');
if (responseDefault200_description_break == -1) {
$("#examples-Default-uploadFile-title-200").text("Status: 200 - " + responseDefault200_description);
} else {
$("#examples-Default-uploadFile-title-200").text("Status: 200 - " + responseDefault200_description.substring(0, responseDefault200_description_break));
$("#examples-Default-uploadFile-description-200").html(responseDefault200_description.substring(responseDefault200_description_break));
}
</script>
<ul id="responses-detail-Default-uploadFile-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-uploadFile-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-uploadFile-200-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-uploadFile-200-schema">
<div id="responses-Default-uploadFile-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=FileUploadResponse is the response to a file upload, x-go-package=github.com/mattermost/focalboard/server/api};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-uploadFile-200-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-uploadFile-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-uploadFile-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3 id="examples-Default-uploadFile-title-404"></h3>
<p id="examples-Default-uploadFile-description-404" class="marked"></p>
<script>
var responseDefault404_description = `board not found`;
var responseDefault404_description_break = responseDefault404_description.indexOf('\n');
if (responseDefault404_description_break == -1) {
$("#examples-Default-uploadFile-title-404").text("Status: 404 - " + responseDefault404_description);
} else {
$("#examples-Default-uploadFile-title-404").text("Status: 404 - " + responseDefault404_description.substring(0, responseDefault404_description_break));
$("#examples-Default-uploadFile-description-404").html(responseDefault404_description.substring(responseDefault404_description_break));
}
</script>
<ul id="responses-detail-Default-uploadFile-404" class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" id="responses-Default-uploadFile-404-wrapper" style='margin-bottom: 10px;'>
</div>
2021-02-17 21:29:20 +02:00
<h3 id="examples-Default-uploadFile-title-default"></h3>
<p id="examples-Default-uploadFile-description-default" class="marked"></p>
<script>
var responseDefaultdefault_description = `internal error`;
var responseDefaultdefault_description_break = responseDefaultdefault_description.indexOf('\n');
if (responseDefaultdefault_description_break == -1) {
$("#examples-Default-uploadFile-title-default").text("Status: default - " + responseDefaultdefault_description);
} else {
$("#examples-Default-uploadFile-title-default").text("Status: default - " + responseDefaultdefault_description.substring(0, responseDefaultdefault_description_break));
$("#examples-Default-uploadFile-description-default").html(responseDefaultdefault_description.substring(responseDefaultdefault_description_break));
}
</script>
<ul id="responses-detail-Default-uploadFile-default" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-Default-uploadFile-default-schema">Schema</a>
</li>
</ul>
<div class="tab-content" id="responses-Default-uploadFile-default-wrapper" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-Default-uploadFile-default-schema">
<div id="responses-Default-uploadFile-schema-default" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {description=ErrorResponse is an error response, x-go-package=github.com/mattermost/focalboard/server/model};
2021-02-17 21:29:20 +02:00
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
schema = schemaWrapper.schema;
}
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
Object.keys(schema.properties).forEach( (item) => {
if (schema.properties[item].$ref != null) {
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
}
});
2021-02-17 21:29:20 +02:00
} else if (schema.items != null && schema.items.$ref != null) {
schema.items = defsParser.$refs.get(schema.items.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
var view = new JSONSchemaView(schema, 3);
$('#responses-Default-uploadFile-default-schema-data').val(JSON.stringify(schema));
var result = $('#responses-Default-uploadFile-schema-default');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-Default-uploadFile-default-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://www.focalboard.com">https://www.focalboard.com</a></div>
<div class="app-desc">Contact Info: <a href="api@focalboard.com">api@focalboard.com</a></div>
</p>
<div class="license-info">Custom</div>
<div class="license-url">https://github.com/mattermost/focalboard/blob/main/LICENSE.txt</div>
</div>
</div>
</div>
</div>
</div>
<script>
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("JSONFormatter", [], factory);
else if(typeof exports === 'object')
exports["JSONFormatter"] = factory();
else
root["JSONFormatter"] = factory();
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "dist";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(1);
/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(2);
var helpers_ts_1 = __webpack_require__(6);
var DATE_STRING_REGEX = /(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/;
var PARTIAL_DATE_REGEX = /\d{2}:\d{2}:\d{2} GMT-\d{4}/;
var JSON_DATE_REGEX = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
// When toggling, don't animated removal or addition of more than a few items
2021-02-17 21:29:20 +02:00
var MAX_ANIMATED_TOGGLE_ITEMS = 10;
var requestAnimationFrame = window.requestAnimationFrame || function (cb) { cb(); return 0; };
;
var _defaultConfig = {
hoverPreviewEnabled: false,
hoverPreviewArrayCount: 100,
hoverPreviewFieldCount: 5,
animateOpen: true,
animateClose: true,
theme: null
};
module.exports = (function () {
/**
* @param {object} json The JSON object you want to render. It has to be an
* object or array. Do NOT pass raw JSON string.
*
* @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} [config=defaultConfig] -
* defaultConfig = {
* hoverPreviewEnabled: false,
* hoverPreviewArrayCount: 100,
* hoverPreviewFieldCount: 5
* }
*
* Available configurations:
* #####Hover Preview
* * `hoverPreviewEnabled`: enable preview on hover
* * `hoverPreviewArrayCount`: number of array items to show in preview Any
* array larger than this number will be shown as `Array[XXX]` where `XXX`
* is length of the array.
* * `hoverPreviewFieldCount`: number of object properties to show for object
* preview. Any object with more properties that thin number will be
* truncated.
*
* @param {string} [key=undefined] The key that this object in it's parent
* context
*/
function JSONFormatter(json, open, config, key) {
if (open === void 0) { open = 1; }
if (config === void 0) { config = _defaultConfig; }
this.json = json;
this.open = open;
this.config = config;
this.key = key;
// Hold the open state after the toggler is used
this._isOpen = null;
// Setting default values for config object
if (this.config.hoverPreviewEnabled === undefined) {
this.config.hoverPreviewEnabled = _defaultConfig.hoverPreviewEnabled;
}
if (this.config.hoverPreviewArrayCount === undefined) {
this.config.hoverPreviewArrayCount = _defaultConfig.hoverPreviewArrayCount;
}
if (this.config.hoverPreviewFieldCount === undefined) {
this.config.hoverPreviewFieldCount = _defaultConfig.hoverPreviewFieldCount;
}
}
Object.defineProperty(JSONFormatter.prototype, "isOpen", {
/*
* is formatter open?
*/
get: function () {
if (this._isOpen !== null) {
return this._isOpen;
}
else {
return this.open > 0;
}
},
/*
* set open state (from toggler)
*/
set: function (value) {
this._isOpen = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isDate", {
/*
* is this a date string?
*/
get: function () {
return (this.type === 'string') &&
(DATE_STRING_REGEX.test(this.json) ||
JSON_DATE_REGEX.test(this.json) ||
PARTIAL_DATE_REGEX.test(this.json));
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isUrl", {
/*
* is this a URL string?
*/
get: function () {
return this.type === 'string' && (this.json.indexOf('http') === 0);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isArray", {
/*
* is this an array?
*/
get: function () {
return Array.isArray(this.json);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isObject", {
/*
* is this an object?
* Note: In this context arrays are object as well
*/
get: function () {
return helpers_ts_1.isObject(this.json);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isEmptyObject", {
/*
* is this an empty object with no properties?
*/
get: function () {
return !this.keys.length && !this.isArray;
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "isEmpty", {
/*
* is this an empty object or array?
*/
get: function () {
return this.isEmptyObject || (this.keys && !this.keys.length && this.isArray);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "hasKey", {
/*
* did we receive a key argument?
* This means that the formatter was called as a sub formatter of a parent formatter
*/
get: function () {
return typeof this.key !== 'undefined';
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "constructorName", {
/*
* if this is an object, get constructor function name
*/
get: function () {
return helpers_ts_1.getObjectName(this.json);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "type", {
/*
* get type of this value
* Possible values: all JavaScript primitive types plus "array" and "null"
*/
get: function () {
return helpers_ts_1.getType(this.json);
},
enumerable: true,
configurable: true
});
Object.defineProperty(JSONFormatter.prototype, "keys", {
/*
* get object keys
* If there is an empty key we pad it wit quotes to make it visible
*/
get: function () {
if (this.isObject) {
return Object.keys(this.json).map(function (key) { return key ? key : '""'; });
}
else {
return [];
}
},
enumerable: true,
configurable: true
});
/**
* Toggles `isOpen` state
*
*/
JSONFormatter.prototype.toggleOpen = function () {
this.isOpen = !this.isOpen;
if (this.element) {
if (this.isOpen) {
this.appendChildren(this.config.animateOpen);
}
else {
this.removeChildren(this.config.animateClose);
}
this.element.classList.toggle(helpers_ts_1.cssClass('open'));
}
};
/**
* Open all children up to a certain depth.
* Allows actions such as expand all/collapse all
*
*/
JSONFormatter.prototype.openAtDepth = function (depth) {
if (depth === void 0) { depth = 1; }
if (depth < 0) {
return;
}
this.open = depth;
this.isOpen = (depth !== 0);
if (this.element) {
this.removeChildren(false);
if (depth === 0) {
this.element.classList.remove(helpers_ts_1.cssClass('open'));
}
else {
this.appendChildren(this.config.animateOpen);
this.element.classList.add(helpers_ts_1.cssClass('open'));
}
}
};
/**
* Generates inline preview
*
* @returns {string}
*/
JSONFormatter.prototype.getInlinepreview = function () {
var _this = this;
if (this.isArray) {
// if array length is greater then 100 it shows "Array[101]"
if (this.json.length > this.config.hoverPreviewArrayCount) {
return "Array[" + this.json.length + "]";
}
else {
return "[" + this.json.map(helpers_ts_1.getPreview).join(', ') + "]";
}
}
else {
var keys = this.keys;
// the first five keys (like Chrome Developer Tool)
var narrowKeys = keys.slice(0, this.config.hoverPreviewFieldCount);
// json value schematic information
var kvs = narrowKeys.map(function (key) { return (key + ":" + helpers_ts_1.getPreview(_this.json[key])); });
// if keys count greater then 5 then show ellipsis
var ellipsis = keys.length >= this.config.hoverPreviewFieldCount ? '…' : '';
return "{" + kvs.join(', ') + ellipsis + "}";
}
};
/**
* Renders an HTML element and installs event listeners
*
* @returns {HTMLDivElement}
*/
JSONFormatter.prototype.render = function () {
// construct the root element and assign it to this.element
this.element = helpers_ts_1.createElement('div', 'row');
// construct the toggler link
var togglerLink = helpers_ts_1.createElement('a', 'toggler-link');
// if this is an object we need a wrapper span (toggler)
if (this.isObject) {
togglerLink.appendChild(helpers_ts_1.createElement('span', 'toggler'));
}
// if this is child of a parent formatter we need to append the key
if (this.hasKey) {
togglerLink.appendChild(helpers_ts_1.createElement('span', 'key', this.key + ":"));
}
// Value for objects and arrays
if (this.isObject) {
// construct the value holder element
var value = helpers_ts_1.createElement('span', 'value');
// we need a wrapper span for objects
var objectWrapperSpan = helpers_ts_1.createElement('span');
// get constructor name and append it to wrapper span
var constructorName = helpers_ts_1.createElement('span', 'constructor-name', this.constructorName);
objectWrapperSpan.appendChild(constructorName);
// if it's an array append the array specific elements like brackets and length
if (this.isArray) {
var arrayWrapperSpan = helpers_ts_1.createElement('span');
arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'bracket', '['));
arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'number', (this.json.length)));
arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'bracket', ']'));
objectWrapperSpan.appendChild(arrayWrapperSpan);
}
// append object wrapper span to toggler link
value.appendChild(objectWrapperSpan);
togglerLink.appendChild(value);
}
else {
// make a value holder element
var value = this.isUrl ? helpers_ts_1.createElement('a') : helpers_ts_1.createElement('span');
// add type and other type related CSS classes
value.classList.add(helpers_ts_1.cssClass(this.type));
if (this.isDate) {
value.classList.add(helpers_ts_1.cssClass('date'));
}
if (this.isUrl) {
value.classList.add(helpers_ts_1.cssClass('url'));
value.setAttribute('href', this.json);
}
// Append value content to value element
var valuePreview = helpers_ts_1.getValuePreview(this.json, this.json);
value.appendChild(document.createTextNode(valuePreview));
// append the value element to toggler link
togglerLink.appendChild(value);
}
// if hover preview is enabled, append the inline preview element
if (this.isObject && this.config.hoverPreviewEnabled) {
var preview = helpers_ts_1.createElement('span', 'preview-text');
preview.appendChild(document.createTextNode(this.getInlinepreview()));
togglerLink.appendChild(preview);
}
// construct a children element
var children = helpers_ts_1.createElement('div', 'children');
// set CSS classes for children
if (this.isObject) {
children.classList.add(helpers_ts_1.cssClass('object'));
}
if (this.isArray) {
children.classList.add(helpers_ts_1.cssClass('array'));
}
if (this.isEmpty) {
children.classList.add(helpers_ts_1.cssClass('empty'));
}
// set CSS classes for root element
if (this.config && this.config.theme) {
this.element.classList.add(helpers_ts_1.cssClass(this.config.theme));
}
if (this.isOpen) {
this.element.classList.add(helpers_ts_1.cssClass('open'));
}
// append toggler and children elements to root element
this.element.appendChild(togglerLink);
this.element.appendChild(children);
// if formatter is set to be open call appendChildren
if (this.isObject && this.isOpen) {
this.appendChildren();
}
// add event listener for toggling
if (this.isObject) {
togglerLink.addEventListener('click', this.toggleOpen.bind(this));
}
return this.element;
};
/**
* Appends all the children to children element
* Animated option is used when user triggers this via a click
*/
JSONFormatter.prototype.appendChildren = function (animated) {
var _this = this;
if (animated === void 0) { animated = false; }
var children = this.element.querySelector("div." + helpers_ts_1.cssClass('children'));
if (!children || this.isEmpty) {
return;
}
if (animated) {
var index_1 = 0;
var addAChild_1 = function () {
var key = _this.keys[index_1];
var formatter = new JSONFormatter(_this.json[key], _this.open - 1, _this.config, key);
children.appendChild(formatter.render());
index_1 += 1;
if (index_1 < _this.keys.length) {
if (index_1 > MAX_ANIMATED_TOGGLE_ITEMS) {
addAChild_1();
}
else {
requestAnimationFrame(addAChild_1);
}
}
};
requestAnimationFrame(addAChild_1);
}
else {
this.keys.forEach(function (key) {
var formatter = new JSONFormatter(_this.json[key], _this.open - 1, _this.config, key);
children.appendChild(formatter.render());
});
}
};
/**
* Removes all the children from children element
* Animated option is used when user triggers this via a click
*/
JSONFormatter.prototype.removeChildren = function (animated) {
if (animated === void 0) { animated = false; }
var childrenElement = this.element.querySelector("div." + helpers_ts_1.cssClass('children'));
if (animated) {
var childrenRemoved_1 = 0;
var removeAChild_1 = function () {
if (childrenElement && childrenElement.children.length) {
childrenElement.removeChild(childrenElement.children[0]);
childrenRemoved_1 += 1;
if (childrenRemoved_1 > MAX_ANIMATED_TOGGLE_ITEMS) {
removeAChild_1();
}
else {
requestAnimationFrame(removeAChild_1);
}
}
};
requestAnimationFrame(removeAChild_1);
}
else {
if (childrenElement) {
childrenElement.innerHTML = '';
}
}
};
return JSONFormatter;
}());
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
2021-02-17 21:29:20 +02:00
// load the styles
var content = __webpack_require__(3);
if(typeof content === 'string') content = [[module.id, content, '']];
// add the styles to the DOM
var update = __webpack_require__(5)(content, {"sourceMap":true});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!./../node_modules/css-loader/index.js?sourceMap!./../node_modules/less-loader/index.js?sourceMap!./style.less", function() {
var newContent = require("!!./../node_modules/css-loader/index.js?sourceMap!./../node_modules/less-loader/index.js?sourceMap!./style.less");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(4)();
// imports
2021-02-17 21:29:20 +02:00
// module
exports.push([module.id, ".json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-row .json-formatter-string {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-constructor-name {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: \"\\25BA\";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: \"No properties\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: \"[]\";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatte
2021-02-17 21:29:20 +02:00
// exports
/***/ },
/* 4 */
/***/ function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
2021-02-17 21:29:20 +02:00
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
2021-02-17 21:29:20 +02:00
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var stylesInDom = {},
memoize = function(fn) {
var memo;
return function () {
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
return memo;
};
},
isOldIE = memoize(function() {
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
}),
getHeadElement = memoize(function () {
return document.head || document.getElementsByTagName("head")[0];
}),
singletonElement = null,
singletonCounter = 0,
styleElementsInsertedAtTop = [];
2021-02-17 21:29:20 +02:00
module.exports = function(list, options) {
if(false) {
if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
}
2021-02-17 21:29:20 +02:00
options = options || {};
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
if (typeof options.singleton === "undefined") options.singleton = isOldIE();
2021-02-17 21:29:20 +02:00
// By default, add <style> tags to the bottom of <head>.
if (typeof options.insertAt === "undefined") options.insertAt = "bottom";
2021-02-17 21:29:20 +02:00
var styles = listToStyles(list);
addStylesToDom(styles, options);
2021-02-17 21:29:20 +02:00
return function update(newList) {
var mayRemove = [];
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
domStyle.refs--;
mayRemove.push(domStyle);
}
if(newList) {
var newStyles = listToStyles(newList);
addStylesToDom(newStyles, options);
}
for(var i = 0; i < mayRemove.length; i++) {
var domStyle = mayRemove[i];
if(domStyle.refs === 0) {
for(var j = 0; j < domStyle.parts.length; j++)
domStyle.parts[j]();
delete stylesInDom[domStyle.id];
}
}
};
}
2021-02-17 21:29:20 +02:00
function addStylesToDom(styles, options) {
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
if(domStyle) {
domStyle.refs++;
for(var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j]);
}
for(; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j], options));
}
} else {
var parts = [];
for(var j = 0; j < item.parts.length; j++) {
parts.push(addStyle(item.parts[j], options));
}
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
}
}
}
2021-02-17 21:29:20 +02:00
function listToStyles(list) {
var styles = [];
var newStyles = {};
for(var i = 0; i < list.length; i++) {
var item = list[i];
var id = item[0];
var css = item[1];
var media = item[2];
var sourceMap = item[3];
var part = {css: css, media: media, sourceMap: sourceMap};
if(!newStyles[id])
styles.push(newStyles[id] = {id: id, parts: [part]});
else
newStyles[id].parts.push(part);
}
return styles;
}
2021-02-17 21:29:20 +02:00
function insertStyleElement(options, styleElement) {
var head = getHeadElement();
var lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];
if (options.insertAt === "top") {
if(!lastStyleElementInsertedAtTop) {
head.insertBefore(styleElement, head.firstChild);
} else if(lastStyleElementInsertedAtTop.nextSibling) {
head.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);
} else {
head.appendChild(styleElement);
}
styleElementsInsertedAtTop.push(styleElement);
} else if (options.insertAt === "bottom") {
head.appendChild(styleElement);
} else {
throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
}
}
2021-02-17 21:29:20 +02:00
function removeStyleElement(styleElement) {
styleElement.parentNode.removeChild(styleElement);
var idx = styleElementsInsertedAtTop.indexOf(styleElement);
if(idx >= 0) {
styleElementsInsertedAtTop.splice(idx, 1);
}
}
2021-02-17 21:29:20 +02:00
function createStyleElement(options) {
var styleElement = document.createElement("style");
styleElement.type = "text/css";
insertStyleElement(options, styleElement);
return styleElement;
}
2021-02-17 21:29:20 +02:00
function createLinkElement(options) {
var linkElement = document.createElement("link");
linkElement.rel = "stylesheet";
insertStyleElement(options, linkElement);
return linkElement;
}
2021-02-17 21:29:20 +02:00
function addStyle(obj, options) {
var styleElement, update, remove;
2021-02-17 21:29:20 +02:00
if (options.singleton) {
var styleIndex = singletonCounter++;
styleElement = singletonElement || (singletonElement = createStyleElement(options));
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);
} else if(obj.sourceMap &&
typeof URL === "function" &&
typeof URL.createObjectURL === "function" &&
typeof URL.revokeObjectURL === "function" &&
typeof Blob === "function" &&
typeof btoa === "function") {
styleElement = createLinkElement(options);
update = updateLink.bind(null, styleElement);
remove = function() {
removeStyleElement(styleElement);
if(styleElement.href)
URL.revokeObjectURL(styleElement.href);
};
} else {
styleElement = createStyleElement(options);
update = applyToTag.bind(null, styleElement);
remove = function() {
removeStyleElement(styleElement);
};
}
2021-02-17 21:29:20 +02:00
update(obj);
2021-02-17 21:29:20 +02:00
return function updateStyle(newObj) {
if(newObj) {
if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)
return;
update(obj = newObj);
} else {
remove();
}
};
}
2021-02-17 21:29:20 +02:00
var replaceText = (function () {
var textStore = [];
2021-02-17 21:29:20 +02:00
return function (index, replacement) {
textStore[index] = replacement;
return textStore.filter(Boolean).join('\n');
};
})();
2021-02-17 21:29:20 +02:00
function applyToSingletonTag(styleElement, index, remove, obj) {
var css = remove ? "" : obj.css;
2021-02-17 21:29:20 +02:00
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = replaceText(index, css);
} else {
var cssNode = document.createTextNode(css);
var childNodes = styleElement.childNodes;
if (childNodes[index]) styleElement.removeChild(childNodes[index]);
if (childNodes.length) {
styleElement.insertBefore(cssNode, childNodes[index]);
} else {
styleElement.appendChild(cssNode);
}
}
}
2021-02-17 21:29:20 +02:00
function applyToTag(styleElement, obj) {
var css = obj.css;
var media = obj.media;
2021-02-17 21:29:20 +02:00
if(media) {
styleElement.setAttribute("media", media)
}
2021-02-17 21:29:20 +02:00
if(styleElement.styleSheet) {
styleElement.styleSheet.cssText = css;
} else {
while(styleElement.firstChild) {
styleElement.removeChild(styleElement.firstChild);
}
styleElement.appendChild(document.createTextNode(css));
}
}
2021-02-17 21:29:20 +02:00
function updateLink(linkElement, obj) {
var css = obj.css;
var sourceMap = obj.sourceMap;
2021-02-17 21:29:20 +02:00
if(sourceMap) {
// https://developer.mozilla.org/en/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
}
2021-02-17 21:29:20 +02:00
var blob = new Blob([css], { type: "text/css" });
2021-02-17 21:29:20 +02:00
var oldSrc = linkElement.href;
2021-02-17 21:29:20 +02:00
linkElement.href = URL.createObjectURL(blob);
2021-02-17 21:29:20 +02:00
if(oldSrc)
URL.revokeObjectURL(oldSrc);
}
/***/ },
/* 6 */
/***/ function(module, exports) {
"use strict";
/*
* Escapes `"` characters from string
*/
function escapeString(str) {
return str.replace('"', '\"');
}
/*
* Determines if a value is an object
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object');
}
exports.isObject = isObject;
/*
* Gets constructor name of an object.
*
*/
function getObjectName(object) {
if (object === undefined) {
return '';
}
if (object === null || (typeof object === 'object' && !object.constructor)) {
return 'Object';
}
var funcNameRegex = /function ([^(]*)/;
var results = (funcNameRegex).exec((object).constructor.toString());
if (results && results.length > 1) {
return results[1];
} else {
return '';
}
}
exports.getObjectName = getObjectName;
/*
* Gets type of an object. Returns "null" for null objects
*/
function getType(object) {
if (object === null) {
return 'null';
}
return typeof object;
}
exports.getType = getType;
/*
* Generates inline preview for a JavaScript object based on a value
*/
function getValuePreview(object, value) {
var type = getType(object);
if (type === 'null' || type === 'undefined') {
return type;
}
if (type === 'string') {
value = '"' + escapeString(value) + '"';
}
if (type === 'function') {
// Remove content of the function
return object.toString()
.replace(/[\r\n]/g, '')
.replace(/\{.*\}/, '') + '{…}';
}
return value;
}
exports.getValuePreview = getValuePreview;
/*
* Generates inline preview for a JavaScript object
*/
function getPreview(object) {
var value = '';
if (isObject(object)) {
value = getObjectName(object);
if (Array.isArray(object))
value += '[' + object.length + ']';
}
else {
value = getValuePreview(object, object);
}
return value;
}
exports.getPreview = getPreview;
/*
* Generates a prefixed CSS class name
*/
function cssClass(className) {
return "json-formatter-" + className;
}
exports.cssClass = cssClass;
/*
* Creates a new DOM element with given type and class
* TODO: move me to helpers
*/
function createElement(type, className, content) {
var el = document.createElement(type);
if (className) {
el.classList.add(cssClass(className));
}
if (content !== undefined) {
if (content instanceof Node) {
el.appendChild(content);
}
else {
el.appendChild(document.createTextNode(String(content)));
}
}
return el;
}
exports.createElement = createElement;
/***/ }
/******/ ])
});
;
//# sourceMappingURL=json-formatter.js.map
</script>
<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 marked">', '</div>\n '], ['\n <div class="inner description marked">', '</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 ']),
_templateObject31 = _taggedTemplateLiteral(['\n <div class="inner example">Example: ', '</div>\n '], ['\n <div class="inner example">Example: ', '</div>\n ']),
_templateObject32 = _taggedTemplateLiteral(['\n <div class="inner readOnly">Read Only</div>\n '], ['\n <div class="inner readOnly">Read Only</div>\n ']),
_templateObject33 = _taggedTemplateLiteral(['\n <div class="inner nullable">Nullable</div>\n '], ['\n <div class="inner nullable">Nullable</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 JSON
2021-02-17 21:29:20 +02:00
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;
}
});
}
// Determine if a schema is a read-only
this.isReadOnly = this.schema && this.schema.readOnly === true;
// Determine if a schema is nullable
this.isNullable = this.schema && this.schema["x-nullable"] === 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, marked(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), (0, _helpersJs._if)(this.schema.example && !this.isCollapsed)(_templateObject31, this.schema.example)) + '\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, marked(this.schema.description || "")), (0, _helpersJs._if)(this.schema.required && !this.isCollapsed)(_templateObject15), (0, _helpersJs._if)(this.schema.readOnly && !this.isCollapsed)(_templateObject32), (0, _helpersJs._if)(this.schema["x-nullable"] === true && !this.isCollapsed)(_templateObject33), (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.schema.example && !this.isCollapsed)(_templateObject31, this.schema.example), (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, marked(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
(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.example)(_templateObject31, "<pre>" + JSON.stringify(this.schema.example, null, 4) + "</pre>"),
(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 tempDiv = document.createElement('span');;
tempDiv.classList.add('inner');
tempDiv.innerHTML = '<code>' + this.schema['enum'].join('</code>, <code>') + '</code>';
element.querySelector('.enums.inner').appendChild(tempDiv);
}
if (this.isArray) {
var view = new JSONSchemaView(this.schema.items, Infinity);
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(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.$RefParser = 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){
/** !
* JSON Schema $Ref Parser v3.1.2
*
* @link https://github.com/BigstickCarpet/json-schema-ref-parser
* @license MIT
*/
"use strict";function bundle(e,r){debug("Bundling $ref pointers in %s",e.$refs._root$Ref.path);var t=[];crawl(e,"schema",e.$refs._root$Ref.path+"#","#",t,e.$refs,r),remap(t)}function crawl(e,r,t,f,n,i,a){var o=null===r?e:e[r];if(o&&"object"==typeof o)if($Ref.is$Ref(o))inventory$Ref(e,r,t,f,n,i,a);else{var l=Object.keys(o),u=l.indexOf("definitions");u>0&&l.splice(0,0,l.splice(u,1)[0]),l.forEach(function(e){var r=Pointer.join(t,e),l=Pointer.join(f,e),u=o[e];$Ref.is$Ref(u)?inventory$Ref(o,e,t,l,n,i,a):crawl(o,e,r,l,n,i,a)})}}function inventory$Ref(e,r,t,f,n,i,a){if(!n.some(function(t){return t.parent===e&&t.key===r})){var o=null===r?e:e[r],l=url.resolve(t,o.$ref),u=i._resolve(l,a),h=Pointer.parse(f).length,s=url.stripHash(u.path),$=url.getHash(u.path),c=s!==i._root$Ref.path,p=$Ref.isExtended$Ref(o);n.push({$ref:o,parent:e,key:r,pathFromRoot:f,depth:h,file:s,hash:$,value:u.value,circular:u.circular,extended:p,external:c}),crawl(u.value,null,u.path,f,n,i,a)}}function remap(e){e.sort(function(e,r){return e.file!==r.file?e.file<r.file?-1:1:e.hash!==r.hash?e.hash<r.hash?-1:1:e.circular!==r.circular?e.circular?-1:1:e.extended!==r.extended?e.extended?1:-1:e.depth!==r.depth?e.depth-r.depth:r.pathFromRoot.lastIndexOf("/definitions")-e.pathFromRoot.lastIndexOf("/definitions")});var r,t,f;e.forEach(function(e){debug('Re-mapping $ref pointer "%s" at %s',e.$ref.$ref,e.pathFromRoot),e.external?e.file===r&&e.hash===t?e.$ref.$ref=f:e.file===r&&0===e.hash.indexOf(t+"/")?e.$ref.$ref=Pointer.join(f,Pointer.parse(e.hash)):(r=e.file,t=e.hash,f=e.pathFromRoot,e.$ref=e.parent[e.key]=$Ref.dereference(e.$ref,e.value),e.circular&&(e.$ref.$ref=e.pathFromRoot)):e.$ref.$ref=e.hash,debug(" new value: %s",e.$ref&&e.$ref.$ref?e.$ref.$ref:"[object Object]")})}var $Ref=require("./ref"),Pointer=require("./pointer"),debug=require("./util/debug"),url=require("./util/url");module.exports=bundle;
},{"./pointer":10,"./ref":11,"./util/debug":16,"./util/url":19}],2:[function(require,module,exports){
"use strict";function dereference(e,r){debug("Dereferencing $ref pointers in %s",e.$refs._root$Ref.path);var c=crawl(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,r);e.$refs.circular=c.circular,e.schema=c.value}function crawl(e,r,c,u,f,i){var n,a={value:e,circular:!1};return e&&"object"==typeof e&&(u.push(e),$Ref.isAllowed$Ref(e,i)?(n=dereference$Ref(e,r,c,u,f,i),a.circular=n.circular,a.value=n.value):Object.keys(e).forEach(function(l){var o=Pointer.join(r,l),t=Pointer.join(c,l),d=e[l],$=!1;$Ref.isAllowed$Ref(d,i)?(n=dereference$Ref(d,o,t,u,f,i),$=n.circular,e[l]=n.value):-1===u.indexOf(d)?(n=crawl(d,o,t,u,f,i),$=n.circular,e[l]=n.value):$=foundCircularReference(o,f,i),a.circular=a.circular||$}),u.pop()),a}function dereference$Ref(e,r,c,u,f,i){debug('Dereferencing $ref pointer "%s" at %s',e.$ref,r);var n=url.resolve(r,e.$ref),a=f._resolve(n,i),l=a.circular,o=l||-1!==u.indexOf(a.value);o&&foundCircularReference(r,f,i);var t=$Ref.dereference(e,a.value);if(!o){var d=crawl(t,a.path,c,u,f,i);o=d.circular,t=d.value}return o&&!l&&"ignore"===i.dereference.circular&&(t=e),l&&(t.$ref=c),{circular:o,value:t}}function foundCircularReference(e,r,c){if(r.circular=!0,!c.dereference.circular)throw ono.reference("Circular $ref pointer found at %s",e);return!0}var $Ref=require("./ref"),Pointer=require("./pointer"),ono=require("ono"),debug=require("./util/debug"),url=require("./util/url");module.exports=dereference;
},{"./pointer":10,"./ref":11,"./util/debug":16,"./util/url":19,"ono":69}],3:[function(require,module,exports){
(function (Buffer){
"use strict";function $RefParser(){this.schema=null,this.$refs=new $Refs}function normalizeArgs(e){var r,t,a,s;return e=Array.prototype.slice.call(e),"function"==typeof e[e.length-1]&&(s=e.pop()),"string"==typeof e[0]?(r=e[0],"object"==typeof e[2]?(t=e[1],a=e[2]):(t=void 0,a=e[1])):(r="",t=e[0],a=e[1]),a instanceof Options||(a=new Options(a)),{path:r,schema:t,options:a,callback:s}}var Promise=require("./util/promise"),Options=require("./options"),$Refs=require("./refs"),parse=require("./parse"),resolveExternal=require("./resolve-external"),bundle=require("./bundle"),dereference=require("./dereference"),url=require("./util/url"),maybe=require("call-me-maybe"),ono=require("ono");module.exports=$RefParser,module.exports.YAML=require("./util/yaml"),$RefParser.parse=function(e,r,t){var a=this,s=new a;return s.parse.apply(s,arguments)},$RefParser.prototype.parse=function(e,r,t){var a,s=normalizeArgs(arguments);if(!s.path&&!s.schema){var n=ono("Expected a file path, URL, or object. Got %s",s.path||s.schema);return maybe(s.callback,Promise.reject(n))}this.schema=null,this.$refs=new $Refs,url.isFileSystemPath(s.path)&&(s.path=url.fromFileSystemPath(s.path)),s.path=url.resolve(url.cwd(),s.path),s.schema&&"object"==typeof s.schema?(this.$refs._add(s.path,s.schema),a=Promise.resolve(s.schema)):a=parse(s.path,this.$refs,s.options);var o=this;return a.then(function(e){if(!e||"object"!=typeof e||Buffer.isBuffer(e))throw ono.syntax('"%s" is not a valid JSON Schema',o.$refs._root$Ref.path||e);return o.schema=e,maybe(s.callback,Promise.resolve(o.schema))})["catch"](function(e){return maybe(s.callback,Promise.reject(e))})},$RefParser.resolve=function(e,r,t){var a=this,s=new a;return s.resolve.apply(s,arguments)},$RefParser.prototype.resolve=function(e,r,t){var a=this,s=normalizeArgs(arguments);return this.parse(s.path,s.schema,s.options).then(function(){return resolveExternal(a,s.options)}).then(function(){return maybe(s.callback,Promise.resolve(a.$refs))})["catch"](function(e){return maybe(s.callback,Promise.reject(e))})},$RefParser.bundle=function(e,r,t){var a=this,s=new a;return s.bundle.apply(s,arguments)},$RefParser.prototype.bundle=function(e,r,t){var a=this,s=normalizeArgs(arguments);return this.resolve(s.path,s.schema,s.options).then(function(){return bundle(a,s.options),maybe(s.callback,Promise.resolve(a.schema))})["catch"](function(e){return maybe(s.callback,Promise.reject(e))})},$RefParser.dereference=function(e,r,t){var a=this,s=new a;return s.dereference.apply(s,arguments)},$RefParser.prototype.dereference=function(e,r,t){var a=this,s=normalizeArgs(arguments);return this.resolve(s.path,s.schema,s.options).then(function(){return dereference(a,s.options),maybe(s.callback,Promise.resolve(a.schema))})["catch"](function(e){return maybe(s.callback,Promise.reject(e))})};
}).call(this,{"isBuffer":require("../node_modules/is-buffer/index.js")})
},{"../node_modules/is-buffer/index.js":36,"./bundle":1,"./dereference":2,"./options":4,"./parse":5,"./refs":12,"./resolve-external":13,"./util/promise":18,"./util/url":19,"./util/yaml":20,"call-me-maybe":27,"ono":69}],4:[function(require,module,exports){
"use strict";function $RefParserOptions(e){merge(this,$RefParserOptions.defaults),merge(this,e)}function merge(e,r){if(isMergeable(r))for(var s=Object.keys(r),a=0;a<s.length;a++){var t=s[a],i=r[t],o=e[t];isMergeable(i)?e[t]=merge(o||{},i):void 0!==i&&(e[t]=i)}return e}function isMergeable(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}var jsonParser=require("./parsers/json"),yamlParser=require("./parsers/yaml"),textParser=require("./parsers/text"),binaryParser=require("./parsers/binary"),fileResolver=require("./resolvers/file"),httpResolver=require("./resolvers/http"),zschemaValidator=require("./validators/z-schema");module.exports=$RefParserOptions,$RefParserOptions.defaults={parse:{json:jsonParser,yaml:yamlParser,text:textParser,binary:binaryParser},resolve:{file:fileResolver,http:httpResolver,external:!0},dereference:{circular:!0},validate:{zschema:zschemaValidator}};
},{"./parsers/binary":6,"./parsers/json":7,"./parsers/text":8,"./parsers/yaml":9,"./resolvers/file":14,"./resolvers/http":15,"./validators/z-schema":21}],5:[function(require,module,exports){
(function (Buffer){
"use strict";function parse(r,e,n){try{r=url.stripHash(r);var t=e._add(r),u={url:r,extension:url.getExtension(r)};return readFile(u,n).then(function(r){return t.pathType=r.plugin.name,u.data=r.result,parseFile(u,n)}).then(function(r){return t.value=r.result,r.result})}catch(i){return Promise.reject(i)}}function readFile(r,e){return new Promise(function(n,t){function u(e){t(!e||e instanceof SyntaxError?ono.syntax('Unable to resolve $ref pointer "%s"',r.url):e)}debug("Reading %s",r.url);var i=plugins.all(e.resolve);i=plugins.filter(i,"canRead",r),plugins.sort(i),plugins.run(i,"read",r).then(n,u)})}function parseFile(r,e){return new Promise(function(n,t){function u(e){!e.plugin.allowEmpty&&isEmpty(e.result)?t(ono.syntax('Error parsing "%s" as %s. \nParsed value is empty',r.url,e.plugin.name)):n(e)}function i(e){e?(e=e instanceof Error?e:new Error(e),t(ono.syntax(e,"Error parsing %s",r.url))):t(ono.syntax("Unable to parse %s",r.url))}debug("Parsing %s",r.url);var s=plugins.all(e.parse),l=plugins.filter(s,"canParse",r),o=l.length>0?l:s;plugins.sort(o),plugins.run(o,"parse",r).then(u,i)})}function isEmpty(r){return void 0===r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||Buffer.isBuffer(r)&&0===r.length}var ono=require("ono"),debug=require("./util/debug"),url=require("./util/url"),plugins=require("./util/plugins"),Promise=require("./util/promise");module.exports=parse;
}).call(this,{"isBuffer":require("../node_modules/is-buffer/index.js")})
},{"../node_modules/is-buffer/index.js":36,"./util/debug":16,"./util/plugins":17,"./util/promise":18,"./util/url":19,"ono":69}],6:[function(require,module,exports){
(function (Buffer){
"use strict";var BINARY_REGEXP=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;module.exports={order:400,allowEmpty:!0,canParse:function(r){return Buffer.isBuffer(r.data)&&BINARY_REGEXP.test(r.url)},parse:function(r){return Buffer.isBuffer(r.data)?r.data:new Buffer(r.data)}};
}).call(this,require("buffer").Buffer)
},{"buffer":25}],7:[function(require,module,exports){
(function (Buffer){
"use strict";var Promise=require("../util/promise");module.exports={order:100,allowEmpty:!0,canParse:".json",parse:function(r){return new Promise(function(e,t){var i=r.data;Buffer.isBuffer(i)&&(i=i.toString()),e("string"==typeof i?0===i.trim().length?void 0:JSON.parse(i):i)})}};
}).call(this,{"isBuffer":require("../../node_modules/is-buffer/index.js")})
},{"../../node_modules/is-buffer/index.js":36,"../util/promise":18}],8:[function(require,module,exports){
(function (Buffer){
"use strict";var TEXT_REGEXP=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;module.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:function(t){return("string"==typeof t.data||Buffer.isBuffer(t.data))&&TEXT_REGEXP.test(t.url)},parse:function(t){if("string"==typeof t.data)return t.data;if(Buffer.isBuffer(t.data))return t.data.toString(this.encoding);throw new Error("data is not text")}};
}).call(this,{"isBuffer":require("../../node_modules/is-buffer/index.js")})
},{"../../node_modules/is-buffer/index.js":36}],9:[function(require,module,exports){
(function (Buffer){
"use strict";var Promise=require("../util/promise"),YAML=require("../util/yaml");module.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],parse:function(r){return new Promise(function(e,t){var i=r.data;Buffer.isBuffer(i)&&(i=i.toString()),e("string"==typeof i?YAML.parse(i):i)})}};
}).call(this,{"isBuffer":require("../../node_modules/is-buffer/index.js")})
},{"../../node_modules/is-buffer/index.js":36,"../util/promise":18,"../util/yaml":20}],10:[function(require,module,exports){
"use strict";function Pointer(e,r){this.$ref=e,this.path=r,this.value=void 0,this.circular=!1}function resolveIf$Ref(e,r){if($Ref.isAllowed$Ref(e.value,r)){var t=url.resolve(e.path,e.value.$ref);if(t!==e.path){var s=e.$ref.$refs._resolve(t,r);return $Ref.isExtended$Ref(e.value)?e.value=$Ref.dereference(e.value,s.value):(e.$ref=s.$ref,e.path=s.path,e.value=s.value),!0}e.circular=!0}}function setValue(e,r,t){if(!e.value||"object"!=typeof e.value)throw ono.syntax('Error assigning $ref pointer "%s". \nCannot set "%s" of a non-object.',e.path,r);return"-"===r&&Array.isArray(e.value)?e.value.push(t):e.value[r]=t,t}module.exports=Pointer;var $Ref=require("./ref"),url=require("./util/url"),ono=require("ono"),slashes=/\//g,tildes=/~/g,escapedSlash=/~1/g,escapedTilde=/~0/g;Pointer.prototype.resolve=function(e,r){var t=Pointer.parse(this.path);this.value=e;for(var s=0;s<t.length;s++){resolveIf$Ref(this,r)&&(this.path=Pointer.join(this.path,t.slice(s)));var i=t[s];if(void 0===this.value[i])throw ono.syntax('Error resolving $ref pointer "%s". \nToken "%s" does not exist.',this.path,i);this.value=this.value[i]}return resolveIf$Ref(this,r),this},Pointer.prototype.set=function(e,r,t){var s,i=Pointer.parse(this.path);if(0===i.length)return this.value=r,r;this.value=e;for(var a=0;a<i.length-1;a++)resolveIf$Ref(this,t),s=i[a],this.value&&void 0!==this.value[s]?this.value=this.value[s]:this.value=setValue(this,s,{});return resolveIf$Ref(this,t),s=i[i.length-1],setValue(this,s,r),e},Pointer.parse=function(e){var r=url.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(var t=0;t<r.length;t++)r[t]=decodeURI(r[t].replace(escapedSlash,"/").replace(escapedTilde,"~"));if(""!==r[0])throw ono.syntax('Invalid $ref pointer "%s". Pointers must begin with "#/"',r);return r.slice(1)},Pointer.join=function(e,r){-1===e.indexOf("#")&&(e+="#"),r=Array.isArray(r)?r:[r];for(var t=0;t<r.length;t++){var s=r[t];e+="/"+encodeURI(s.replace(tildes,"~0").replace(slashes,"~1"))}return e};
},{"./ref":11,"./util/url":19,"ono":69}],11:[function(require,module,exports){
"use strict";function $Ref(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0}module.exports=$Ref;var Pointer=require("./pointer");$Ref.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(r){return!1}},$Ref.prototype.get=function(e,t){return this.resolve(e,t).value},$Ref.prototype.resolve=function(e,t){var r=new Pointer(this,e);return r.resolve(this.value,t)},$Ref.prototype.set=function(e,t){var r=new Pointer(this,e);this.value=r.set(this.value,t)},$Ref.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},$Ref.isExternal$Ref=function(e){return $Ref.is$Ref(e)&&"#"!==e.$ref[0]},$Ref.isAllowed$Ref=function(e,t){return!$Ref.is$Ref(e)||"#"!==e.$ref[0]&&t&&!t.resolve.external?void 0:!0},$Ref.isExtended$Ref=function(e){return $Ref.is$Ref(e)&&Object.keys(e).length>1},$Ref.dereference=function(e,t){if(t&&"object"==typeof t&&$Ref.isExtended$Ref(e)){var r={};return Object.keys(e).forEach(function(t){"$ref"!==t&&(r[t]=e[t])}),Object.keys(t).forEach(function(e){e in r||(r[e]=t[e])}),r}return t};
},{"./pointer":10}],12:[function(require,module,exports){
"use strict";function $Refs(){this.circular=!1,this._$refs={},this._root$Ref=null}function getPaths(e,r){var t=Object.keys(e);return r=Array.isArray(r[0])?r[0]:Array.prototype.slice.call(r),r.length>0&&r[0]&&(t=t.filter(function(t){return-1!==r.indexOf(e[t].pathType)})),t.map(function(r){return{encoded:r,decoded:"file"===e[r].pathType?url.toFileSystemPath(r,!0):r}})}var ono=require("ono"),$Ref=require("./ref"),url=require("./util/url");module.exports=$Refs,$Refs.prototype.paths=function(e){var r=getPaths(this._$refs,arguments);return r.map(function(e){return e.decoded})},$Refs.prototype.values=function(e){var r=this._$refs,t=getPaths(r,arguments);return t.reduce(function(e,t){return e[t.decoded]=r[t.encoded].value,e},{})},$Refs.prototype.toJSON=$Refs.prototype.values,$Refs.prototype.exists=function(e,r){try{return this._resolve(e,r),!0}catch(t){return!1}},$Refs.prototype.get=function(e,r){return this._resolve(e,r).value},$Refs.prototype.set=function(e,r){e=url.resolve(this._root$Ref.path,e);var t=url.stripHash(e),o=this._$refs[t];if(!o)throw ono('Error resolving $ref pointer "%s". \n"%s" not found.',e,t);o.set(e,r)},$Refs.prototype._add=function(e,r){var t=url.stripHash(e),o=new $Ref;return o.path=t,o.value=r,o.$refs=this,this._$refs[t]=o,this._root$Ref=this._root$Ref||o,o},$Refs.prototype._resolve=function(e,r){e=url.resolve(this._root$Ref.path,e);var t=url.stripHash(e),o=this._$refs[t];if(!o)throw ono('Error resolving $ref pointer "%s". \n"%s" not found.',e,t);return o.resolve(e,r)},$Refs.prototype._get$Ref=function(e){e=url.resolve(this._root$Ref.path,e);var r=url.stripHash(e);return this._$refs[r]};
},{"./ref":11,"./util/url":19,"ono":69}],13:[function(require,module,exports){
"use strict";function resolveExternal(e,r){if(!r.resolve.external)return Promise.resolve();try{debug("Resolving $ref pointers in %s",e.$refs._root$Ref.path);var s=crawl(e.schema,e.$refs._root$Ref.path+"#",e.$refs,r);return Promise.all(s)}catch(t){return Promise.reject(t)}}function crawl(e,r,s,t){var o=[];return e&&"object"==typeof e&&($Ref.isExternal$Ref(e)?o.push(resolve$Ref(e,r,s,t)):Object.keys(e).forEach(function(i){var n=Pointer.join(r,i),l=e[i];$Ref.isExternal$Ref(l)?o.push(resolve$Ref(l,n,s,t)):o=o.concat(crawl(l,n,s,t))})),o}function resolve$Ref(e,r,s,t){debug('Resolving $ref pointer "%s" at %s',e.$ref,r);var o=url.resolve(r,e.$ref),i=url.stripHash(o);return e=s._$refs[i],e?Promise.resolve(e.value):parse(o,s,t).then(function(e){debug("Resolving $ref pointers in %s",i);var r=crawl(e,i+"#",s,t);return Promise.all(r)})}var Promise=require("./util/promise"),$Ref=require("./ref"),Pointer=require("./pointer"),parse=require("./parse"),debug=require("./util/debug"),url=require("./util/url");module.exports=resolveExternal;
},{"./parse":5,"./pointer":10,"./ref":11,"./util/debug":16,"./util/promise":18,"./util/url":19}],14:[function(require,module,exports){
"use strict";var fs=require("fs"),ono=require("ono"),Promise=require("../util/promise"),url=require("../util/url"),debug=require("../util/debug");module.exports={order:100,canRead:function(r){return url.isFileSystemPath(r.url)},read:function(r){return new Promise(function(e,i){var u;try{u=url.toFileSystemPath(r.url)}catch(o){i(ono.uri(o,"Malformed URI: %s",r.url))}debug("Opening file: %s",u);try{fs.readFile(u,function(r,o){r?i(ono(r,'Error opening file "%s"',u)):e(o)})}catch(o){i(ono(o,'Error opening file "%s"',u))}})}};
},{"../util/debug":16,"../util/promise":18,"../util/url":19,"fs":24,"ono":69}],15:[function(require,module,exports){
(function (process,Buffer){
"use strict";function download(e,t,o){return new Promise(function(r,n){e=url.parse(e),o=o||[],o.push(e.href),get(e,t).then(function(s){if(s.statusCode>=400)throw ono({status:s.statusCode},"HTTP ERROR %d",s.statusCode);if(s.statusCode>=300)if(o.length>t.redirects)n(ono({status:s.statusCode},"Error downloading %s. \nToo many redirects: \n %s",o[0],o.join(" \n ")));else{if(!s.headers.location)throw ono({status:s.statusCode},"HTTP %d redirect with no location header",s.statusCode);debug("HTTP %d redirect %s -> %s",s.statusCode,e.href,s.headers.location);var u=url.resolve(e,s.headers.location);download(u,t,o).then(r,n)}else r(s.body||new Buffer(0))})["catch"](function(t){n(ono(t,"Error downloading",e.href))})})}function get(e,t){return new Promise(function(o,r){debug("GET",e.href);var n="https:"===e.protocol?https:http,s=n.get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",function(){s.abort()}),s.on("error",r),s.once("response",function(e){e.body=new Buffer(0),e.on("data",function(t){e.body=Buffer.concat([e.body,new Buffer(t)])}),e.on("error",r),e.on("end",function(){o(e)})})})}var http=require("http"),https=require("https"),ono=require("ono"),url=require("../util/url"),debug=require("../util/debug"),Promise=require("../util/promise");module.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:function(e){return url.isHttp(e.url)},read:function(e){var t=url.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=url.parse(location.href).protocol),download(t,this)}};
}).call(this,require('_process'),require("buffer").Buffer)
},{"../util/debug":16,"../util/promise":18,"../util/url":19,"_process":71,"buffer":25,"http":87,"https":33,"ono":69}],16:[function(require,module,exports){
"use strict";var debug=require("debug");module.exports=debug("json-schema-ref-parser");
},{"debug":29}],17:[function(require,module,exports){
"use strict";function getResult(e,r,t,n){var u=e[r];if("function"==typeof u)return u.apply(e,[t,n]);if(!n){if(u instanceof RegExp)return u.test(t.url);if("string"==typeof u)return u===t.extension;if(Array.isArray(u))return-1!==u.indexOf(t.extension)}return u}var Promise=require("./promise"),debug=require("./debug");exports.all=function(e){return Object.keys(e).filter(function(r){return"object"==typeof e[r]}).map(function(r){return e[r].name=r,e[r]})},exports.filter=function(e,r,t){return e.filter(function(e){return!!getResult(e,r,t)})},exports.sort=function(e){return e.forEach(function(e){e.order=e.order||Number.MAX_SAFE_INTEGER}),e.sort(function(e,r){return e.order-r.order})},exports.run=function(e,r,t){var n,u,i=0;return new Promise(function(o,f){function s(){if(n=e[i++],!n)return f(u);try{debug(" %s",n.name);var o=getResult(n,r,t,c);o&&"function"==typeof o.then?o.then(a,p):void 0!==o&&a(o)}catch(s){p(s)}}function c(e,r){e?p(e):a(r)}function a(e){debug(" success"),o({plugin:n,result:e})}function p(e){debug(" %s",e.message||e),u=e,s()}s()})};
},{"./debug":16,"./promise":18}],18:[function(require,module,exports){
"use strict";module.exports="function"==typeof Promise?Promise:require("es6-promise").Promise;
},{"es6-promise":31}],19:[function(require,module,exports){
(function (process){
"use strict";var isWindows=/^win/.test(process.platform),forwardSlashPattern=/\//g,protocolPattern=/^([a-z0-9.+-]+):\/\//i,url=module.exports,urlEncodePatterns=[/\?/g,"%3F",/\#/g,"%23",isWindows?/\\/g:/\//,"/"],urlDecodePatterns=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];exports.parse=require("url").parse,exports.resolve=require("url").resolve,exports.cwd=function(){return process.browser?location.href:process.cwd()+"/"},exports.getProtocol=function(r){var e=protocolPattern.exec(r);return e?e[1].toLowerCase():void 0},exports.getExtension=function(r){var e=r.lastIndexOf(".");return e>=0?r.substr(e).toLowerCase():""},exports.getHash=function(r){var e=r.indexOf("#");return e>=0?r.substr(e):"#"},exports.stripHash=function(r){var e=r.indexOf("#");return e>=0&&(r=r.substr(0,e)),r},exports.isHttp=function(r){var e=url.getProtocol(r);return"http"===e||"https"===e?!0:void 0===e?process.browser:!1},exports.isFileSystemPath=function(r){if(process.browser)return!1;var e=url.getProtocol(r);return void 0===e||"file"===e},exports.fromFileSystemPath=function(r){for(var e=0;e<urlEncodePatterns.length;e+=2)r=r.replace(urlEncodePatterns[e],urlEncodePatterns[e+1]);return encodeURI(r)},exports.toFileSystemPath=function(r,e){r=decodeURI(r);for(var t=0;t<urlDecodePatterns.length;t+=2)r=r.replace(urlDecodePatterns[t],urlDecodePatterns[t+1]);var o="file://"===r.substr(0,7).toLowerCase();return o&&(r="/"===r[7]?r.substr(8):r.substr(7),isWindows&&"/"===r[1]&&(r=r[0]+":"+r.substr(1)),e?r="file:///"+r:(o=!1,r=isWindows?r:"/"+r)),isWindows&&!o&&(r=r.replace(forwardSlashPattern,"\\")),r};
}).call(this,require('_process'))
},{"_process":71,"url":93}],20:[function(require,module,exports){
"use strict";var yaml=require("js-yaml"),ono=require("ono");module.exports={parse:function(r,e){try{return yaml.safeLoad(r)}catch(o){throw o instanceof Error?o:ono(o,o.message)}},stringify:function(r,e,o){try{var t=("string"==typeof o?o.length:o)||2;return yaml.safeDump(r,{indent:t})}catch(n){throw n instanceof Error?n:ono(n,n.message)}}};
},{"js-yaml":38,"ono":69}],21:[function(require,module,exports){
"use strict";module.exports={order:100,canValidate:function(e){return!!e.resolved},validate:function(e){}};
},{}],22:[function(require,module,exports){
var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function r(t){var r=t.charCodeAt(0);return r===h||r===u?62:r===c||r===f?63:o>r?-1:o+10>r?r-o+26+26:i+26>r?r-i:A+26>r?r-A+26:void 0}function e(t){function e(t){i[f++]=t}var n,h,c,o,A,i;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=t.length;A="="===t.charAt(u-2)?2:"="===t.charAt(u-1)?1:0,i=new a(3*t.length/4-A),c=A>0?t.length-4:t.length;var f=0;for(n=0,h=0;c>n;n+=4,h+=3)o=r(t.charAt(n))<<18|r(t.charAt(n+1))<<12|r(t.charAt(n+2))<<6|r(t.charAt(n+3)),e((16711680&o)>>16),e((65280&o)>>8),e(255&o);return 2===A?(o=r(t.charAt(n))<<2|r(t.charAt(n+1))>>4,e(255&o)):1===A&&(o=r(t.charAt(n))<<10|r(t.charAt(n+1))<<4|r(t.charAt(n+2))>>2,e(o>>8&255),e(255&o)),i}function n(t){function r(t){return lookup.charAt(t)}function e(t){return r(t>>18&63)+r(t>>12&63)+r(t>>6&63)+r(63&t)}var n,a,h,c=t.length%3,o="";for(n=0,h=t.length-c;h>n;n+=3)a=(t[n]<<16)+(t[n+1]<<8)+t[n+2],o+=e(a);switch(c){case 1:a=t[t.length-1],o+=r(a>>2),o+=r(a<<4&63),o+="==";break;case 2:a=(t[t.length-2]<<8)+t[t.length-1],o+=r(a>>10),o+=r(a>>4&63),o+=r(a<<2&63),o+="="}return o}var a="undefined"!=typeof Uint8Array?Uint8Array:Array,h="+".charCodeAt(0),c="/".charCodeAt(0),o="0".charCodeAt(0),A="a".charCodeAt(0),i="A".charCodeAt(0),u="-".charCodeAt(0),f="_".charCodeAt(0);t.toByteArray=e,t.fromByteArray=n}("undefined"==typeof exports?this.base64js={}:exports);
},{}],23:[function(require,module,exports){
},{}],24:[function(require,module,exports){
},{}],25:[function(require,module,exports){
(function (global){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
"use strict";function typedArraySupport(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Buffer(t){return this instanceof Buffer?(Buffer.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof t?fromNumber(this,t):"string"==typeof t?fromString(this,t,arguments.length>1?arguments[1]:"utf8"):fromObject(this,t)):arguments.length>1?new Buffer(t,arguments[1]):new Buffer(t)}function fromNumber(t,e){if(t=allocate(t,0>e?0:0|checked(e)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;e>r;r++)t[r]=0;return t}function fromString(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|byteLength(e,r);return t=allocate(t,n),t.write(e,r),t}function fromObject(t,e){if(Buffer.isBuffer(e))return fromBuffer(t,e);if(isArray(e))return fromArray(t,e);if(null==e)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(e.buffer instanceof ArrayBuffer)return fromTypedArray(t,e);if(e instanceof ArrayBuffer)return fromArrayBuffer(t,e)}return e.length?fromArrayLike(t,e):fromJsonObject(t,e)}function fromBuffer(t,e){var r=0|checked(e.length);return t=allocate(t,r),e.copy(t,0,0,r),t}function fromArray(t,e){var r=0|checked(e.length);t=allocate(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function fromTypedArray(t,e){var r=0|checked(e.length);t=allocate(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function fromArrayBuffer(t,e){return Buffer.TYPED_ARRAY_SUPPORT?(e.byteLength,t=Buffer._augment(new Uint8Array(e))):t=fromTypedArray(t,new Uint8Array(e)),t}function fromArrayLike(t,e){var r=0|checked(e.length);t=allocate(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function fromJsonObject(t,e){var r,n=0;"Buffer"===e.type&&isArray(e.data)&&(r=e.data,n=0|checked(r.length)),t=allocate(t,n);for(var f=0;n>f;f+=1)t[f]=255&r[f];return t}function allocate(t,e){Buffer.TYPED_ARRAY_SUPPORT?(t=Buffer._augment(new Uint8Array(e)),t.__proto__=Buffer.prototype):(t.length=e,t._isBuffer=!0);var r=0!==e&&e<=Buffer.poolSize>>>1;return r&&(t.parent=rootParent),t}function checked(t){if(t>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function SlowBuffer(t,e){if(!(this instanceof SlowBuffer))return new SlowBuffer(t,e);var r=new Buffer(t,e);return delete r.parent,r}function byteLength(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(t).length;default:if(n)return utf8ToBytes(t).length;e=(""+e).toLowerCase(),n=!0}}function slowToString(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return hexSlice(this,e,r);case"utf8":case"utf-8":return utf8Slice(this,e,r);case"ascii":return asciiSlice(this,e,r);case"binary":return binarySlice(this,e,r);case"base64":return base64Slice(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function hexWrite(t,e,r,n){r=Number(r)||0;var f=t.length-r;n?(n=Number(n),n>f&&(n=f)):n=f;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;n>o;o++){var u=parseInt(e.substr(2*o,2),16);if(isNaN(u))throw new Error("Invalid hex string");t[r+o]=u}return o}function utf8Write(t,e,r,n){return blitBuffer(utf8ToBytes(e,t.length-r),t,r,n)}function asciiWrite(t,e,r,n){return blitBuffer(asciiToBytes(e),t,r,n)}function binaryWrite(t,e,r,n){return asciiWrite(t,e,r,n)}function base64Write(t,e,r,n){return blitBuffer(base64ToBytes(e),t,r,n)}f
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"base64-js":22,"ieee754":34,"isarray":37}],26:[function(require,module,exports){
module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};
},{}],27:[function(require,module,exports){
(function (process,global){
"use strict";var next=global.process&&process.nextTick||global.setImmediate||function(n){setTimeout(n,0)};module.exports=function(n,t){return n?void t.then(function(t){next(function(){n(null,t)})},function(t){next(function(){n(t)})}):t};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"_process":71}],28:[function(require,module,exports){
(function (Buffer){
function isArray(r){return Array.isArray?Array.isArray(r):"[object Array]"===objectToString(r)}function isBoolean(r){return"boolean"==typeof r}function isNull(r){return null===r}function isNullOrUndefined(r){return null==r}function isNumber(r){return"number"==typeof r}function isString(r){return"string"==typeof r}function isSymbol(r){return"symbol"==typeof r}function isUndefined(r){return void 0===r}function isRegExp(r){return"[object RegExp]"===objectToString(r)}function isObject(r){return"object"==typeof r&&null!==r}function isDate(r){return"[object Date]"===objectToString(r)}function isError(r){return"[object Error]"===objectToString(r)||r instanceof Error}function isFunction(r){return"function"==typeof r}function isPrimitive(r){return null===r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"symbol"==typeof r||"undefined"==typeof r}function objectToString(r){return Object.prototype.toString.call(r)}exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=Buffer.isBuffer;
}).call(this,{"isBuffer":require("../../is-buffer/index.js")})
},{"../../is-buffer/index.js":36}],29:[function(require,module,exports){
function useColors(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function formatArgs(){var o=arguments,e=this.useColors;if(o[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+o[0]+(e?"%c ":" ")+"+"+exports.humanize(this.diff),!e)return o;var r="color: "+this.color;o=[o[0],r,"color: inherit"].concat(Array.prototype.slice.call(o,1));var t=0,s=0;return o[0].replace(/%[a-z%]/g,function(o){"%%"!==o&&(t++,"%c"===o&&(s=t))}),o.splice(s,0,r),o}function log(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(o){try{null==o?exports.storage.removeItem("debug"):exports.storage.debug=o}catch(e){}}function load(){var o;try{o=exports.storage.debug}catch(e){}return o}function localstorage(){try{return window.localStorage}catch(o){}}exports=module.exports=require("./debug"),exports.log=log,exports.formatArgs=formatArgs,exports.save=save,exports.load=load,exports.useColors=useColors,exports.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage(),exports.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],exports.formatters.j=function(o){return JSON.stringify(o)},exports.enable(load());
},{"./debug":30}],30:[function(require,module,exports){
function selectColor(){return exports.colors[prevColor++%exports.colors.length]}function debug(e){function r(){}function o(){var e=o,r=+new Date,s=r-(prevTime||r);e.diff=s,e.prev=prevTime,e.curr=r,prevTime=r,null==e.useColors&&(e.useColors=exports.useColors()),null==e.color&&e.useColors&&(e.color=selectColor());var t=Array.prototype.slice.call(arguments);t[0]=exports.coerce(t[0]),"string"!=typeof t[0]&&(t=["%o"].concat(t));var n=0;t[0]=t[0].replace(/%([a-z%])/g,function(r,o){if("%%"===r)return r;n++;var s=exports.formatters[o];if("function"==typeof s){var p=t[n];r=s.call(e,p),t.splice(n,1),n--}return r}),"function"==typeof exports.formatArgs&&(t=exports.formatArgs.apply(e,t));var p=o.log||exports.log||console.log.bind(console);p.apply(e,t)}r.enabled=!1,o.enabled=!0;var s=exports.enabled(e)?o:r;return s.namespace=e,s}function enable(e){exports.save(e);for(var r=(e||"").split(/[\s,]+/),o=r.length,s=0;o>s;s++)r[s]&&(e=r[s].replace(/\*/g,".*?"),"-"===e[0]?exports.skips.push(new RegExp("^"+e.substr(1)+"$")):exports.names.push(new RegExp("^"+e+"$")))}function disable(){exports.enable("")}function enabled(e){var r,o;for(r=0,o=exports.skips.length;o>r;r++)if(exports.skips[r].test(e))return!1;for(r=0,o=exports.names.length;o>r;r++)if(exports.names[r].test(e))return!0;return!1}function coerce(e){return e instanceof Error?e.stack||e.message:e}exports=module.exports=debug,exports.coerce=coerce,exports.disable=disable,exports.enable=enable,exports.enabled=enabled,exports.humanize=require("ms"),exports.names=[],exports.skips=[],exports.formatters={};var prevColor=0,prevTime;
},{"ms":68}],31:[function(require,module,exports){
(function (process,global){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 3.1.2
*/
(function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){H=t}function o(){return function(){process.nextTick(a)}}function i(){return function(){U(a)}}function s(){var t=0,e=new Q(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){t.port2.postMessage(0)}}function c(){return function(){setTimeout(a,1)}}function a(){for(var t=0;G>t;t+=2){var e=X[t],n=X[t+1];e(n),X[t]=void 0,X[t+1]=void 0}G=0}function f(){try{var t=require,e=t("vertx");return U=e.runOnLoop||e.runOnContext,i()}catch(n){return c()}}function l(t,e){var n=this,r=n._state;if(r===et&&!t||r===nt&&!e)return this;var o=new this.constructor(p),i=n._result;if(r){var s=arguments[r-1];H(function(){C(r,o,s,i)})}else j(n,o,t,e);return o}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function p(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function v(){return new TypeError("A promises callback cannot return that same promise.")}function d(t){try{return t.then}catch(e){return rt.error=e,rt}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){H(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):E(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function w(t,e){e._state===et?E(t,e._result):e._state===nt?S(t,e._result):j(e,void 0,function(e){g(t,e)},function(e){S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===Z&&constructor.resolve===$?w(t,n):r===rt?S(t,rt.error):void 0===r?E(t,n):e(r)?m(t,n,r):E(t,n)}function g(e,n){e===n?S(e,_()):t(n)?b(e,n,d(n)):E(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function E(t,e){t._state===tt&&(t._result=e,t._state=et,0!==t._subscribers.length&&H(T,t))}function S(t,e){t._state===tt&&(t._state=nt,t._result=e,H(A,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+et]=n,o[i+nt]=r,0===i&&t._state&&H(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?C(n,r,o,i):o(i);t._subscribers.length=0}}function P(){this.error=null}function x(t,e){try{return t(e)}catch(n){return ot.error=n,ot}}function C(t,n,r,o){var i,s,u,c,a=e(r);if(a){if(i=x(r,o),i===ot?(c=!0,s=i.error,i=null):u=!0,n===i)return void S(n,v())}else i=o,u=!0;n._state!==tt||(a&&u?g(n,i):c?S(n,s):t===et?E(n,i):t===nt&&S(n,i))}function M(t,e){try{e(function(e){g(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function O(t){return new ft(this,t).promise}function k(t){function e(t){g(o,t)}function n(t){S(o,t)}var r=this,o=new r(p);if(!B(t))return S(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,s=0;o._state===tt&&i>s;s++)j(r.resolve(t[s]),void 0,e,n);return o}function Y(t){var e=this,n=new e(p);return S(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(t){this._id=ct++,this._state=void 0,this._result=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&q(),this instanceof D?M(this,t):F())}function K(t,e){this._instanceConstructor=t,this.promise=new t(p),Array.isArray(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&E(this.promise,this._result))):S(this.promise,this._validationError())}function L(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Prom
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"_process":71}],32:[function(require,module,exports){
function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(e){return"function"==typeof e}function isNumber(e){return"number"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}function isUndefined(e){return void 0===e}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(e){if(!isNumber(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},EventEmitter.prototype.emit=function(e){var t,i,n,s,r,o;if(this._events||(this._events={}),"error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(i=this._events[e],isUndefined(i))return!1;if(isFunction(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(isObject(i))for(s=Array.prototype.slice.call(arguments,1),o=i.slice(),n=o.length,r=0;n>r;r++)o[r].apply(this,s);return!0},EventEmitter.prototype.addListener=function(e,t){var i;if(!isFunction(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,isFunction(t.listener)?t.listener:t),this._events[e]?isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,isObject(this._events[e])&&!this._events[e].warned&&(i=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(e,t){function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}if(!isFunction(t))throw TypeError("listener must be a function");var n=!1;return i.listener=t,this.on(e,i),this},EventEmitter.prototype.removeListener=function(e,t){var i,n,s,r;if(!isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=this._events[e],s=i.length,n=-1,i===t||isFunction(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(isObject(i)){for(r=s;r-- >0;)if(i[r]===t||i[r].listener&&i[r].listener===t){n=r;break}if(0>n)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[e],isFunction(i))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);return delete this._events[e],this},EventEmitter.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},EventEmitter.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(isFunction(t))return 1;if(t)return t.length}return 0},EventEmitter.listenerCount=function(e,t){return e.listenerCount(t)};
},{}],33:[function(require,module,exports){
var http=require("http"),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",http.request.call(this,t,e)};
},{"http":87}],34:[function(require,module,exports){
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:(s?-1:1)*(1/0);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=0>o||0===o&&0>1/o?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),o+=p+N>=1?n/f:n*Math.pow(2,1-N),o*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],35:[function(require,module,exports){
"function"==typeof Object.create?module.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(t,e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t};
},{}],36:[function(require,module,exports){
module.exports=function(r){return!(null==r||!(r._isBuffer||r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)))};
},{}],37:[function(require,module,exports){
var toString={}.toString;module.exports=Array.isArray||function(r){return"[object Array]"==toString.call(r)};
},{}],38:[function(require,module,exports){
"use strict";var yaml=require("./lib/js-yaml.js");module.exports=yaml;
},{"./lib/js-yaml.js":39}],39:[function(require,module,exports){
"use strict";function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}var loader=require("./js-yaml/loader"),dumper=require("./js-yaml/dumper");module.exports.Type=require("./js-yaml/type"),module.exports.Schema=require("./js-yaml/schema"),module.exports.FAILSAFE_SCHEMA=require("./js-yaml/schema/failsafe"),module.exports.JSON_SCHEMA=require("./js-yaml/schema/json"),module.exports.CORE_SCHEMA=require("./js-yaml/schema/core"),module.exports.DEFAULT_SAFE_SCHEMA=require("./js-yaml/schema/default_safe"),module.exports.DEFAULT_FULL_SCHEMA=require("./js-yaml/schema/default_full"),module.exports.load=loader.load,module.exports.loadAll=loader.loadAll,module.exports.safeLoad=loader.safeLoad,module.exports.safeLoadAll=loader.safeLoadAll,module.exports.dump=dumper.dump,module.exports.safeDump=dumper.safeDump,module.exports.YAMLException=require("./js-yaml/exception"),module.exports.MINIMAL_SCHEMA=require("./js-yaml/schema/failsafe"),module.exports.SAFE_SCHEMA=require("./js-yaml/schema/default_safe"),module.exports.DEFAULT_SCHEMA=require("./js-yaml/schema/default_full"),module.exports.scan=deprecated("scan"),module.exports.parse=deprecated("parse"),module.exports.compose=deprecated("compose"),module.exports.addConstructor=deprecated("addConstructor");
},{"./js-yaml/dumper":41,"./js-yaml/exception":42,"./js-yaml/loader":43,"./js-yaml/schema":45,"./js-yaml/schema/core":46,"./js-yaml/schema/default_full":47,"./js-yaml/schema/default_safe":48,"./js-yaml/schema/failsafe":49,"./js-yaml/schema/json":50,"./js-yaml/type":51}],40:[function(require,module,exports){
"use strict";function isNothing(e){return"undefined"==typeof e||null===e}function isObject(e){return"object"==typeof e&&null!==e}function toArray(e){return Array.isArray(e)?e:isNothing(e)?[]:[e]}function extend(e,t){var r,o,n,i;if(t)for(i=Object.keys(t),r=0,o=i.length;o>r;r+=1)n=i[r],e[n]=t[n];return e}function repeat(e,t){var r,o="";for(r=0;t>r;r+=1)o+=e;return o}function isNegativeZero(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}module.exports.isNothing=isNothing,module.exports.isObject=isObject,module.exports.toArray=toArray,module.exports.repeat=repeat,module.exports.isNegativeZero=isNegativeZero,module.exports.extend=extend;
},{}],41:[function(require,module,exports){
"use strict";function compileStyleMap(e,t){var n,i,r,E,o,l,a;if(null===t)return{};for(n={},i=Object.keys(t),r=0,E=i.length;E>r;r+=1)o=i[r],l=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap[o],a&&_hasOwnProperty.call(a.styleAliases,l)&&(l=a.styleAliases[l]),n[o]=l;return n}function encodeHex(e){var t,n,i;if(t=e.toString(16).toUpperCase(),255>=e)n="x",i=2;else if(65535>=e)n="u",i=4;else{if(!(4294967295>=e))throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+common.repeat("0",i-t.length)+t}function State(e){this.schema=e.schema||DEFAULT_FULL_SCHEMA,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=common.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=compileStyleMap(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function indentString(e,t){for(var n,i=common.repeat(" ",t),r=0,E=-1,o="",l=e.length;l>r;)E=e.indexOf("\n",r),-1===E?(n=e.slice(r),r=l):(n=e.slice(r,E+1),r=E+1),n.length&&"\n"!==n&&(o+=i),o+=n;return o}function generateNextLine(e,t){return"\n"+common.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;i>n;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function isWhitespace(e){return e===CHAR_SPACE||e===CHAR_TAB}function isPrintable(e){return e>=32&&126>=e||e>=161&&55295>=e&&8232!==e&&8233!==e||e>=57344&&65533>=e&&65279!==e||e>=65536&&1114111>=e}function isPlainSafe(e){return isPrintable(e)&&65279!==e&&e!==CHAR_COMMA&&e!==CHAR_LEFT_SQUARE_BRACKET&&e!==CHAR_RIGHT_SQUARE_BRACKET&&e!==CHAR_LEFT_CURLY_BRACKET&&e!==CHAR_RIGHT_CURLY_BRACKET&&e!==CHAR_COLON&&e!==CHAR_SHARP}function isPlainSafeFirst(e){return isPrintable(e)&&65279!==e&&!isWhitespace(e)&&e!==CHAR_MINUS&&e!==CHAR_QUESTION&&e!==CHAR_COLON&&e!==CHAR_COMMA&&e!==CHAR_LEFT_SQUARE_BRACKET&&e!==CHAR_RIGHT_SQUARE_BRACKET&&e!==CHAR_LEFT_CURLY_BRACKET&&e!==CHAR_RIGHT_CURLY_BRACKET&&e!==CHAR_SHARP&&e!==CHAR_AMPERSAND&&e!==CHAR_ASTERISK&&e!==CHAR_EXCLAMATION&&e!==CHAR_VERTICAL_LINE&&e!==CHAR_GREATER_THAN&&e!==CHAR_SINGLE_QUOTE&&e!==CHAR_DOUBLE_QUOTE&&e!==CHAR_PERCENT&&e!==CHAR_COMMERCIAL_AT&&e!==CHAR_GRAVE_ACCENT}function chooseScalarStyle(e,t,n,i,r){var E,o,l=!1,a=!1,s=-1!==i,c=-1,A=isPlainSafeFirst(e.charCodeAt(0))&&!isWhitespace(e.charCodeAt(e.length-1));if(t)for(E=0;E<e.length;E++){if(o=e.charCodeAt(E),!isPrintable(o))return STYLE_DOUBLE;A=A&&isPlainSafe(o)}else{for(E=0;E<e.length;E++){if(o=e.charCodeAt(E),o===CHAR_LINE_FEED)l=!0,s&&(a=a||E-c-1>i&&" "!==e[c+1],c=E);else if(!isPrintable(o))return STYLE_DOUBLE;A=A&&isPlainSafe(o)}a=a||s&&E-c-1>i&&" "!==e[c+1]}return l||a?" "===e[0]&&n>9?STYLE_DOUBLE:a?STYLE_FOLDED:STYLE_LITERAL:A&&!r(e)?STYLE_PLAIN:STYLE_SINGLE}function writeScalar(e,t,n,i){e.dump=function(){function r(t){return testImplicitResolving(e,t)}if(0===t.length)return"''";if(!e.noCompatMode&&-1!==DEPRECATED_BOOLEANS_SYNTAX.indexOf(t))return"'"+t+"'";var E=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-E),l=i||e.flowLevel>-1&&n>=e.flowLevel;switch(chooseScalarStyle(t,l,e.indent,o,r)){case STYLE_PLAIN:return t;case STYLE_SINGLE:return"'"+t.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,E));case STYLE_FOLDED:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,o),E));case STYLE_DOUBLE:return'"'+escapeString(t,o)+'"';default:throw new YAMLException("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=" "===e[0]?String(t):"",i="\n"===e[e.length-1],r=i&&("\n"===e[e.length-2]||"\n"===e),E=r?"+":i?"":"-";return n+E+"\n"}function dropEndingNewline(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function foldString(e,t){for(var n,i,r=/(\n+)([^\n]*)/
},{"./common":40,"./exception":42,"./schema/default_full":47,"./schema/default_safe":48}],42:[function(require,module,exports){
"use strict";function YAMLException(t,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=r,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}YAMLException.prototype=Object.create(Error.prototype),YAMLException.prototype.constructor=YAMLException,YAMLException.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},module.exports=YAMLException;
},{}],43:[function(require,module,exports){
"use strict";function is_EOL(e){return 10===e||13===e}function is_WHITE_SPACE(e){return 9===e||32===e}function is_WS_OR_EOL(e){return 9===e||32===e||10===e||13===e}function is_FLOW_INDICATOR(e){return 44===e||91===e||93===e||123===e||125===e}function fromHexCode(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function escapedHexLen(e){return 120===e?2:117===e?4:85===e?8:0}function fromDecimalCode(e){return e>=48&&57>=e?e-48:-1}function simpleEscapeSequence(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function charFromCodepoint(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function State(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||DEFAULT_FULL_SCHEMA,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(e,t){return new YAMLException(t,new Mark(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}function captureSegment(e,t,n,i){var o,r,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(o=0,r=s.length;r>o;o+=1)a=s.charCodeAt(o),9===a||a>=32&&1114111>=a||throwError(e,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(s)&&throwError(e,"the stream contains non-printable characters");e.result+=s}}function mergeMappings(e,t,n,i){var o,r,a,s;for(common.isObject(n)||throwError(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),a=0,s=o.length;s>a;a+=1)r=o[a],_hasOwnProperty.call(t,r)||(t[r]=n[r],i[r]=!0)}function storeMappingPair(e,t,n,i,o,r){var a,s;if(o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(r))for(a=0,s=r.length;s>a;a+=1)mergeMappings(e,t,r[a],n);else mergeMappings(e,t,r,n);else e.json||_hasOwnProperty.call(n,o)||!_hasOwnProperty.call(t,o)||throwError(e,"duplicated mapping key"),t[o]=r,delete n[o];return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):throwError(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function skipSeparationSpace(e,t,n){for(var i=0,o=e.input.charCodeAt(e.position);0!==o;){for(;is_WHITE_SPACE(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(!is_EOL(o))break;for(readLineBreak(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent<n&&throwWarning(e,"deficient indentation"),i}function testDocumentSeparator(e){var t,n=e.position;return t=e.input.charCodeAt(n),(45===t||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),0===t||is_WS_OR_EOL(t))}function writeFoldedLines(e,t){1===t?e.result+=" ":t>1&&(e.result+=common.repeat("\n",t-1))}function readPlainScalar(e,t,n){var i,o,r,a,s,p,c,l,u,d=e.kind,h=e.result;if(u=e.input.charCodeAt(e.position),is_WS_OR_EOL(u)||is_FLOW_INDICATOR(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)))return!1;for(e.kind="scalar",e.result="",r=a=e.position,s=!1;0!==u;){if(58===u){if(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o))break}else if(35===u){if(i=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(i))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(u))break;if(is_E
},{"./common":40,"./exception":42,"./mark":44,"./schema/default_full":47,"./schema/default_safe":48}],44:[function(require,module,exports){
"use strict";function Mark(t,i,n,e,r){this.name=t,this.buffer=i,this.position=n,this.line=e,this.column=r}var common=require("./common");Mark.prototype.getSnippet=function(t,i){var n,e,r,o,s;if(!this.buffer)return null;for(t=t||4,i=i||75,n="",e=this.position;e>0&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(e-1));)if(e-=1,this.position-e>i/2-1){n=" ... ",e+=5;break}for(r="",o=this.position;o<this.buffer.length&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o));)if(o+=1,o-this.position>i/2-1){r=" ... ",o-=5;break}return s=this.buffer.slice(e,o),common.repeat(" ",t)+n+s+r+"\n"+common.repeat(" ",t+this.position-e+n.length)+"^"},Mark.prototype.toString=function(t){var i,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(i=this.getSnippet(),i&&(n+=":\n"+i)),n},module.exports=Mark;
},{"./common":40}],45:[function(require,module,exports){
"use strict";function compileList(i,e,t){var c=[];return i.include.forEach(function(i){t=compileList(i,e,t)}),i[e].forEach(function(i){t.forEach(function(e,t){e.tag===i.tag&&c.push(t)}),t.push(i)}),t.filter(function(i,e){return-1===c.indexOf(e)})}function compileMap(){function i(i){c[i.tag]=i}var e,t,c={};for(e=0,t=arguments.length;t>e;e+=1)arguments[e].forEach(i);return c}function Schema(i){this.include=i.include||[],this.implicit=i.implicit||[],this.explicit=i.explicit||[],this.implicit.forEach(function(i){if(i.loadKind&&"scalar"!==i.loadKind)throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=compileList(this,"implicit",[]),this.compiledExplicit=compileList(this,"explicit",[]),this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}var common=require("./common"),YAMLException=require("./exception"),Type=require("./type");Schema.DEFAULT=null,Schema.create=function(){var i,e;switch(arguments.length){case 1:i=Schema.DEFAULT,e=arguments[0];break;case 2:i=arguments[0],e=arguments[1];break;default:throw new YAMLException("Wrong number of arguments for Schema.create function")}if(i=common.toArray(i),e=common.toArray(e),!i.every(function(i){return i instanceof Schema}))throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(i){return i instanceof Type}))throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Schema({include:i,explicit:e})},module.exports=Schema;
},{"./common":40,"./exception":42,"./type":51}],46:[function(require,module,exports){
"use strict";var Schema=require("../schema");module.exports=new Schema({include:[require("./json")]});
},{"../schema":45,"./json":50}],47:[function(require,module,exports){
"use strict";var Schema=require("../schema");module.exports=Schema.DEFAULT=new Schema({include:[require("./default_safe")],explicit:[require("../type/js/undefined"),require("../type/js/regexp"),require("../type/js/function")]});
},{"../schema":45,"../type/js/function":56,"../type/js/regexp":57,"../type/js/undefined":58,"./default_safe":48}],48:[function(require,module,exports){
"use strict";var Schema=require("../schema");module.exports=new Schema({include:[require("./core")],implicit:[require("../type/timestamp"),require("../type/merge")],explicit:[require("../type/binary"),require("../type/omap"),require("../type/pairs"),require("../type/set")]});
},{"../schema":45,"../type/binary":52,"../type/merge":60,"../type/omap":62,"../type/pairs":63,"../type/set":65,"../type/timestamp":67,"./core":46}],49:[function(require,module,exports){
"use strict";var Schema=require("../schema");module.exports=new Schema({explicit:[require("../type/str"),require("../type/seq"),require("../type/map")]});
},{"../schema":45,"../type/map":59,"../type/seq":64,"../type/str":66}],50:[function(require,module,exports){
"use strict";var Schema=require("../schema");module.exports=new Schema({include:[require("./failsafe")],implicit:[require("../type/null"),require("../type/bool"),require("../type/int"),require("../type/float")]});
},{"../schema":45,"../type/bool":53,"../type/float":54,"../type/int":55,"../type/null":61,"./failsafe":49}],51:[function(require,module,exports){
"use strict";function compileStyleAliases(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function Type(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===TYPE_CONSTRUCTOR_OPTIONS.indexOf(t))throw new YAMLException('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=compileStyleAliases(t.styleAliases||null),-1===YAML_NODE_KINDS.indexOf(this.kind))throw new YAMLException('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var YAMLException=require("./exception"),TYPE_CONSTRUCTOR_OPTIONS=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];module.exports=Type;
},{"./exception":42}],52:[function(require,module,exports){
"use strict";function resolveYamlBinary(r){if(null===r)return!1;var e,n,u=0,t=r.length,a=BASE64_MAP;for(n=0;t>n;n++)if(e=a.indexOf(r.charAt(n)),!(e>64)){if(0>e)return!1;u+=6}return u%8===0}function constructYamlBinary(r){var e,n,u=r.replace(/[\r\n=]/g,""),t=u.length,a=BASE64_MAP,f=0,i=[];for(e=0;t>e;e++)e%4===0&&e&&(i.push(f>>16&255),i.push(f>>8&255),i.push(255&f)),f=f<<6|a.indexOf(u.charAt(e));return n=t%4*6,0===n?(i.push(f>>16&255),i.push(f>>8&255),i.push(255&f)):18===n?(i.push(f>>10&255),i.push(f>>2&255)):12===n&&i.push(f>>4&255),NodeBuffer?new NodeBuffer(i):i}function representYamlBinary(r){var e,n,u="",t=0,a=r.length,f=BASE64_MAP;for(e=0;a>e;e++)e%3===0&&e&&(u+=f[t>>18&63],u+=f[t>>12&63],u+=f[t>>6&63],u+=f[63&t]),t=(t<<8)+r[e];return n=a%3,0===n?(u+=f[t>>18&63],u+=f[t>>12&63],u+=f[t>>6&63],u+=f[63&t]):2===n?(u+=f[t>>10&63],u+=f[t>>4&63],u+=f[t<<2&63],u+=f[64]):1===n&&(u+=f[t>>2&63],u+=f[t<<4&63],u+=f[64],u+=f[64]),u}function isBinary(r){return NodeBuffer&&NodeBuffer.isBuffer(r)}var NodeBuffer;try{var _require=require;NodeBuffer=_require("buffer").Buffer}catch(__){}var Type=require("../type"),BASE64_MAP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";module.exports=new Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});
},{"../type":51}],53:[function(require,module,exports){
"use strict";function resolveYamlBoolean(e){if(null===e)return!1;var r=e.length;return 4===r&&("true"===e||"True"===e||"TRUE"===e)||5===r&&("false"===e||"False"===e||"FALSE"===e)}function constructYamlBoolean(e){return"true"===e||"True"===e||"TRUE"===e}function isBoolean(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});
},{"../type":51}],54:[function(require,module,exports){
"use strict";function resolveYamlFloat(e){return null===e?!1:!!YAML_FLOAT_PATTERN.test(e)}function constructYamlFloat(e){var r,t,a,n;return r=e.replace(/_/g,"").toLowerCase(),t="-"===r[0]?-1:1,n=[],"+-".indexOf(r[0])>=0&&(r=r.slice(1)),".inf"===r?1===t?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===r?NaN:r.indexOf(":")>=0?(r.split(":").forEach(function(e){n.unshift(parseFloat(e,10))}),r=0,a=1,n.forEach(function(e){r+=e*a,a*=60}),t*r):t*parseFloat(r,10)}function representYamlFloat(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(e))return"-0.0";return t=e.toString(10),SCIENTIFIC_WITHOUT_DOT.test(t)?t.replace("e",".e"):t}function isFloat(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!==0||common.isNegativeZero(e))}var common=require("../common"),Type=require("../type"),YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;module.exports=new Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});
},{"../common":40,"../type":51}],55:[function(require,module,exports){
"use strict";function isHexCode(e){return e>=48&&57>=e||e>=65&&70>=e||e>=97&&102>=e}function isOctCode(e){return e>=48&&55>=e}function isDecCode(e){return e>=48&&57>=e}function resolveYamlInteger(e){if(null===e)return!1;var r,t=e.length,n=0,i=!1;if(!t)return!1;if(r=e[n],"-"!==r&&"+"!==r||(r=e[++n]),"0"===r){if(n+1===t)return!0;if(r=e[++n],"b"===r){for(n++;t>n;n++)if(r=e[n],"_"!==r){if("0"!==r&&"1"!==r)return!1;i=!0}return i}if("x"===r){for(n++;t>n;n++)if(r=e[n],"_"!==r){if(!isHexCode(e.charCodeAt(n)))return!1;i=!0}return i}for(;t>n;n++)if(r=e[n],"_"!==r){if(!isOctCode(e.charCodeAt(n)))return!1;i=!0}return i}for(;t>n;n++)if(r=e[n],"_"!==r){if(":"===r)break;if(!isDecCode(e.charCodeAt(n)))return!1;i=!0}return i?":"!==r?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(n)):!1}function constructYamlInteger(e){var r,t,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),r=n[0],"-"!==r&&"+"!==r||("-"===r&&(i=-1),n=n.slice(1),r=n[0]),"0"===n?0:"0"===r?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),n=0,t=1,o.forEach(function(e){n+=e*t,t*=60}),i*n):i*parseInt(n,10)}function isInteger(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1===0&&!common.isNegativeZero(e)}var common=require("../common"),Type=require("../type");module.exports=new Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});
},{"../common":40,"../type":51}],56:[function(require,module,exports){
"use strict";function resolveJavascriptFunction(e){if(null===e)return!1;try{var r="("+e+")",n=esprima.parse(r,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&"FunctionExpression"===n.body[0].expression.type}catch(t){return!1}}function constructJavascriptFunction(e){var r,n="("+e+")",t=esprima.parse(n,{range:!0}),o=[];if("Program"!==t.type||1!==t.body.length||"ExpressionStatement"!==t.body[0].type||"FunctionExpression"!==t.body[0].expression.type)throw new Error("Failed to resolve function");return t.body[0].expression.params.forEach(function(e){o.push(e.name)}),r=t.body[0].expression.body.range,new Function(o,n.slice(r[0]+1,r[1]-1))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return"[object Function]"===Object.prototype.toString.call(e)}var esprima;try{var _require=require;esprima=_require("esprima")}catch(_){"undefined"!=typeof window&&(esprima=window.esprima)}var Type=require("../../type");module.exports=new Type("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction});
},{"../../type":51}],57:[function(require,module,exports){
"use strict";function resolveJavascriptRegExp(e){if(null===e)return!1;if(0===e.length)return!1;var r=e,t=/\/([gim]*)$/.exec(e),n="";if("/"===r[0]){if(t&&(n=t[1]),n.length>3)return!1;if("/"!==r[r.length-n.length-1])return!1}return!0}function constructJavascriptRegExp(e){var r=e,t=/\/([gim]*)$/.exec(e),n="";return"/"===r[0]&&(t&&(n=t[1]),r=r.slice(1,r.length-n.length-1)),new RegExp(r,n)}function representJavascriptRegExp(e){var r="/"+e.source+"/";return e.global&&(r+="g"),e.multiline&&(r+="m"),e.ignoreCase&&(r+="i"),r}function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var Type=require("../../type");module.exports=new Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp});
},{"../../type":51}],58:[function(require,module,exports){
"use strict";function resolveJavascriptUndefined(){return!0}function constructJavascriptUndefined(){}function representJavascriptUndefined(){return""}function isUndefined(e){return"undefined"==typeof e}var Type=require("../../type");module.exports=new Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined});
},{"../../type":51}],59:[function(require,module,exports){
"use strict";var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}});
},{"../type":51}],60:[function(require,module,exports){
"use strict";function resolveYamlMerge(e){return"<<"===e||null===e}var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});
},{"../type":51}],61:[function(require,module,exports){
"use strict";function resolveYamlNull(l){if(null===l)return!0;var e=l.length;return 1===e&&"~"===l||4===e&&("null"===l||"Null"===l||"NULL"===l)}function constructYamlNull(){return null}function isNull(l){return null===l}var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"});
},{"../type":51}],62:[function(require,module,exports){
"use strict";function resolveYamlOmap(r){if(null===r)return!0;var t,e,n,o,u,a=[],l=r;for(t=0,e=l.length;e>t;t+=1){if(n=l[t],u=!1,"[object Object]"!==_toString.call(n))return!1;for(o in n)if(_hasOwnProperty.call(n,o)){if(u)return!1;u=!0}if(!u)return!1;if(-1!==a.indexOf(o))return!1;a.push(o)}return!0}function constructYamlOmap(r){return null!==r?r:[]}var Type=require("../type"),_hasOwnProperty=Object.prototype.hasOwnProperty,_toString=Object.prototype.toString;module.exports=new Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});
},{"../type":51}],63:[function(require,module,exports){
"use strict";function resolveYamlPairs(r){if(null===r)return!0;var e,t,n,l,o,a=r;for(o=new Array(a.length),e=0,t=a.length;t>e;e+=1){if(n=a[e],"[object Object]"!==_toString.call(n))return!1;if(l=Object.keys(n),1!==l.length)return!1;o[e]=[l[0],n[l[0]]]}return!0}function constructYamlPairs(r){if(null===r)return[];var e,t,n,l,o,a=r;for(o=new Array(a.length),e=0,t=a.length;t>e;e+=1)n=a[e],l=Object.keys(n),o[e]=[l[0],n[l[0]]];return o}var Type=require("../type"),_toString=Object.prototype.toString;module.exports=new Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});
},{"../type":51}],64:[function(require,module,exports){
"use strict";var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}});
},{"../type":51}],65:[function(require,module,exports){
"use strict";function resolveYamlSet(e){if(null===e)return!0;var r,t=e;for(r in t)if(_hasOwnProperty.call(t,r)&&null!==t[r])return!1;return!0}function constructYamlSet(e){return null!==e?e:{}}var Type=require("../type"),_hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=new Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});
},{"../type":51}],66:[function(require,module,exports){
"use strict";var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return null!==r?r:""}});
},{"../type":51}],67:[function(require,module,exports){
"use strict";function resolveYamlTimestamp(e){return null===e?!1:null!==YAML_DATE_REGEXP.exec(e)?!0:null!==YAML_TIMESTAMP_REGEXP.exec(e)}function constructYamlTimestamp(e){var t,r,n,l,a,m,s,T,i,E,u=0,o=null;if(t=YAML_DATE_REGEXP.exec(e),null===t&&(t=YAML_TIMESTAMP_REGEXP.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,l=+t[3],!t[4])return new Date(Date.UTC(r,n,l));if(a=+t[4],m=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(T=+t[10],i=+(t[11]||0),o=6e4*(60*T+i),"-"===t[9]&&(o=-o)),E=new Date(Date.UTC(r,n,l,a,m,s,u)),o&&E.setTime(E.getTime()-o),E}function representYamlTimestamp(e){return e.toISOString()}var Type=require("../type"),YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");module.exports=new Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});
},{"../type":51}],68:[function(require,module,exports){
function parse(e){if(e=""+e,!(e.length>1e4)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return r*y;case"days":case"day":case"d":return r*d;case"hours":case"hour":case"hrs":case"hr":case"h":return r*h;case"minutes":case"minute":case"mins":case"min":case"m":return r*m;case"seconds":case"second":case"secs":case"sec":case"s":return r*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r}}}}function short(e){return e>=d?Math.round(e/d)+"d":e>=h?Math.round(e/h)+"h":e>=m?Math.round(e/m)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function long(e){return plural(e,d,"day")||plural(e,h,"hour")||plural(e,m,"minute")||plural(e,s,"second")||e+" ms"}function plural(s,e,a){return e>s?void 0:1.5*e>s?Math.floor(s/e)+" "+a:Math.ceil(s/e)+" "+a+"s"}var s=1e3,m=60*s,h=60*m,d=24*h,y=365.25*d;module.exports=function(s,e){return e=e||{},"string"==typeof s?parse(s):e["long"]?long(s):short(s)};
},{}],69:[function(require,module,exports){
/**!
* Ono v2.2.1
*
* @link https://github.com/BigstickCarpet/ono
* @license MIT
*/
"use strict";function create(e){return function(r,t,o,n){var c,a=module.exports.formatter;"string"==typeof r?(c=a.apply(null,arguments),r=t=void 0):c="string"==typeof t?a.apply(null,slice.call(arguments,1)):a.apply(null,slice.call(arguments,2)),r instanceof Error||(t=r,r=void 0),r&&(c+=(c?" \n":"")+r.message);var i=new e(c);return extendError(i,r),extendToJSON(i),extend(i,t),i}}function extendError(e,r){r&&(extendStack(e,r),extend(e,r,!0))}function extendToJSON(e){e.toJSON=errorToJSON,e.inspect=errorToString}function extend(e,r,t){if(r&&"object"==typeof r)for(var o=Object.keys(r),n=0;n<o.length;n++){var c=o[n];if(!(t&&vendorSpecificErrorProperties.indexOf(c)>=0))try{e[c]=r[c]}catch(a){}}}function errorToJSON(){var e={},r=Object.keys(this);r=r.concat(vendorSpecificErrorProperties);for(var t=0;t<r.length;t++){var o=r[t],n=this[o],c=typeof n;"undefined"!==c&&"function"!==c&&(e[o]=n)}return e}function errorToString(){return JSON.stringify(this,null,2).replace(/\\n/g,"\n")}function extendStack(e,r){if(hasLazyStack(r))extendStackProperty(e,r);else{var t=r.stack;t&&(e.stack+=" \n\n"+r.stack)}}function hasLazyStack(e){if(!supportsLazyStack)return!1;var r=Object.getOwnPropertyDescriptor(e,"stack");return r?"function"==typeof r.get:!1}function extendStackProperty(e,r){var t=Object.getOwnPropertyDescriptor(r,"stack");if(t){var o=Object.getOwnPropertyDescriptor(e,"stack");Object.defineProperty(e,"stack",{get:function(){return o.get.apply(e)+" \n\n"+r.stack},enumerable:!1,configurable:!0})}}var util=require("util"),slice=Array.prototype.slice,vendorSpecificErrorProperties=["name","message","description","number","fileName","lineNumber","columnNumber","sourceURL","line","column","stack"];module.exports=create(Error),module.exports.error=create(Error),module.exports.eval=create(EvalError),module.exports.range=create(RangeError),module.exports.reference=create(ReferenceError),module.exports.syntax=create(SyntaxError),module.exports.type=create(TypeError),module.exports.uri=create(URIError),module.exports.formatter=util.format;var supportsLazyStack=function(){return!(!Object.getOwnPropertyDescriptor||!Object.defineProperty||"undefined"!=typeof navigator&&/Android/.test(navigator.userAgent))}();
},{"util":97}],70:[function(require,module,exports){
(function (process){
"use strict";function nextTick(e){for(var s=new Array(arguments.length-1),n=0;n<s.length;)s[n++]=arguments[n];process.nextTick(function(){e.apply(null,s)})}!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?module.exports=nextTick:module.exports=process.nextTick;
}).call(this,require('_process'))
},{"_process":71}],71:[function(require,module,exports){
function cleanUpNextTick(){draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue()}function drainQueue(){if(!draining){var e=setTimeout(cleanUpNextTick);draining=!0;for(var n=queue.length;n;){for(currentQueue=queue,queue=[];++queueIndex<n;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,n=queue.length}currentQueue=null,draining=!1,clearTimeout(e)}}function Item(e,n){this.fun=e,this.array=n}function noop(){}var process=module.exports={},queue=[],draining=!1,currentQueue,queueIndex=-1;process.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];queue.push(new Item(e,n)),1!==queue.length||draining||setTimeout(drainQueue,0)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
},{}],72:[function(require,module,exports){
(function (global){
/*! https://mths.be/punycode v1.4.1 by @mathias */
!function(e){function o(e){throw new RangeError(T[e])}function n(e,o){for(var n=e.length,r=[];n--;)r[n]=o(e[n]);return r}function r(e,o){var r=e.split("@"),t="";r.length>1&&(t=r[0]+"@",e=r[1]),e=e.replace(S,".");var u=e.split("."),i=n(u,o).join(".");return t+i}function t(e){for(var o,n,r=[],t=0,u=e.length;u>t;)o=e.charCodeAt(t++),o>=55296&&56319>=o&&u>t?(n=e.charCodeAt(t++),56320==(64512&n)?r.push(((1023&o)<<10)+(1023&n)+65536):(r.push(o),t--)):r.push(o);return r}function u(e){return n(e,function(e){var o="";return e>65535&&(e-=65536,o+=P(e>>>10&1023|55296),e=56320|1023&e),o+=P(e)}).join("")}function i(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:b}function f(e,o){return e+22+75*(26>e)-((0!=o)<<5)}function c(e,o,n){var r=0;for(e=n?M(e/j):e>>1,e+=M(e/o);e>L*C>>1;r+=b)e=M(e/L);return M(r+(L+1)*e/(e+m))}function l(e){var n,r,t,f,l,s,d,a,p,h,v=[],g=e.length,w=0,m=I,j=A;for(r=e.lastIndexOf(E),0>r&&(r=0),t=0;r>t;++t)e.charCodeAt(t)>=128&&o("not-basic"),v.push(e.charCodeAt(t));for(f=r>0?r+1:0;g>f;){for(l=w,s=1,d=b;f>=g&&o("invalid-input"),a=i(e.charCodeAt(f++)),(a>=b||a>M((x-w)/s))&&o("overflow"),w+=a*s,p=j>=d?y:d>=j+C?C:d-j,!(p>a);d+=b)h=b-p,s>M(x/h)&&o("overflow"),s*=h;n=v.length+1,j=c(w-l,n,0==l),M(w/n)>x-m&&o("overflow"),m+=M(w/n),w%=n,v.splice(w++,0,m)}return u(v)}function s(e){var n,r,u,i,l,s,d,a,p,h,v,g,w,m,j,F=[];for(e=t(e),g=e.length,n=I,r=0,l=A,s=0;g>s;++s)v=e[s],128>v&&F.push(P(v));for(u=i=F.length,i&&F.push(E);g>u;){for(d=x,s=0;g>s;++s)v=e[s],v>=n&&d>v&&(d=v);for(w=u+1,d-n>M((x-r)/w)&&o("overflow"),r+=(d-n)*w,n=d,s=0;g>s;++s)if(v=e[s],n>v&&++r>x&&o("overflow"),v==n){for(a=r,p=b;h=l>=p?y:p>=l+C?C:p-l,!(h>a);p+=b)j=a-h,m=b-h,F.push(P(f(h+j%m,0))),a=M(j/m);F.push(P(f(a,0))),l=c(r,w,u==i),r=0,++u}++r,++n}return F.join("")}function d(e){return r(e,function(e){return F.test(e)?l(e.slice(4).toLowerCase()):e})}function a(e){return r(e,function(e){return O.test(e)?"xn--"+s(e):e})}var p="object"==typeof exports&&exports&&!exports.nodeType&&exports,h="object"==typeof module&&module&&!module.nodeType&&module,v="object"==typeof global&&global;v.global!==v&&v.window!==v&&v.self!==v||(e=v);var g,w,x=2147483647,b=36,y=1,C=26,m=38,j=700,A=72,I=128,E="-",F=/^xn--/,O=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-y,M=Math.floor,P=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:t,encode:u},decode:l,encode:s,toASCII:a,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return g});else if(p&&h)if(module.exports==p)h.exports=g;else for(w in g)g.hasOwnProperty(w)&&(p[w]=g[w]);else e.punycode=g}(this);
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],73:[function(require,module,exports){
"use strict";function hasOwnProperty(r,e){return Object.prototype.hasOwnProperty.call(r,e)}module.exports=function(r,e,t,n){e=e||"&",t=t||"=";var o={};if("string"!=typeof r||0===r.length)return o;var a=/\+/g;r=r.split(e);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var p=r.length;s>0&&p>s&&(p=s);for(var y=0;p>y;++y){var u,c,i,l,f=r[y].replace(a,"%20"),v=f.indexOf(t);v>=0?(u=f.substr(0,v),c=f.substr(v+1)):(u=f,c=""),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};
},{}],74:[function(require,module,exports){
"use strict";function map(r,e){if(r.map)return r.map(e);for(var t=[],n=0;n<r.length;n++)t.push(e(r[n],n));return t}var stringifyPrimitive=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}};module.exports=function(r,e,t,n){return e=e||"&",t=t||"=",null===r&&(r=void 0),"object"==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?map(r[n],function(r){return i+encodeURIComponent(stringifyPrimitive(r))}).join(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).join(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):""};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)},objectKeys=Object.keys||function(r){var e=[];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.push(t);return e};
},{}],75:[function(require,module,exports){
"use strict";exports.decode=exports.parse=require("./decode"),exports.encode=exports.stringify=require("./encode");
},{"./decode":73,"./encode":74}],76:[function(require,module,exports){
module.exports=require("./lib/_stream_duplex.js");
},{"./lib/_stream_duplex.js":77}],77:[function(require,module,exports){
"use strict";function Duplex(e){return this instanceof Duplex?(Readable.call(this,e),Writable.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(e)}function onend(){this.allowHalfOpen||this._writableState.ended||processNextTick(onEndNT,this)}function onEndNT(e){e.end()}function forEach(e,t){for(var r=0,i=e.length;i>r;r++)t(e[r],r)}var objectKeys=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=Duplex;var processNextTick=require("process-nextick-args"),util=require("core-util-is");util.inherits=require("inherits");var Readable=require("./_stream_readable"),Writable=require("./_stream_writable");util.inherits(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;v<keys.length;v++){var method=keys[v];Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])}
},{"./_stream_readable":79,"./_stream_writable":81,"core-util-is":28,"inherits":35,"process-nextick-args":70}],78:[function(require,module,exports){
"use strict";function PassThrough(r){return this instanceof PassThrough?void Transform.call(this,r):new PassThrough(r)}module.exports=PassThrough;var Transform=require("./_stream_transform"),util=require("core-util-is");util.inherits=require("inherits"),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(r,s,i){i(null,r)};
},{"./_stream_transform":80,"core-util-is":28,"inherits":35}],79:[function(require,module,exports){
(function (process){
"use strict";function ReadableState(e,t){Duplex=Duplex||require("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof Duplex&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(StringDecoder||(StringDecoder=require("string_decoder/").StringDecoder),this.decoder=new StringDecoder(e.encoding),this.encoding=e.encoding)}function Readable(e){return Duplex=Duplex||require("./_stream_duplex"),this instanceof Readable?(this._readableState=new ReadableState(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),void Stream.call(this)):new Readable(e)}function readableAddChunk(e,t,r,n,a){var i=chunkInvalid(t,r);if(i)e.emit("error",i);else if(null===r)t.reading=!1,onEofChunk(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var d=new Error("stream.push() after EOF");e.emit("error",d)}else if(t.endEmitted&&a){var d=new Error("stream.unshift() after end event");e.emit("error",d)}else{var o;!t.decoder||a||n||(r=t.decoder.write(r),o=!t.objectMode&&0===r.length),a||(t.reading=!1),o||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&emitReadable(e))),maybeReadMore(e,t)}else a||(t.reading=!1);return needMoreData(t)}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function computeNewHighWaterMark(e){return e>=MAX_HWM?e=MAX_HWM:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function chunkInvalid(e,t){var r=null;return Buffer.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function onEofChunk(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,emitReadable(e)}}function emitReadable(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(debug("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?processNextTick(emitReadable_,e):emitReadable_(e))}function emitReadable_(e){debug("emit readable"),e.emit("readable"),flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,processNextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(debug("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function pipeOnDrain(e){return function(){var t=e._readableState;debug("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&EElistenerCount(e,"data")&&(t.flowing=!0,flow(e))}}function nReadingNextTick(e){debug("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,processNextTick(resume_,e,t))}function resume_(e,t){t.reading||(debug("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;if(debug("flow",t.flowing),t.flowing)do var r=e.read();while(null!==r&&t.flowing)}function fromList(e,t){var r,n=t.buffer,a=t.length,i=!!t.decoder,d=!!t.objectMode;if(0===n.length)return null;if(0===a)r=null;else if(d)r=n.shift();else if(!e||e>=a)r=i?n.join(""):1===n.length?n[0]:Buffer.concat(n,a),n.length=0;else if(e<n[0].length){var o=n[0];r=o.slice(0,e),
}).call(this,require('_process'))
},{"./_stream_duplex":77,"_process":71,"buffer":25,"core-util-is":28,"events":32,"inherits":35,"isarray":37,"process-nextick-args":70,"stream":86,"string_decoder/":91,"util":23}],80:[function(require,module,exports){
"use strict";function TransformState(r){this.afterTransform=function(t,n){return afterTransform(r,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function afterTransform(r,t,n){var e=r._transformState;e.transforming=!1;var i=e.writecb;if(!i)return r.emit("error",new Error("no writecb in Transform class"));e.writechunk=null,e.writecb=null,null!==n&&void 0!==n&&r.push(n),i(t);var a=r._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&r._read(a.highWaterMark)}function Transform(r){if(!(this instanceof Transform))return new Transform(r);Duplex.call(this,r),this._transformState=new TransformState(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,r&&("function"==typeof r.transform&&(this._transform=r.transform),"function"==typeof r.flush&&(this._flush=r.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(r){done(t,r)}):done(t)})}function done(r,t){if(t)return r.emit("error",t);var n=r._writableState,e=r._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(e.transforming)throw new Error("calling transform done when still transforming");return r.push(null)}module.exports=Transform;var Duplex=require("./_stream_duplex"),util=require("core-util-is");util.inherits=require("inherits"),util.inherits(Transform,Duplex),Transform.prototype.push=function(r,t){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,r,t)},Transform.prototype._transform=function(r,t,n){throw new Error("not implemented")},Transform.prototype._write=function(r,t,n){var e=this._transformState;if(e.writecb=n,e.writechunk=r,e.writeencoding=t,!e.transforming){var i=this._readableState;(e.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Transform.prototype._read=function(r){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};
},{"./_stream_duplex":77,"core-util-is":28,"inherits":35}],81:[function(require,module,exports){
(function (process){
"use strict";function nop(){}function WriteReq(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function WritableState(e,t){Duplex=Duplex||require("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof Duplex&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){onwrite(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this),this.corkedRequestsFree.next=new CorkedRequest(this)}function Writable(e){return Duplex=Duplex||require("./_stream_duplex"),this instanceof Writable||this instanceof Duplex?(this._writableState=new WritableState(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),void Stream.call(this)):new Writable(e)}function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r),processNextTick(t,r)}function validChunk(e,t,r,i){var n=!0;if(!Buffer.isBuffer(r)&&"string"!=typeof r&&null!==r&&void 0!==r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),processNextTick(i,s),n=!1}return n}function decodeChunk(e,t,r){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new Buffer(t,r)),t}function writeOrBuffer(e,t,r,i,n){r=decodeChunk(t,r,i),Buffer.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new WriteReq(r,i,n),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,s,r,i,n);return f}function doWrite(e,t,r,i,n,s,f){t.writelen=i,t.writecb=f,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,i,n){--t.pendingcb,r?processNextTick(n,i):n(i),e._writableState.errorEmitted=!0,e.emit("error",i)}function onwriteStateUpdate(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function onwrite(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(onwriteStateUpdate(r),t)onwriteError(e,r,i,t,n);else{var s=needFinish(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||clearBuffer(e,r),i?asyncWrite(afterWrite,e,r,s,n):afterWrite(e,r,s,n)}}function afterWrite(e,t,r,i){r||onwriteDrain(e,t),t.pendingcb--,i(),finishMaybe(e,t)}function onwriteDrain(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function clearBuffer(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var f=0;r;)n[f]=r,r=r.next,f+=1;doWrite(e,t,!0,t.length,n,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,t.corkedRequestsFree=s.next,s.next=null}else{for(;r;){var u=r.chunk,o=r.encoding,a=r.callback,c=t.objectMode?1:u.length;if(doWrite(e,t,!1,c,u,o,a),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function prefinish(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function finishMaybe(e,t){var r=needFinish(t);return r&&(0===t.pendingcb?(prefinish(e,t),t.finished=!0,e.emit("finish")):prefinish(e,t)),r}function endWritable(e,t,r){t.ending=!0,finishMaybe(e,t),r&&(t.finished?processNextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var i=t.entry;fo
}).call(this,require('_process'))
},{"./_stream_duplex":77,"_process":71,"buffer":25,"core-util-is":28,"events":32,"inherits":35,"process-nextick-args":70,"stream":86,"util-deprecate":95}],82:[function(require,module,exports){
module.exports=require("./lib/_stream_passthrough.js");
},{"./lib/_stream_passthrough.js":78}],83:[function(require,module,exports){
var Stream=function(){try{return require("stream")}catch(r){}}();exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js");
},{"./lib/_stream_duplex.js":77,"./lib/_stream_passthrough.js":78,"./lib/_stream_readable.js":79,"./lib/_stream_transform.js":80,"./lib/_stream_writable.js":81,"stream":86}],84:[function(require,module,exports){
module.exports=require("./lib/_stream_transform.js");
},{"./lib/_stream_transform.js":80}],85:[function(require,module,exports){
module.exports=require("./lib/_stream_writable.js");
},{"./lib/_stream_writable.js":81}],86:[function(require,module,exports){
function Stream(){EE.call(this)}module.exports=Stream;var EE=require("events").EventEmitter,inherits=require("inherits");inherits(Stream,EE),Stream.Readable=require("readable-stream/readable.js"),Stream.Writable=require("readable-stream/writable.js"),Stream.Duplex=require("readable-stream/duplex.js"),Stream.Transform=require("readable-stream/transform.js"),Stream.PassThrough=require("readable-stream/passthrough.js"),Stream.Stream=Stream,Stream.prototype.pipe=function(e,r){function t(r){e.writable&&!1===e.write(r)&&m.pause&&m.pause()}function n(){m.readable&&m.resume&&m.resume()}function a(){u||(u=!0,e.end())}function o(){u||(u=!0,"function"==typeof e.destroy&&e.destroy())}function i(e){if(s(),0===EE.listenerCount(this,"error"))throw e}function s(){m.removeListener("data",t),e.removeListener("drain",n),m.removeListener("end",a),m.removeListener("close",o),m.removeListener("error",i),e.removeListener("error",i),m.removeListener("end",s),m.removeListener("close",s),e.removeListener("close",s)}var m=this;m.on("data",t),e.on("drain",n),e._isStdio||r&&r.end===!1||(m.on("end",a),m.on("close",o));var u=!1;return m.on("error",i),e.on("error",i),m.on("end",s),m.on("close",s),e.on("close",s),e.emit("pipe",m),e};
},{"events":32,"inherits":35,"readable-stream/duplex.js":76,"readable-stream/passthrough.js":82,"readable-stream/readable.js":83,"readable-stream/transform.js":84,"readable-stream/writable.js":85}],87:[function(require,module,exports){
(function (global){
var ClientRequest=require("./lib/request"),extend=require("xtend"),statusCodes=require("builtin-status-codes"),url=require("url"),http=exports;http.request=function(t,e){t="string"==typeof t?url.parse(t):extend(t);var r=-1===global.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||r,o=t.hostname||t.host,n=t.port,u=t.path||"/";o&&-1!==o.indexOf(":")&&(o="["+o+"]"),t.url=(o?s+"//"+o:"")+(n?":"+n:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var C=new ClientRequest(t);return e&&C.on("response",e),C},http.get=function(t,e){var r=http.request(t,e);return r.end(),r},http.Agent=function(){},http.Agent.defaultMaxSockets=4,http.STATUS_CODES=statusCodes,http.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"];
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./lib/request":89,"builtin-status-codes":26,"url":93,"xtend":98}],88:[function(require,module,exports){
(function (global){
function checkTypeSupport(e){try{return xhr.responseType=e,xhr.responseType===e}catch(r){}return!1}function isFunction(e){return"function"==typeof e}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableByteStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],89:[function(require,module,exports){
(function (process,global,Buffer){
function decideMode(e){return capability.fetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&e?"arraybuffer":capability.vbArray&&e?"text:vbarray":"text"}function statusValid(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}var capability=require("./capability"),inherits=require("inherits"),response=require("./response"),stream=require("stream"),toArrayBuffer=require("to-arraybuffer"),IncomingMessage=response.IncomingMessage,rStates=response.readyStates,ClientRequest=module.exports=function(e){var t=this;stream.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new Buffer(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(r){t.setHeader(r,e.headers[r])});var r;if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!capability.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}t._mode=decideMode(r),t.on("finish",function(){t._onFinish()})};inherits(ClientRequest,stream.Writable),ClientRequest.prototype.setHeader=function(e,t){var r=this,o=e.toLowerCase();-1===unsafeHeaders.indexOf(o)&&(r._headers[o]={name:e,value:t})},ClientRequest.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},ClientRequest.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},ClientRequest.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,r=e._opts,o=e._headers;if("POST"!==r.method&&"PUT"!==r.method&&"PATCH"!==r.method||(t=capability.blobConstructor?new global.Blob(e._body.map(function(e){return toArrayBuffer(e)}),{type:(o["content-type"]||{}).value||""}):Buffer.concat(e._body).toString()),"fetch"===e._mode){var n=Object.keys(o).map(function(e){return[o[e].name,o[e].value]});global.fetch(e._opts.url,{method:e._opts.method,headers:n,body:t,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var s=e._xhr=new global.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(i){return void process.nextTick(function(){e.emit("error",i)})}"responseType"in s&&(s.responseType=e._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(o).forEach(function(e){s.setRequestHeader(o[e].name,o[e].value)}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case rStates.LOADING:case rStates.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{s.send(t)}catch(i){return void process.nextTick(function(){e.emit("error",i)})}}}},ClientRequest.prototype._onXHRProgress=function(){var e=this;statusValid(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},ClientRequest.prototype._connect=function(){var e=this;e._destroyed||(e._response=new IncomingMessage(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},ClientRequest.prototype._write=function(e,t,r){var o=this;o._body.push(e),r()},ClientRequest.prototype.abort=ClientRequest.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},ClientRequest.prototype.end=function(e,t,r){var o=this;"function"==typeof e&&(r=e,e=void 0),stream.Writable.prototype.end.call(o,e,t,r)},ClientRequest.prototype.flushHeaders=function(){},ClientRequest.prototype.setTimeout=function(){},ClientRequest.prototype.setNoDelay=function(){},ClientRequest.prototype.setSocketKeepAlive=function(){};var unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","t
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
},{"./capability":88,"./response":90,"_process":71,"buffer":25,"inherits":35,"stream":86,"to-arraybuffer":92}],90:[function(require,module,exports){
(function (process,global,Buffer){
var capability=require("./capability"),inherits=require("inherits"),stream=require("stream"),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(e,r,s){function a(){u.read().then(function(e){if(!t._destroyed){if(e.done)return void t.push(null);t.push(new Buffer(e.value)),a()}})}var t=this;if(stream.Readable.call(t),t._mode=s,t.headers={},t.rawHeaders=[],t.trailers={},t.rawTrailers=[],t.on("end",function(){process.nextTick(function(){t.emit("close")})}),"fetch"===s){t._fetchResponse=r,t.statusCode=r.status,t.statusMessage=r.statusText;for(var n,o,i=r.headers[Symbol.iterator]();n=(o=i.next()).value,!o.done;)t.headers[n[0].toLowerCase()]=n[1],t.rawHeaders.push(n[0],n[1]);var u=r.body.getReader();a()}else{t._xhr=e,t._pos=0,t.statusCode=e.status,t.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(e){var r=e.match(/^([^:]+):\s*(.*)/);if(r){var s=r[1].toLowerCase();"set-cookie"===s?(void 0===t.headers[s]&&(t.headers[s]=[]),t.headers[s].push(r[2])):void 0!==t.headers[s]?t.headers[s]+=", "+r[2]:t.headers[s]=r[2],t.rawHeaders.push(r[1],r[2])}}),t._charset="x-user-defined",!capability.overrideMimeType){var d=t.rawHeaders["mime-type"];if(d){var f=d.match(/;\s*charset=([^;])(;|$)/);f&&(t._charset=f[1].toLowerCase())}t._charset||(t._charset="utf-8")}}};inherits(IncomingMessage,stream.Readable),IncomingMessage.prototype._read=function(){},IncomingMessage.prototype._onXHRProgress=function(){var e=this,r=e._xhr,s=null;switch(e._mode){case"text:vbarray":if(r.readyState!==rStates.DONE)break;try{s=new global.VBArray(r.responseBody).toArray()}catch(a){}if(null!==s){e.push(new Buffer(s));break}case"text":try{s=r.responseText}catch(a){e._mode="text:vbarray";break}if(s.length>e._pos){var t=s.substr(e._pos);if("x-user-defined"===e._charset){for(var n=new Buffer(t.length),o=0;o<t.length;o++)n[o]=255&t.charCodeAt(o);e.push(n)}else e.push(t,e._charset);e._pos=s.length}break;case"arraybuffer":if(r.readyState!==rStates.DONE)break;s=r.response,e.push(new Buffer(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=r.response,r.readyState!==rStates.LOADING||!s)break;e.push(new Buffer(new Uint8Array(s)));break;case"ms-stream":if(s=r.response,r.readyState!==rStates.LOADING)break;var i=new global.MSStreamReader;i.onprogress=function(){i.result.byteLength>e._pos&&(e.push(new Buffer(new Uint8Array(i.result.slice(e._pos)))),e._pos=i.result.byteLength)},i.onload=function(){e.push(null)},i.readAsArrayBuffer(s)}e._xhr.readyState===rStates.DONE&&"ms-stream"!==e._mode&&e.push(null)};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
},{"./capability":88,"_process":71,"buffer":25,"inherits":35,"stream":86}],91:[function(require,module,exports){
function assertEncoding(e){if(e&&!isBufferEncoding(e))throw new Error("Unknown encoding: "+e)}function passThroughWrite(e){return e.toString(this.encoding)}function utf16DetectIncompleteChar(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var Buffer=require("buffer").Buffer,isBufferEncoding=Buffer.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";e=e.slice(r,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var h=t.charCodeAt(t.length-1);if(!(h>=55296&&56319>=h)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,h=t.charCodeAt(i);if(h>=55296&&56319>=h){var c=this.surrogateSize;return this.charLength+=c,this.charReceived+=c,this.charBuffer.copy(this.charBuffer,c,0,c),e.copy(this.charBuffer,0,0,c),t.substring(0,i)}return t},StringDecoder.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},StringDecoder.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,h=this.charBuffer,i=this.encoding;t+=h.slice(0,r).toString(i)}return t};
},{"buffer":25}],92:[function(require,module,exports){
var Buffer=require("buffer").Buffer;module.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(Buffer.isBuffer(e)){for(var f=new Uint8Array(e.length),r=e.length,t=0;r>t;t++)f[t]=e[t];return f.buffer}throw new Error("Argument must be a Buffer")};
},{"buffer":25}],93:[function(require,module,exports){
"use strict";function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function urlParse(t,s,e){if(t&&util.isObject(t)&&t instanceof Url)return t;var h=new Url;return h.parse(t,s,e),h}function urlFormat(t){return util.isString(t)&&(t=urlParse(t)),t instanceof Url?t.format():Url.prototype.format.call(t)}function urlResolve(t,s){return urlParse(t,!1,!0).resolve(s)}function urlResolveObject(t,s){return t?urlParse(t,!1,!0).resolveObject(s):s}var punycode=require("punycode"),util=require("./util");exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n"," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=require("querystring");Url.prototype.parse=function(t,s,e){if(!util.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var h=t.indexOf("?"),r=-1!==h&&h<t.indexOf("#")?"?":"#",a=t.split(r),o=/\\/g;a[0]=a[0].replace(o,"/"),t=a.join(r);var n=t;if(n=n.trim(),!e&&1===t.split("#").length){var i=simplePathPattern.exec(n);if(i)return this.path=n,this.href=n,this.pathname=i[1],i[2]?(this.search=i[2],s?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):s&&(this.search="",this.query={}),this}var l=protocolPattern.exec(n);if(l){l=l[0];var u=l.toLowerCase();this.protocol=u,n=n.substr(l.length)}if(e||l||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var p="//"===n.substr(0,2);!p||l&&hostlessProtocol[l]||(n=n.substr(2),this.slashes=!0)}if(!hostlessProtocol[l]&&(p||l&&!slashedProtocol[l])){for(var c=-1,f=0;f<hostEndingChars.length;f++){var m=n.indexOf(hostEndingChars[f]);-1!==m&&(-1===c||c>m)&&(c=m)}var v,g;g=-1===c?n.lastIndexOf("@"):n.lastIndexOf("@",c),-1!==g&&(v=n.slice(0,g),n=n.slice(g+1),this.auth=decodeURIComponent(v)),c=-1;for(var f=0;f<nonHostChars.length;f++){var m=n.indexOf(nonHostChars[f]);-1!==m&&(-1===c||c>m)&&(c=m)}-1===c&&(c=n.length),this.host=n.slice(0,c),n=n.slice(c),this.parseHost(),this.hostname=this.hostname||"";var y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!y)for(var P=this.hostname.split(/\./),f=0,d=P.length;d>f;f++){var q=P[f];if(q&&!q.match(hostnamePartPattern)){for(var b="",O=0,j=q.length;j>O;O++)b+=q.charCodeAt(O)>127?"x":q[O];if(!b.match(hostnamePartPattern)){var x=P.slice(0,f),U=P.slice(f+1),C=q.match(hostnamePartStart);C&&(x.push(C[1]),U.unshift(C[2])),U.length&&(n="/"+U.join(".")+n),this.hostname=x.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=punycode.toASCII(this.hostname));var A=this.port?":"+this.port:"",w=this.hostname||"";this.host=w+A,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==n[0]&&(n="/"+n))}if(!unsafeProtocol[u])for(var f=0,d=autoEscape.length;d>f;f++){var E=autoEscape[f];if(-1!==n.indexOf(E)){var I=encodeURIComponent(E);I===E&&(I=escape(E)),n=n.split(E).join(I)}}var R=n.indexOf("#");-1!==R&&(this.hash=n.substr(R),n=n.slice(0,R));var S=n.indexOf("?");if(-1!==S?(this.search=n.substr(S),this.query=n.substr(S+1),s&&(this.query=querystring.parse(this.query)),n=n.slice(0,S)):s&&(this.search="",this.query={}),n&&(this.pathname=n),slashedProtocol[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var A=this.pathname||"",k=this.searc
},{"./util":94,"punycode":72,"querystring":75}],94:[function(require,module,exports){
"use strict";module.exports={isString:function(n){return"string"==typeof n},isObject:function(n){return"object"==typeof n&&null!==n},isNull:function(n){return null===n},isNullOrUndefined:function(n){return null==n}};
},{}],95:[function(require,module,exports){
(function (global){
function deprecate(r,e){function o(){if(!t){if(config("throwDeprecation"))throw new Error(e);config("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}if(config("noDeprecation"))return r;var t=!1;return o}function config(r){try{if(!global.localStorage)return!1}catch(e){return!1}var o=global.localStorage[r];return null==o?!1:"true"===String(o).toLowerCase()}module.exports=deprecate;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],96:[function(require,module,exports){
module.exports=function(o){return o&&"object"==typeof o&&"function"==typeof o.copy&&"function"==typeof o.fill&&"function"==typeof o.readUInt8};
},{}],97:[function(require,module,exports){
(function (process,global){
function inspect(e,r){var t={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),isBoolean(r)?t.showHidden=r:r&&exports._extend(t,r),isUndefined(t.showHidden)&&(t.showHidden=!1),isUndefined(t.depth)&&(t.depth=2),isUndefined(t.colors)&&(t.colors=!1),isUndefined(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=stylizeWithColor),formatValue(t,e,t.depth)}function stylizeWithColor(e,r){var t=inspect.styles[r];return t?"["+inspect.colors[t][0]+"m"+e+"["+inspect.colors[t][1]+"m":e}function stylizeNoColor(e,r){return e}function arrayToHash(e){var r={};return e.forEach(function(e,t){r[e]=!0}),r}function formatValue(e,r,t){if(e.customInspect&&r&&isFunction(r.inspect)&&r.inspect!==exports.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(t,e);return isString(n)||(n=formatValue(e,n,t)),n}var i=formatPrimitive(e,r);if(i)return i;var o=Object.keys(r),s=arrayToHash(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),isError(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return formatError(r);if(0===o.length){if(isFunction(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(isRegExp(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(isDate(r))return e.stylize(Date.prototype.toString.call(r),"date");if(isError(r))return formatError(r)}var c="",a=!1,l=["{","}"];if(isArray(r)&&(a=!0,l=["[","]"]),isFunction(r)){var p=r.name?": "+r.name:"";c=" [Function"+p+"]"}if(isRegExp(r)&&(c=" "+RegExp.prototype.toString.call(r)),isDate(r)&&(c=" "+Date.prototype.toUTCString.call(r)),isError(r)&&(c=" "+formatError(r)),0===o.length&&(!a||0==r.length))return l[0]+c+l[1];if(0>t)return isRegExp(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var f;return f=a?formatArray(e,r,t,s,o):o.map(function(n){return formatProperty(e,r,t,s,n,a)}),e.seen.pop(),reduceToSingleString(f,c,l)}function formatPrimitive(e,r){if(isUndefined(r))return e.stylize("undefined","undefined");if(isString(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return isNumber(r)?e.stylize(""+r,"number"):isBoolean(r)?e.stylize(""+r,"boolean"):isNull(r)?e.stylize("null","null"):void 0}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,r,t,n,i){for(var o=[],s=0,u=r.length;u>s;++s)hasOwnProperty(r,String(s))?o.push(formatProperty(e,r,t,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(formatProperty(e,r,t,n,i,!0))}),o}function formatProperty(e,r,t,n,i,o){var s,u,c;if(c=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),hasOwnProperty(n,i)||(s="["+i+"]"),u||(e.seen.indexOf(c.value)<0?(u=isNull(t)?formatValue(e,c.value,null):formatValue(e,c.value,t-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),isUndefined(s)){if(o&&i.match(/^\d+$/))return u;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function reduceToSingleString(e,r,t){var n=0,i=e.reduce(function(e,r){return n++,r.indexOf("\n")>=0&&n++,e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(""===r?"":r+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function isArray(e){return Array.isArray(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./support/isBuffer":96,"_process":71,"inherits":35}],98:[function(require,module,exports){
function extend(){for(var r={},e=0;e<arguments.length;e++){var t=arguments[e];for(var n in t)hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;
},{}]},{},[3])(3)
});
</script>
<script>
// https://github.com/isaacs/json-stringify-safe v5.0.1
function stringify(obj, replacer, spaces, cycleReplacer) {
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
}
function serializer(replacer, cycleReplacer) {
var stack = [], keys = []
if (cycleReplacer == null) cycleReplacer = function(key, value) {
if (stack[0] === value) return "[Circular ~]"
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
}
return function(key, value) {
if (stack.length > 0) {
var thisPos = stack.indexOf(this)
~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)
}
else stack.push(value)
return replacer == null ? value : replacer.call(this, key, value)
}
}
</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>
var schemaWrapper = { "components": { "schemas" : defs}};
defsParser = new $RefParser();
defsParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
</script>
<script>
$(document).ready(function () {
$('.nav-tabs-examples').find('a:first').tab('show');
$(this).scrollspy({ target: '#scrollingNav', offset: 18 });
});
</script>
</body>
</html>