-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.html
More file actions
242 lines (200 loc) · 7.2 KB
/
api.html
File metadata and controls
242 lines (200 loc) · 7.2 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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Festivals API documentation</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Developers portal for festivals">
<meta name="author" content="Zenedith<zenedith@wp.pl>">
<link rel="icon" type="image/png" href="/vendor/img/favicon-32x32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="/vendor/img/favicon-16x16.png" sizes="16x16"/>
<link href='/vendor/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='/vendor/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='/vendor/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
<link href='/vendor/css/print.css' media='print' rel='stylesheet' type='text/css'/>
<link href="/vendor/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
.legal {
list-style: none;
text-align: center;
list-style-type: none;
}
.legal li {
display: inline;
padding: 5px;
}
.hero-unit {
padding: 30px;
margin-bottom: 15px;
font-size: 18px;
font-weight: 100;
line-height: 30px;
color: inherit;
background-color: #eeeeee;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
.toolbar {
float: right;
padding-top: 10px;
}
.toolbar li {
display: inline;
list-style: none;
padding-left: 2px;
padding-right: 2px;
font-size: 14px;
font-weight: bold;
}
.toolbar li a {
color: #000;
font-size: 14px;
}
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
@media (max-width: 980px) {
/* Enable use of floated navbar text */
.navbar-text.pull-right {
float: none;
padding-left: 5px;
padding-right: 5px;
}
}
</style>
<link href="/vendor/css/bootstrap-responsive.css" rel="stylesheet">
<script src="/vendor/js/main.min.js"></script>
<!--[if IE]>
<link rel="stylesheet" href="/vendor/css/for-ie-only.css">
<![endif]-->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="wrap">
<header>
<a href="https://github.com/festivals-platform/dev-hub"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 1050;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="index.html">Dev Hub</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="getting-started.html">Getting started</a></li>
<li><a href="/api.html">APIs</a></li>
<li><a href="/code.html">Code</a></li>
<li><a href="/support.html">Support</a></li>
<li><a href="/blog.html">Blog</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<section>
<div class="container">
<link href='/vendor/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<style type="text/css">
.swagger-section .swagger-ui-wrap {
line-height: 1;
font-family: "Droid Sans", sans-serif;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
ul#resources, ul#rooms_endpoint_list.endpoints{
padding: 0;
margin: 0;
}
</style>
<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "/api-docs/swagger.json";
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get'],
onComplete: function (swaggerApi, swaggerUi) {
if (typeof initOAuth == "function") {
/*
initOAuth({
clientId: "your-client-id",
realm: "your-realms",
appName: "your-app-name"
});
*/
}
$('pre code').each(function (i, e) {
hljs.highlightBlock(e)
});
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("Authorization", "Bearer " + key, "header");
window.swaggerUi.api.clientAuthorizations.add("api_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);
addApiKeyAuthorization();
*/
window.swaggerUi.load();
function log() {
if ('console' in window) {
console.log.apply(console, arguments);
}
}
});
</script>
<h2>API Resources</h2>
<br/>
<p>This area provides access to API resources that allow you to access content and data for the purpose of building
applications that support citizens.</p>
<p>These APIs are not currently maintained by the government, it is meant to just be a prototype to help show various
stakeholders in federal government, what is possible.</p>
<div id='header'>
<form id='api_selector'>
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
<div class='input'><a id="explore" href="#">Update token</a></div>
</form>
</div>
<div id="message-bar" class="swagger-ui-wrap"> </div>
<div class="swagger-section">
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</div>
<script src="/vendor/js/docs.min.js"></script>
</div>
</section>
<footer>
<hr/>
<ul class="legal">
<li><a href="/legal/terms-of-use.html">Terms of Use</a></li>
<li><a href="/legal/privacy-policy.html">Privacy Policy</a></li>
<li><a href="/sitemap.html">Sitemap</a></li>
</ul>
</footer>
</body>
</html>