This repository was archived by the owner on May 18, 2021. It is now read-only.
forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
259 lines (225 loc) · 18.3 KB
/
index.html
File metadata and controls
259 lines (225 loc) · 18.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html>
<head>
<title>StackAdapt API</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--style type="text/css"></style-->
<link rel="icon" type="image/png" href="images/favicon.png" sizes="32x32" />
<link href="css/index.css" rel="stylesheet"/>
<link href='css/standalone.css' rel='stylesheet'/>
<link href='css/api-explorer.css' rel='stylesheet' type='text/css'/>
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
<script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
<script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
<script src='lib/underscore-min.js' type='text/javascript'></script>
<script src='lib/backbone-min.js' type='text/javascript'></script>
<script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/jsoneditor.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
<script src='lib/marked.js' type='text/javascript'></script>
<script src='lib/swagger-oauth.js' type='text/javascript'></script>
<script src='lib/bootstrap.min.js' type='text/javascript'></script>
<script type="text/javascript">
jQuery.browser = jQuery.browser || {};
(function () {
jQuery.browser.msie = jQuery.browser.msie || false;
jQuery.browser.version = jQuery.browser.version || 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();
</script>
<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "https://api.stackadapt.com/service/v2/apidocs";
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function (swaggerApi, swaggerUi) {
if (typeof initOAuth == "function") {
initOAuth({
clientId: "ffe7748a-3a3f-4860-a02a-42ab08e4fde2",
realm: "realm",
appName: "Swagger"
});
}
$('pre code').each(function (i, e) {
hljs.highlightBlock(e)
});
if (swaggerUi.options.url) {
$('#input_baseUrl').val(swaggerUi.options.url);
}
if (swaggerUi.options.apiKey) {
$('#input_apiKey').val(swaggerUi.options.apiKey);
}
$("[data-toggle='tooltip']").tooltip();
addApiKeyAuthorization();
},
onFailure: function (data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
sorter: "alpha"
});
function addApiKeyAuthorization() {
var key = encodeURIComponent($('#input_apiKey')[0].value);
if (key && key.trim() != "") {
var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("X-Authorization", key, "header");
window.swaggerUi.api.clientAuthorizations.add("key", apiKeyAuth);
log("added key " + key);
}
}
$('#input_apiKey').change(addApiKeyAuthorization);
// if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
/*
var apiKey = "myApiKeyXXXX123456789";
$('#input_apiKey').val(apiKey);
*/
window.swaggerUi.load();
function log() {
if ('console' in window) {
console.log.apply(console, arguments);
}
}
});
</script>
<script type="text/javascript">
$(function () {
$(window).scroll(function () {
var sticky = $(".sticky-nav");
i(sticky);
r(sticky);
function n() {
return window.matchMedia("(min-width: 992px)").matches
}
function e() {
n() ? sticky.parents(".sticky-nav-placeholder").removeAttr("style") : sticky.parents(".sticky-nav-placeholder").css("min-height", sticky.outerHeight())
}
function i(n) {
n.hasClass("fixed") || (navOffset = n.offset().top);
e();
$(window).scrollTop() > navOffset ? $(".modal.in").length || n.addClass("fixed") : n.removeClass("fixed")
}
function r(e) {
function i() {
var i = $(window).scrollTop(), r = e.parents(".sticky-nav");
return r.hasClass("fixed") && !n() && (i = i + r.outerHeight() + 40), i
}
function r(e) {
var t = o.next("[data-endpoint]"), n = o.prev("[data-endpoint]");
return "next" === e ? t.length ? t : o.parent().next().find("[data-endpoint]").first() : "prev" === e ? n.length ? n : o.parent().prev().find("[data-endpoint]").last() : []
}
var nav = e.find("[data-navigator]");
if (nav.find("[data-endpoint][data-selected]").length) {
var o = nav.find("[data-endpoint][data-selected]"),
a = $("#" + o.attr("data-endpoint")),
s = a.offset().top,
l = (s + a.outerHeight(), r("next")),
u = r("prev");
if (l.length) {
{
var d = $("#" + l.attr("data-endpoint")), f = d.offset().top;
f + d.outerHeight()
}
i() >= f && c(l)
}
if (u.length) {
var p = $("#" + u.attr("data-endpoint")),
g = u.offset().top;
v = (g + p.outerHeight(), 100);
i() < s - v && c(u)
}
}
}
function s() {
var e = $(".sticky-nav [data-navigator]"),
n = e.find("[data-endpoint]").first();
n.attr("data-selected", "");
u.find("[data-selected-value]").html(n.text())
}
function c(e) {
{
var n = $(".sticky-nav [data-navigator]");
$("#" + e.attr("data-endpoint"))
}
n.find("[data-resource]").removeClass("active");
n.find("[data-selected]").removeAttr("data-selected");
e.closest("[data-resource]").addClass("active");
e.attr("data-selected", "");
sticky.find("[data-selected-value]").html(e.text())
}
});
});
</script>
<script type="text/javascript">
$(function () {
$("[data-toggle='tooltip']").tooltip();
});
</script>
</head>
<body class="page-docs" style="zoom: 1;">
<header class="site-header">
<nav role="navigation" class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" data-toggle="collapse" data-target="#navbar-collapse" class="navbar-toggle"><span
class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span
class="icon-bar"></span><span class="icon-bar"></span></button>
</div>
<div id="navbar-collapse" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li class="li-why"><a id="logo" href="http://stackadapt.com">
<svg width="182px" height="44px" viewBox="0 0 210 52" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 3.8.1 (29687) - http://www.bohemiancoding.com/sketch -->
<title>logo</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="twitter_profile-copy-2" transform="translate(-45.000000, -36.000000)">
<g id="logo" transform="translate(45.000000, 36.000000)">
<path d="M5.85370581,25.9452483 L5.85370581,26.8436815 C5.85370581,31.1923716 7.68422348,33.3923373 11.4901199,33.3923373 C14.960202,33.3923373 16.6952431,30.8405137 16.6952431,28.1964555 C16.6952431,24.4421661 14.8647254,22.7956079 11.7798422,21.8425171 L8.02003788,20.4931592 C3.01245265,18.4947432 0.839535985,15.7960274 0.839535985,10.6957962 C0.839535985,4.19154966 5.08330808,0.594400685 11.5395044,0.594400685 C20.3562784,0.594400685 21.2715372,6.29244863 21.2715372,9.99549658 L21.2715372,10.794863 L15.7799842,10.794863 L15.7799842,10.0433219 C15.7799842,6.79461473 14.3807576,4.89526541 10.96006,4.89526541 C8.59948232,4.89526541 6.33438131,6.24462329 6.33438131,10.0433219 C6.33438131,13.0973116 7.8290846,14.6448031 11.4901199,16.0932277 L15.2005398,17.4938271 C20.0698485,19.2906935 22.1867961,22.0440668 22.1867961,26.9427483 C22.1867961,34.5435616 17.755363,37.6932021 10.8151989,37.6932021 C2.2848548,37.6932021 0.35886048,31.7970205 0.35886048,26.7958562 L0.35886048,25.9452483 L5.85370581,25.9452483" id="Fill-1" fill="#1A1918"></path>
<path d="M23.9843908,10.0945634 L27.5499495,10.0945634 L27.5499495,2.44592466 L32.7550726,2.44592466 L32.7550726,10.0945634 L36.9955524,10.0945634 L36.9955524,14.0948116 L32.7550726,14.0948116 L32.7550726,30.140214 C32.7550726,32.241113 33.334517,32.9926541 35.1156503,32.9926541 C35.886048,32.9926541 36.5148769,32.9448288 36.9955524,32.845762 L36.9955524,36.8425942 C35.886048,37.1432106 34.4407292,37.2969349 32.8011648,37.2969349 C29.2849905,37.2969349 27.5499495,36.2926027 27.5499495,30.7961045 L27.5499495,14.0948116 L23.9843908,14.0948116 L23.9843908,10.0945634" id="Fill-2" fill="#1A1918"></path>
<path d="M56.713125,31.3939212 C56.713125,32.3914212 57.2892771,33.2932705 58.0596749,33.2932705 C58.3954893,33.2932705 58.734596,33.2420291 58.9288415,33.1429623 L58.9288415,36.6444606 C58.3000126,36.9450771 57.3847538,37.2969349 56.3740183,37.2969349 C54.0595328,37.2969349 52.1335385,36.3438442 51.9886774,33.7441952 L51.8932008,33.7441952 C50.4939741,36.3950856 48.4725032,37.6932021 45.4337121,37.6932021 C41.2920013,37.6932021 38.6877936,35.2916866 38.6877936,30.140214 C38.6877936,24.1449658 41.1965246,22.8946747 44.7126989,21.695625 L48.7622254,20.5444007 C50.6388352,19.9909932 51.7944318,19.4410017 51.7944318,17.0941438 C51.7944318,14.6448031 50.9746496,13.0973116 48.2288731,13.0973116 C44.758791,13.0973116 44.2781155,15.6457192 44.2781155,18.2487842 L39.3627146,18.2487842 C39.3627146,12.5439041 41.631108,9.3942637 48.4725032,9.3942637 C53.0487973,9.3942637 56.713125,11.2423716 56.713125,15.9975771 L56.713125,31.3939212 L56.713125,31.3939212 Z M51.7944318,22.7956079 C50.4478819,23.8921747 47.553952,24.544649 46.0131566,25.292774 C44.5184533,26.040899 43.8929167,27.6430479 43.8929167,29.6448801 C43.8929167,31.8926712 44.9530366,33.6929538 47.122661,33.6929538 C50.2536364,33.6929538 51.7944318,31.243613 51.7944318,27.2911901 L51.7944318,22.7956079 L51.7944318,22.7956079 Z" id="Fill-3" fill="#1A1918"></path>
<path d="M79.5155808,27.1955394 C79.1797664,33.6451284 77.0595265,37.6932021 70.6494223,37.6932021 C63.1331061,37.6932021 61.0128662,31.8926712 61.0128662,23.5437329 C61.0128662,15.1913784 63.1331061,9.3942637 70.6494223,9.3942637 C78.4060764,9.29519692 79.5649653,15.6935445 79.5649653,19.0447346 L74.3598422,19.0447346 C74.3598422,16.5441524 73.6849211,13.2988613 70.6494223,13.394512 C66.8896181,13.394512 66.214697,17.5928938 66.214697,23.5437329 C66.214697,29.4945719 66.8896181,33.6929538 70.6494223,33.6929538 C73.54006,33.7441952 74.6001799,31.243613 74.6001799,27.1955394 L79.5155808,27.1955394" id="Fill-4" fill="#1A1918"></path>
<polyline id="Fill-5" fill="#1A1918" points="83.1404009 1.29470034 88.345524 1.29470034 88.345524 21.3437671 88.4410006 21.3437671 96.2964236 10.0945634 102.321329 10.0433219 94.5152904 20.4419178 103.332064 36.9929024 97.6462658 36.9929024 91.2855461 24.7427825 88.345524 28.4424144 88.345524 36.9929024 83.1404009 36.9929024 83.1404009 1.29470034"></polyline>
<path d="M112.303576,1.29470034 L119.339217,1.29470034 L128.399621,36.9929024 L122.664438,36.9929024 L120.544198,28.2476969 L110.476351,28.2476969 L108.257342,36.9929024 L102.525451,36.9929024 L112.303576,1.29470034 L112.303576,1.29470034 Z M119.628939,23.690625 L115.678182,6.09431507 L115.579413,6.09431507 L111.487086,23.690625 L119.628939,23.690625 L119.628939,23.690625 Z" id="Fill-6" fill="#1A1918"></path>
<path d="M143.738438,33.6929538 L143.639669,33.6929538 C142.964747,35.4419949 141.66429,37.6932021 137.95387,37.6932021 C131.882872,37.6932021 129.47291,32.4426627 129.47291,23.191875 C129.47291,11.2423716 133.522437,9.3942637 137.473194,9.3942637 C140.268355,9.3942637 142.388595,10.8461045 143.349946,13.2442038 L143.448715,13.2442038 L143.448715,1.29470034 L148.650546,1.29470034 L148.650546,36.9929024 L143.738438,36.9929024 L143.738438,33.6929538 L143.738438,33.6929538 Z M139.01399,13.6951284 C136.027876,13.6951284 134.967756,16.1922945 134.967756,23.4446661 C134.967756,29.5423973 135.738153,33.3923373 139.353097,33.3923373 C142.918655,33.3923373 143.738438,29.5936387 143.738438,23.8443493 C143.738438,17.3947603 143.014132,13.6951284 139.01399,13.6951284 L139.01399,13.6951284 Z" id="Fill-7" fill="#1A1918"></path>
<path d="M170.685896,31.3939212 C170.685896,32.3914212 171.265341,33.2932705 172.035739,33.2932705 C172.371553,33.2932705 172.71066,33.2420291 172.904905,33.1429623 L172.904905,36.6444606 C172.276076,36.9450771 171.360818,37.2969349 170.350082,37.2969349 C168.035597,37.2969349 166.109602,36.3438442 165.964741,33.7441952 L165.869265,33.7441952 C164.470038,36.3950856 162.445275,37.6932021 159.409776,37.6932021 C155.268065,37.6932021 152.663857,35.2916866 152.663857,30.140214 C152.663857,24.1449658 155.169296,22.8946747 158.688763,21.695625 L162.734997,20.5444007 C164.614899,19.9909932 165.770496,19.4410017 165.770496,17.0941438 C165.770496,14.6448031 164.950713,13.0973116 162.204937,13.0973116 C158.734855,13.0973116 158.254179,15.6457192 158.254179,18.2487842 L153.338778,18.2487842 C153.338778,12.5439041 155.603879,9.3942637 162.445275,9.3942637 C167.021569,9.3942637 170.685896,11.2423716 170.685896,15.9975771 L170.685896,31.3939212 L170.685896,31.3939212 Z M165.770496,22.7956079 C164.420653,23.8921747 161.533308,24.544649 159.98922,25.292774 C158.497809,26.040899 157.86898,27.6430479 157.86898,29.6448801 C157.86898,31.8926712 158.9291,33.6929538 161.098725,33.6929538 C164.2297,33.6929538 165.770496,31.243613 165.770496,27.2911901 L165.770496,22.7956079 L165.770496,22.7956079 Z" id="Fill-8" fill="#1A1918"></path>
<path d="M175.996373,10.0945634 L180.915066,10.0945634 L180.915066,13.394512 L181.010543,13.394512 C182.070663,10.9964127 183.996657,9.3942637 186.841203,9.3942637 C192.767339,9.3942637 195.177301,14.6448031 195.177301,23.8921747 C195.177301,35.196036 190.742576,37.6932021 187.177017,37.6932021 C184.381856,37.6932021 182.261616,36.2447774 181.296973,33.843262 L181.201496,33.843262 L181.201496,45.7893493 L175.996373,45.7893493 L175.996373,10.0945634 L175.996373,10.0945634 Z M185.346499,33.3923373 C188.332614,33.3923373 189.682456,31.0933048 189.682456,23.6462158 C189.682456,17.5484846 188.912058,13.6951284 185.297115,13.6951284 C181.731556,13.6951284 180.915066,17.4938271 180.915066,23.2465325 C180.915066,29.6927055 181.685464,33.3923373 185.346499,33.3923373 L185.346499,33.3923373 Z" id="Fill-9" fill="#1A1918"></path>
<path d="M196.876127,10.0945634 L200.441686,10.0945634 L200.441686,2.44592466 L205.646809,2.44592466 L205.646809,10.0945634 L209.887289,10.0945634 L209.887289,14.0948116 L205.646809,14.0948116 L205.646809,30.140214 C205.646809,32.241113 206.222961,32.9926541 208.007386,32.9926541 C208.777784,32.9926541 209.406613,32.9448288 209.887289,32.845762 L209.887289,36.8425942 C208.777784,37.1432106 207.332465,37.2969349 205.692901,37.2969349 C202.176727,37.2969349 200.441686,36.2926027 200.441686,30.7961045 L200.441686,14.0948116 L196.876127,14.0948116 L196.876127,10.0945634" id="Fill-10" fill="#1A1918"></path>
<polygon id="Fill-11" fill="#29B08E" points="102.782251 47.6374572 148.6703 47.6374572 148.6703 51.8085103 102.782251 51.8085103"></polygon>
</g>
</g>
</g>
</svg>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="content">
<div id="api2-explorer">
<div class="swagger-section page-docs" style="zoom: 1">
<div class="main-section">
<div id="swagger-ui-container" class="swagger-ui-wrap">
</div>
</div>
</div>
</div>
</section>
</body>
</html>