jellyfish 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,166 +0,0 @@
1
-
2
- require 'jellyfish/json'
3
-
4
- module Jellyfish
5
- class Swagger
6
- include Jellyfish
7
- controller_include Jellyfish::NormalizedPath, Module.new{
8
- def dispatch
9
- headers_merge 'Content-Type' => 'application/json; charset=utf-8'
10
- super
11
- end
12
- }
13
-
14
- get '/' do
15
- [Jellyfish::Json.encode(
16
- :swaggerVersion => '1.2' ,
17
- :info => jellyfish.swagger_info ,
18
- :apiVersion => jellyfish.swagger_apiVersion,
19
- :apis => jellyfish.swagger_apis )]
20
- end
21
-
22
- get %r{\A/(?<name>.+)\Z} do |match|
23
- basePath =
24
- "#{request.scheme}://#{request.host_with_port}#{jellyfish.path_prefix}"
25
- name = "/#{match[:name]}"
26
- apis = jellyfish.jellyfish_apis[name].map{ |path, operations|
27
- {:path => path, :operations => operations}
28
- }
29
-
30
- [Jellyfish::Json.encode(
31
- :swaggerVersion => '1.2' ,
32
- :basePath => basePath ,
33
- :resourcePath => name ,
34
- :apiVersion => jellyfish.swagger_apiVersion,
35
- :apis => apis )]
36
- end
37
-
38
- # The application should define the API description.
39
- def swagger_info
40
- if app.respond_to?(:info)
41
- app.info
42
- else
43
- {}
44
- end
45
- end
46
-
47
- # The application should define the API version.
48
- def swagger_apiVersion
49
- if app.respond_to?(:swagger_apiVersion)
50
- app.swagger_apiVersion
51
- else
52
- '0.1.0'
53
- end
54
- end
55
-
56
- def swagger_apis
57
- @swagger_apis ||= jellyfish_apis.keys.map do |name|
58
- {:path => name}
59
- end
60
- end
61
-
62
- attr_reader :jellys, :path_prefix
63
- def initialize path_prefix='', *apps
64
- super(apps.first)
65
- @jellys = apps
66
- @path_prefix = path_prefix
67
- end
68
-
69
- def jellyfish_apis
70
- @jellyfish_apis ||= jellys.flat_map{ |j|
71
- j.routes.flat_map{ |meth, routes|
72
- routes.map{ |(path, _, meta)|
73
- meta.merge(operation(meth, path, meta))
74
- }
75
- }
76
- }.group_by{ |api| api[:path] }.
77
- inject(Hash.new{[]}){ |r, (path, operations)|
78
- r[path] = operations.group_by{ |op| op[:nickname] }
79
- r
80
- }
81
- end
82
-
83
- private
84
- def operation meth, path, meta
85
- if path.respond_to?(:source)
86
- nick = nickname(path)
87
- {:path => swagger_path(nick) ,
88
- :method => meth.to_s.upcase ,
89
- :nickname => nick ,
90
- :summary => meta[:summary] ,
91
- :notes => notes(meta) ,
92
- :parameters => path_parameters(path, meta) }
93
- else
94
- {:path => swagger_path(path) ,
95
- :method => meth.to_s.upcase ,
96
- :nickname => path ,
97
- :summary => meta[:summary] ,
98
- :notes => notes(meta) ,
99
- :parameters => query_parameters(meta) }
100
- end
101
- end
102
-
103
- def swagger_path nickname
104
- nickname[%r{^/[^/]*}]
105
- end
106
-
107
- def nickname path
108
- if path.respond_to?(:source)
109
- path.source.gsub(param_pattern, '{\1}').gsub(/\\\w+|[\^\$]/, '')
110
- else
111
- path.to_s
112
- end
113
- end
114
-
115
- def notes meta
116
- if meta[:notes]
117
- "#{meta[:summary]}<br>#{meta[:notes]}"
118
- else
119
- meta[:summary]
120
- end
121
- end
122
-
123
- def path_parameters path, meta
124
- Hash[path.source.scan(param_pattern)].map{ |name, pattern|
125
- path_param(name, pattern, meta)
126
- }
127
- end
128
-
129
- def query_parameters meta
130
- if meta[:parameters]
131
- meta[:parameters].map{ |(name, param)|
132
- param.merge(:name => name.to_s,
133
- :type => param[:type] || 'string',
134
- :required => !!param[:required],
135
- :paramType => param[:paramType] || 'query')
136
- }
137
- else
138
- []
139
- end
140
- end
141
-
142
- def path_param name, pattern, meta
143
- param = (meta[:parameters] || {})[name.to_sym] || {}
144
- param.merge(:name => name ,
145
- :type => param[:type] || param_type(pattern),
146
- :required => true ,
147
- :paramType => 'path' )
148
- end
149
-
150
- def param_type pattern
151
- if pattern.start_with?('\\d')
152
- if pattern.include?('.')
153
- 'number'
154
- else
155
- 'integer'
156
- end
157
- else
158
- 'string'
159
- end
160
- end
161
-
162
- def param_pattern
163
- /\(\?<(\w+)>([^\)]+)\)/
164
- end
165
- end
166
- end
@@ -1,1070 +0,0 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
2
- html,
3
- body,
4
- div,
5
- span,
6
- applet,
7
- object,
8
- iframe,
9
- h1,
10
- h2,
11
- h3,
12
- h4,
13
- h5,
14
- h6,
15
- p,
16
- blockquote,
17
- pre,
18
- a,
19
- abbr,
20
- acronym,
21
- address,
22
- big,
23
- cite,
24
- code,
25
- del,
26
- dfn,
27
- em,
28
- img,
29
- ins,
30
- kbd,
31
- q,
32
- s,
33
- samp,
34
- small,
35
- strike,
36
- strong,
37
- sub,
38
- sup,
39
- tt,
40
- var,
41
- b,
42
- u,
43
- i,
44
- center,
45
- dl,
46
- dt,
47
- dd,
48
- ol,
49
- ul,
50
- li,
51
- fieldset,
52
- form,
53
- label,
54
- legend,
55
- table,
56
- caption,
57
- tbody,
58
- tfoot,
59
- thead,
60
- tr,
61
- th,
62
- td,
63
- article,
64
- aside,
65
- canvas,
66
- details,
67
- embed,
68
- figure,
69
- figcaption,
70
- footer,
71
- header,
72
- hgroup,
73
- menu,
74
- nav,
75
- output,
76
- ruby,
77
- section,
78
- summary,
79
- time,
80
- mark,
81
- audio,
82
- video {
83
- margin: 0;
84
- padding: 0;
85
- border: 0;
86
- font-size: 100%;
87
- font: inherit;
88
- vertical-align: baseline;
89
- }
90
- /* HTML5 display-role reset for older browsers */
91
- article,
92
- aside,
93
- details,
94
- figcaption,
95
- figure,
96
- footer,
97
- header,
98
- hgroup,
99
- menu,
100
- nav,
101
- section {
102
- display: block;
103
- }
104
- body {
105
- line-height: 1;
106
- }
107
- ol,
108
- ul {
109
- list-style: none;
110
- }
111
- blockquote,
112
- q {
113
- quotes: none;
114
- }
115
- blockquote:before,
116
- blockquote:after,
117
- q:before,
118
- q:after {
119
- content: '';
120
- content: none;
121
- }
122
- table {
123
- border-collapse: collapse;
124
- border-spacing: 0;
125
- }
126
- .swagger-ui-wrap {
127
- line-height: 1;
128
- font-family: "Droid Sans", sans-serif;
129
- max-width: 960px;
130
- margin-left: auto;
131
- margin-right: auto;
132
- }
133
- .swagger-ui-wrap b,
134
- .swagger-ui-wrap strong {
135
- font-family: "Droid Sans", sans-serif;
136
- font-weight: bold;
137
- }
138
- .swagger-ui-wrap q,
139
- .swagger-ui-wrap blockquote {
140
- quotes: none;
141
- }
142
- .swagger-ui-wrap p {
143
- line-height: 1.4em;
144
- padding: 0 0 10px;
145
- color: #333333;
146
- }
147
- .swagger-ui-wrap q:before,
148
- .swagger-ui-wrap q:after,
149
- .swagger-ui-wrap blockquote:before,
150
- .swagger-ui-wrap blockquote:after {
151
- content: none;
152
- }
153
- .swagger-ui-wrap .heading_with_menu h1,
154
- .swagger-ui-wrap .heading_with_menu h2,
155
- .swagger-ui-wrap .heading_with_menu h3,
156
- .swagger-ui-wrap .heading_with_menu h4,
157
- .swagger-ui-wrap .heading_with_menu h5,
158
- .swagger-ui-wrap .heading_with_menu h6 {
159
- display: block;
160
- clear: none;
161
- float: left;
162
- -moz-box-sizing: border-box;
163
- -webkit-box-sizing: border-box;
164
- -ms-box-sizing: border-box;
165
- box-sizing: border-box;
166
- width: 60%;
167
- }
168
- .swagger-ui-wrap table {
169
- border-collapse: collapse;
170
- border-spacing: 0;
171
- }
172
- .swagger-ui-wrap table thead tr th {
173
- padding: 5px;
174
- font-size: 0.9em;
175
- color: #666666;
176
- border-bottom: 1px solid #999999;
177
- }
178
- .swagger-ui-wrap table tbody tr:last-child td {
179
- border-bottom: none;
180
- }
181
- .swagger-ui-wrap table tbody tr.offset {
182
- background-color: #f0f0f0;
183
- }
184
- .swagger-ui-wrap table tbody tr td {
185
- padding: 6px;
186
- font-size: 0.9em;
187
- border-bottom: 1px solid #cccccc;
188
- vertical-align: top;
189
- line-height: 1.3em;
190
- }
191
- .swagger-ui-wrap ol {
192
- margin: 0px 0 10px;
193
- padding: 0 0 0 18px;
194
- list-style-type: decimal;
195
- }
196
- .swagger-ui-wrap ol li {
197
- padding: 5px 0px;
198
- font-size: 0.9em;
199
- color: #333333;
200
- }
201
- .swagger-ui-wrap ol,
202
- .swagger-ui-wrap ul {
203
- list-style: none;
204
- }
205
- .swagger-ui-wrap h1 a,
206
- .swagger-ui-wrap h2 a,
207
- .swagger-ui-wrap h3 a,
208
- .swagger-ui-wrap h4 a,
209
- .swagger-ui-wrap h5 a,
210
- .swagger-ui-wrap h6 a {
211
- text-decoration: none;
212
- }
213
- .swagger-ui-wrap h1 a:hover,
214
- .swagger-ui-wrap h2 a:hover,
215
- .swagger-ui-wrap h3 a:hover,
216
- .swagger-ui-wrap h4 a:hover,
217
- .swagger-ui-wrap h5 a:hover,
218
- .swagger-ui-wrap h6 a:hover {
219
- text-decoration: underline;
220
- }
221
- .swagger-ui-wrap h1 span.divider,
222
- .swagger-ui-wrap h2 span.divider,
223
- .swagger-ui-wrap h3 span.divider,
224
- .swagger-ui-wrap h4 span.divider,
225
- .swagger-ui-wrap h5 span.divider,
226
- .swagger-ui-wrap h6 span.divider {
227
- color: #aaaaaa;
228
- }
229
- .swagger-ui-wrap a {
230
- color: #547f00;
231
- }
232
- .swagger-ui-wrap a img {
233
- border: none;
234
- }
235
- .swagger-ui-wrap article,
236
- .swagger-ui-wrap aside,
237
- .swagger-ui-wrap details,
238
- .swagger-ui-wrap figcaption,
239
- .swagger-ui-wrap figure,
240
- .swagger-ui-wrap footer,
241
- .swagger-ui-wrap header,
242
- .swagger-ui-wrap hgroup,
243
- .swagger-ui-wrap menu,
244
- .swagger-ui-wrap nav,
245
- .swagger-ui-wrap section,
246
- .swagger-ui-wrap summary {
247
- display: block;
248
- }
249
- .swagger-ui-wrap pre {
250
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
251
- background-color: #fcf6db;
252
- border: 1px solid #e5e0c6;
253
- padding: 10px;
254
- }
255
- .swagger-ui-wrap pre code {
256
- line-height: 1.6em;
257
- background: none;
258
- }
259
- .swagger-ui-wrap .content > .content-type > div > label {
260
- clear: both;
261
- display: block;
262
- color: #0F6AB4;
263
- font-size: 1.1em;
264
- margin: 0;
265
- padding: 15px 0 5px;
266
- }
267
- .swagger-ui-wrap .content pre {
268
- font-size: 12px;
269
- margin-top: 5px;
270
- padding: 5px;
271
- }
272
- .swagger-ui-wrap .icon-btn {
273
- cursor: pointer;
274
- }
275
- .swagger-ui-wrap .info_title {
276
- padding-bottom: 10px;
277
- font-weight: bold;
278
- font-size: 25px;
279
- }
280
- .swagger-ui-wrap p.big,
281
- .swagger-ui-wrap div.big p {
282
- font-size: 1em;
283
- margin-bottom: 10px;
284
- }
285
- .swagger-ui-wrap form.fullwidth ol li.string input,
286
- .swagger-ui-wrap form.fullwidth ol li.url input,
287
- .swagger-ui-wrap form.fullwidth ol li.text textarea,
288
- .swagger-ui-wrap form.fullwidth ol li.numeric input {
289
- width: 500px !important;
290
- }
291
- .swagger-ui-wrap .info_license {
292
- padding-bottom: 5px;
293
- }
294
- .swagger-ui-wrap .info_tos {
295
- padding-bottom: 5px;
296
- }
297
- .swagger-ui-wrap .message-fail {
298
- color: #cc0000;
299
- }
300
- .swagger-ui-wrap .info_contact {
301
- padding-bottom: 5px;
302
- }
303
- .swagger-ui-wrap .info_description {
304
- padding-bottom: 10px;
305
- font-size: 15px;
306
- }
307
- .swagger-ui-wrap .markdown ol li,
308
- .swagger-ui-wrap .markdown ul li {
309
- padding: 3px 0px;
310
- line-height: 1.4em;
311
- color: #333333;
312
- }
313
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input,
314
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input,
315
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input {
316
- display: block;
317
- padding: 4px;
318
- width: auto;
319
- clear: both;
320
- }
321
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title,
322
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title,
323
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title {
324
- font-size: 1.3em;
325
- }
326
- .swagger-ui-wrap table.fullwidth {
327
- width: 100%;
328
- }
329
- .swagger-ui-wrap .model-signature {
330
- font-family: "Droid Sans", sans-serif;
331
- font-size: 1em;
332
- line-height: 1.5em;
333
- }
334
- .swagger-ui-wrap .model-signature .signature-nav a {
335
- text-decoration: none;
336
- color: #AAA;
337
- }
338
- .swagger-ui-wrap .model-signature .signature-nav a:hover {
339
- text-decoration: underline;
340
- color: black;
341
- }
342
- .swagger-ui-wrap .model-signature .signature-nav .selected {
343
- color: black;
344
- text-decoration: none;
345
- }
346
- .swagger-ui-wrap .model-signature .propType {
347
- color: #5555aa;
348
- }
349
- .swagger-ui-wrap .model-signature pre:hover {
350
- background-color: #ffffdd;
351
- }
352
- .swagger-ui-wrap .model-signature pre {
353
- font-size: .85em;
354
- line-height: 1.2em;
355
- overflow: auto;
356
- max-height: 200px;
357
- cursor: pointer;
358
- }
359
- .swagger-ui-wrap .model-signature ul.signature-nav {
360
- display: block;
361
- margin: 0;
362
- padding: 0;
363
- }
364
- .swagger-ui-wrap .model-signature ul.signature-nav li:last-child {
365
- padding-right: 0;
366
- border-right: none;
367
- }
368
- .swagger-ui-wrap .model-signature ul.signature-nav li {
369
- float: left;
370
- margin: 0 5px 5px 0;
371
- padding: 2px 5px 2px 0;
372
- border-right: 1px solid #ddd;
373
- }
374
- .swagger-ui-wrap .model-signature .propOpt {
375
- color: #555;
376
- }
377
- .swagger-ui-wrap .model-signature .snippet small {
378
- font-size: 0.75em;
379
- }
380
- .swagger-ui-wrap .model-signature .propOptKey {
381
- font-style: italic;
382
- }
383
- .swagger-ui-wrap .model-signature .description .strong {
384
- font-weight: bold;
385
- color: #000;
386
- font-size: .9em;
387
- }
388
- .swagger-ui-wrap .model-signature .description div {
389
- font-size: 0.9em;
390
- line-height: 1.5em;
391
- margin-left: 1em;
392
- }
393
- .swagger-ui-wrap .model-signature .description .stronger {
394
- font-weight: bold;
395
- color: #000;
396
- }
397
- .swagger-ui-wrap .model-signature .propName {
398
- font-weight: bold;
399
- }
400
- .swagger-ui-wrap .model-signature .signature-container {
401
- clear: both;
402
- }
403
- .swagger-ui-wrap .body-textarea {
404
- width: 300px;
405
- height: 100px;
406
- border: 1px solid #aaa;
407
- }
408
- .swagger-ui-wrap .markdown p code,
409
- .swagger-ui-wrap .markdown li code {
410
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
411
- background-color: #f0f0f0;
412
- color: black;
413
- padding: 1px 3px;
414
- }
415
- .swagger-ui-wrap .required {
416
- font-weight: bold;
417
- }
418
- .swagger-ui-wrap input.parameter {
419
- width: 300px;
420
- border: 1px solid #aaa;
421
- }
422
- .swagger-ui-wrap h1 {
423
- color: black;
424
- font-size: 1.5em;
425
- line-height: 1.3em;
426
- padding: 10px 0 10px 0;
427
- font-family: "Droid Sans", sans-serif;
428
- font-weight: bold;
429
- }
430
- .swagger-ui-wrap .heading_with_menu {
431
- float: none;
432
- clear: both;
433
- overflow: hidden;
434
- display: block;
435
- }
436
- .swagger-ui-wrap .heading_with_menu ul {
437
- display: block;
438
- clear: none;
439
- float: right;
440
- -moz-box-sizing: border-box;
441
- -webkit-box-sizing: border-box;
442
- -ms-box-sizing: border-box;
443
- box-sizing: border-box;
444
- margin-top: 10px;
445
- }
446
- .swagger-ui-wrap h2 {
447
- color: black;
448
- font-size: 1.3em;
449
- padding: 10px 0 10px 0;
450
- }
451
- .swagger-ui-wrap h2 a {
452
- color: black;
453
- }
454
- .swagger-ui-wrap h2 span.sub {
455
- font-size: 0.7em;
456
- color: #999999;
457
- font-style: italic;
458
- }
459
- .swagger-ui-wrap h2 span.sub a {
460
- color: #777777;
461
- }
462
- .swagger-ui-wrap span.weak {
463
- color: #666666;
464
- }
465
- .swagger-ui-wrap .message-success {
466
- color: #89BF04;
467
- }
468
- .swagger-ui-wrap caption,
469
- .swagger-ui-wrap th,
470
- .swagger-ui-wrap td {
471
- text-align: left;
472
- font-weight: normal;
473
- vertical-align: middle;
474
- }
475
- .swagger-ui-wrap .code {
476
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
477
- }
478
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea {
479
- font-family: "Droid Sans", sans-serif;
480
- height: 250px;
481
- padding: 4px;
482
- display: block;
483
- clear: both;
484
- }
485
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select {
486
- display: block;
487
- clear: both;
488
- }
489
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean {
490
- float: none;
491
- clear: both;
492
- overflow: hidden;
493
- display: block;
494
- }
495
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label {
496
- display: block;
497
- float: left;
498
- clear: none;
499
- margin: 0;
500
- padding: 0;
501
- }
502
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input {
503
- display: block;
504
- float: left;
505
- clear: none;
506
- margin: 0 5px 0 0;
507
- }
508
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label {
509
- color: black;
510
- }
511
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li label {
512
- display: block;
513
- clear: both;
514
- width: auto;
515
- padding: 0 0 3px;
516
- color: #666666;
517
- }
518
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr {
519
- padding-left: 3px;
520
- color: #888888;
521
- }
522
- .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints {
523
- margin-left: 0;
524
- font-style: italic;
525
- font-size: 0.9em;
526
- margin: 0;
527
- }
528
- .swagger-ui-wrap form.formtastic fieldset.buttons {
529
- margin: 0;
530
- padding: 0;
531
- }
532
- .swagger-ui-wrap span.blank,
533
- .swagger-ui-wrap span.empty {
534
- color: #888888;
535
- font-style: italic;
536
- }
537
- .swagger-ui-wrap .markdown h3 {
538
- color: #547f00;
539
- }
540
- .swagger-ui-wrap .markdown h4 {
541
- color: #666666;
542
- }
543
- .swagger-ui-wrap .markdown pre {
544
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
545
- background-color: #fcf6db;
546
- border: 1px solid #e5e0c6;
547
- padding: 10px;
548
- margin: 0 0 10px 0;
549
- }
550
- .swagger-ui-wrap .markdown pre code {
551
- line-height: 1.6em;
552
- }
553
- .swagger-ui-wrap div.gist {
554
- margin: 20px 0 25px 0 !important;
555
- }
556
- .swagger-ui-wrap ul#resources {
557
- font-family: "Droid Sans", sans-serif;
558
- font-size: 0.9em;
559
- }
560
- .swagger-ui-wrap ul#resources li.resource {
561
- border-bottom: 1px solid #dddddd;
562
- }
563
- .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a,
564
- .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a {
565
- color: black;
566
- }
567
- .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a,
568
- .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a {
569
- color: #555555;
570
- }
571
- .swagger-ui-wrap ul#resources li.resource:last-child {
572
- border-bottom: none;
573
- }
574
- .swagger-ui-wrap ul#resources li.resource div.heading {
575
- border: 1px solid transparent;
576
- float: none;
577
- clear: both;
578
- overflow: hidden;
579
- display: block;
580
- }
581
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options {
582
- overflow: hidden;
583
- padding: 0;
584
- display: block;
585
- clear: none;
586
- float: right;
587
- margin: 14px 10px 0 0;
588
- }
589
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li {
590
- float: left;
591
- clear: none;
592
- margin: 0;
593
- padding: 2px 10px;
594
- border-right: 1px solid #dddddd;
595
- color: #666666;
596
- font-size: 0.9em;
597
- }
598
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a {
599
- color: #aaaaaa;
600
- text-decoration: none;
601
- }
602
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover {
603
- text-decoration: underline;
604
- color: black;
605
- }
606
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover,
607
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active,
608
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active {
609
- text-decoration: underline;
610
- }
611
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child,
612
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first {
613
- padding-left: 0;
614
- }
615
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child,
616
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last {
617
- padding-right: 0;
618
- border-right: none;
619
- }
620
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child,
621
- .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first {
622
- padding-left: 0;
623
- }
624
- .swagger-ui-wrap ul#resources li.resource div.heading h2 {
625
- color: #999999;
626
- padding-left: 0;
627
- display: block;
628
- clear: none;
629
- float: left;
630
- font-family: "Droid Sans", sans-serif;
631
- font-weight: bold;
632
- }
633
- .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
634
- color: #999999;
635
- }
636
- .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
637
- color: black;
638
- }
639
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation {
640
- float: none;
641
- clear: both;
642
- overflow: hidden;
643
- display: block;
644
- margin: 0 0 10px;
645
- padding: 0;
646
- }
647
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading {
648
- float: none;
649
- clear: both;
650
- overflow: hidden;
651
- display: block;
652
- margin: 0;
653
- padding: 0;
654
- }
655
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 {
656
- display: block;
657
- clear: none;
658
- float: left;
659
- width: auto;
660
- margin: 0;
661
- padding: 0;
662
- line-height: 1.1em;
663
- color: black;
664
- }
665
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path {
666
- padding-left: 10px;
667
- }
668
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a {
669
- color: black;
670
- text-decoration: none;
671
- }
672
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
673
- text-decoration: underline;
674
- }
675
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a {
676
- text-transform: uppercase;
677
- text-decoration: none;
678
- color: white;
679
- display: inline-block;
680
- width: 50px;
681
- font-size: 0.7em;
682
- text-align: center;
683
- padding: 7px 0 4px;
684
- -moz-border-radius: 2px;
685
- -webkit-border-radius: 2px;
686
- -o-border-radius: 2px;
687
- -ms-border-radius: 2px;
688
- -khtml-border-radius: 2px;
689
- border-radius: 2px;
690
- }
691
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span {
692
- margin: 0;
693
- padding: 0;
694
- }
695
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options {
696
- overflow: hidden;
697
- padding: 0;
698
- display: block;
699
- clear: none;
700
- float: right;
701
- margin: 6px 10px 0 0;
702
- }
703
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li {
704
- float: left;
705
- clear: none;
706
- margin: 0;
707
- padding: 2px 10px;
708
- font-size: 0.9em;
709
- }
710
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a {
711
- text-decoration: none;
712
- }
713
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content {
714
- border-top: none;
715
- padding: 10px;
716
- -moz-border-radius-bottomleft: 6px;
717
- -webkit-border-bottom-left-radius: 6px;
718
- -o-border-bottom-left-radius: 6px;
719
- -ms-border-bottom-left-radius: 6px;
720
- -khtml-border-bottom-left-radius: 6px;
721
- border-bottom-left-radius: 6px;
722
- -moz-border-radius-bottomright: 6px;
723
- -webkit-border-bottom-right-radius: 6px;
724
- -o-border-bottom-right-radius: 6px;
725
- -ms-border-bottom-right-radius: 6px;
726
- -khtml-border-bottom-right-radius: 6px;
727
- border-bottom-right-radius: 6px;
728
- margin: 0 0 20px;
729
- }
730
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 {
731
- font-size: 1.1em;
732
- margin: 0;
733
- padding: 15px 0 5px;
734
- }
735
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header {
736
- float: none;
737
- clear: both;
738
- overflow: hidden;
739
- display: block;
740
- }
741
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a {
742
- padding: 4px 0 0 10px;
743
- display: inline-block;
744
- font-size: 0.9em;
745
- }
746
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header img {
747
- display: block;
748
- clear: none;
749
- float: right;
750
- }
751
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit {
752
- display: block;
753
- clear: none;
754
- float: left;
755
- padding: 6px 8px;
756
- }
757
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error {
758
- outline: 2px solid black;
759
- outline-color: #cc0000;
760
- }
761
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre {
762
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
763
- padding: 10px;
764
- font-size: 0.9em;
765
- max-height: 400px;
766
- overflow-y: auto;
767
- }
768
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading {
769
- background-color: #f9f2e9;
770
- border: 1px solid #f0e0ca;
771
- }
772
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a {
773
- background-color: #c5862b;
774
- }
775
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li {
776
- border-right: 1px solid #dddddd;
777
- border-right-color: #f0e0ca;
778
- color: #c5862b;
779
- }
780
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a {
781
- color: #c5862b;
782
- }
783
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content {
784
- background-color: #faf5ee;
785
- border: 1px solid #f0e0ca;
786
- }
787
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 {
788
- color: #c5862b;
789
- }
790
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a {
791
- color: #dcb67f;
792
- }
793
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading {
794
- background-color: #fcffcd;
795
- border: 1px solid black;
796
- border-color: #ffd20f;
797
- }
798
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a {
799
- text-transform: uppercase;
800
- background-color: #ffd20f;
801
- }
802
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li {
803
- border-right: 1px solid #dddddd;
804
- border-right-color: #ffd20f;
805
- color: #ffd20f;
806
- }
807
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a {
808
- color: #ffd20f;
809
- }
810
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content {
811
- background-color: #fcffcd;
812
- border: 1px solid black;
813
- border-color: #ffd20f;
814
- }
815
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 {
816
- color: #ffd20f;
817
- }
818
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a {
819
- color: #6fc992;
820
- }
821
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading {
822
- background-color: #f5e8e8;
823
- border: 1px solid #e8c6c7;
824
- }
825
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a {
826
- text-transform: uppercase;
827
- background-color: #a41e22;
828
- }
829
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li {
830
- border-right: 1px solid #dddddd;
831
- border-right-color: #e8c6c7;
832
- color: #a41e22;
833
- }
834
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a {
835
- color: #a41e22;
836
- }
837
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
838
- background-color: #f7eded;
839
- border: 1px solid #e8c6c7;
840
- }
841
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 {
842
- color: #a41e22;
843
- }
844
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a {
845
- color: #c8787a;
846
- }
847
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading {
848
- background-color: #e7f6ec;
849
- border: 1px solid #c3e8d1;
850
- }
851
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a {
852
- background-color: #10a54a;
853
- }
854
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li {
855
- border-right: 1px solid #dddddd;
856
- border-right-color: #c3e8d1;
857
- color: #10a54a;
858
- }
859
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a {
860
- color: #10a54a;
861
- }
862
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content {
863
- background-color: #ebf7f0;
864
- border: 1px solid #c3e8d1;
865
- }
866
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 {
867
- color: #10a54a;
868
- }
869
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a {
870
- color: #6fc992;
871
- }
872
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading {
873
- background-color: #FCE9E3;
874
- border: 1px solid #F5D5C3;
875
- }
876
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a {
877
- background-color: #D38042;
878
- }
879
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li {
880
- border-right: 1px solid #dddddd;
881
- border-right-color: #f0cecb;
882
- color: #D38042;
883
- }
884
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a {
885
- color: #D38042;
886
- }
887
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content {
888
- background-color: #faf0ef;
889
- border: 1px solid #f0cecb;
890
- }
891
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 {
892
- color: #D38042;
893
- }
894
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a {
895
- color: #dcb67f;
896
- }
897
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading {
898
- background-color: #e7f0f7;
899
- border: 1px solid #c3d9ec;
900
- }
901
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a {
902
- background-color: #0f6ab4;
903
- }
904
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li {
905
- border-right: 1px solid #dddddd;
906
- border-right-color: #c3d9ec;
907
- color: #0f6ab4;
908
- }
909
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a {
910
- color: #0f6ab4;
911
- }
912
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content {
913
- background-color: #ebf3f9;
914
- border: 1px solid #c3d9ec;
915
- }
916
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 {
917
- color: #0f6ab4;
918
- }
919
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a {
920
- color: #6fa5d2;
921
- }
922
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content,
923
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content,
924
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content,
925
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content,
926
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content,
927
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
928
- border-top: none;
929
- }
930
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child,
931
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child,
932
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child,
933
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child,
934
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child,
935
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child,
936
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last,
937
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last,
938
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last,
939
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last,
940
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last,
941
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last {
942
- padding-right: 0;
943
- border-right: none;
944
- }
945
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover,
946
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active,
947
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active {
948
- text-decoration: underline;
949
- }
950
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child,
951
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first {
952
- padding-left: 0;
953
- }
954
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child,
955
- .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first {
956
- padding-left: 0;
957
- }
958
- .swagger-ui-wrap p#colophon {
959
- margin: 0 15px 40px 15px;
960
- padding: 10px 0;
961
- font-size: 0.8em;
962
- border-top: 1px solid #dddddd;
963
- font-family: "Droid Sans", sans-serif;
964
- color: #999999;
965
- font-style: italic;
966
- }
967
- .swagger-ui-wrap p#colophon a {
968
- text-decoration: none;
969
- color: #547f00;
970
- }
971
- .swagger-ui-wrap h3 {
972
- color: black;
973
- font-size: 1.1em;
974
- padding: 10px 0 10px 0;
975
- }
976
- .swagger-ui-wrap .markdown ol,
977
- .swagger-ui-wrap .markdown ul {
978
- font-family: "Droid Sans", sans-serif;
979
- margin: 5px 0 10px;
980
- padding: 0 0 0 18px;
981
- list-style-type: disc;
982
- }
983
- .swagger-ui-wrap form.form_box {
984
- background-color: #ebf3f9;
985
- border: 1px solid #c3d9ec;
986
- padding: 10px;
987
- }
988
- .swagger-ui-wrap form.form_box label {
989
- color: #0f6ab4 !important;
990
- }
991
- .swagger-ui-wrap form.form_box input[type=submit] {
992
- display: block;
993
- padding: 10px;
994
- }
995
- .swagger-ui-wrap form.form_box p.weak {
996
- font-size: 0.8em;
997
- }
998
- .swagger-ui-wrap form.form_box p {
999
- font-size: 0.9em;
1000
- padding: 0 0 15px;
1001
- color: #7e7b6d;
1002
- }
1003
- .swagger-ui-wrap form.form_box p a {
1004
- color: #646257;
1005
- }
1006
- .swagger-ui-wrap form.form_box p strong {
1007
- color: black;
1008
- }
1009
- #header {
1010
- background-color: #89bf04;
1011
- padding: 14px;
1012
- }
1013
- #header a#logo {
1014
- font-size: 1.5em;
1015
- font-weight: bold;
1016
- text-decoration: none;
1017
- background: transparent url(../images/logo_small.png) no-repeat left center;
1018
- padding: 20px 0 20px 40px;
1019
- color: white;
1020
- }
1021
- #header form#api_selector {
1022
- display: block;
1023
- clear: none;
1024
- float: right;
1025
- }
1026
- #header form#api_selector .input {
1027
- display: block;
1028
- clear: none;
1029
- float: left;
1030
- margin: 0 10px 0 0;
1031
- }
1032
- #header form#api_selector .input input#input_apiKey {
1033
- width: 200px;
1034
- }
1035
- #header form#api_selector .input input#input_baseUrl {
1036
- width: 400px;
1037
- }
1038
- #header form#api_selector .input a#explore {
1039
- display: block;
1040
- text-decoration: none;
1041
- font-weight: bold;
1042
- padding: 6px 8px;
1043
- font-size: 0.9em;
1044
- color: white;
1045
- background-color: #547f00;
1046
- -moz-border-radius: 4px;
1047
- -webkit-border-radius: 4px;
1048
- -o-border-radius: 4px;
1049
- -ms-border-radius: 4px;
1050
- -khtml-border-radius: 4px;
1051
- border-radius: 4px;
1052
- }
1053
- #header form#api_selector .input a#explore:hover {
1054
- background-color: #547f00;
1055
- }
1056
- #header form#api_selector .input input {
1057
- font-size: 0.9em;
1058
- padding: 3px;
1059
- margin: 0;
1060
- }
1061
- #content_message {
1062
- margin: 10px 15px;
1063
- font-style: italic;
1064
- color: #999999;
1065
- }
1066
- #message-bar {
1067
- min-height: 30px;
1068
- text-align: center;
1069
- padding-top: 10px;
1070
- }