| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="UTF-8"> |
| 5 |
<meta http-equiv="x-ua-compatible" content="IE=edge"> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 |
<title>Flasgger - Demo apps</title> |
| 8 |
<link rel="icon" type="image/png" href="/restful/flasgger_static/images/favicon-32x32.png" sizes="32x32" /> |
| 9 |
<link rel="icon" type="image/png" href="/restful/flasgger_static/images/favicon-16x16.png" sizes="16x16" /> |
| 10 |
<link href='/restful/flasgger_static/css/typography.css' media='screen' rel='stylesheet' type='text/css'/> |
| 11 |
<link href='/restful/flasgger_static/css/reset.css' media='screen' rel='stylesheet' type='text/css'/> |
| 12 |
<link href='/restful/flasgger_static/css/screen.css' media='screen' rel='stylesheet' type='text/css'/> |
| 13 |
<link href='/restful/flasgger_static/css/reset.css' media='print' rel='stylesheet' type='text/css'/> |
| 14 |
<link href='/restful/flasgger_static/css/print.css' media='print' rel='stylesheet' type='text/css'/> |
| 15 |
<link href='{{ url_for('static', filename='styles.css') }}' rel="styleshet" type='text/css'/> |
| 16 |
<style> |
| 17 |
.swagger-section #header, |
| 18 |
.swagger-section .swagger-ui-wrap { |
| 19 |
min-width: auto; |
| 20 |
} |
| 21 |
|
| 22 |
#examples { |
| 23 |
display: flex; |
| 24 |
flex-wrap: wrap; |
| 25 |
font-size: 1rem; |
| 26 |
justify-content: space-between; |
| 27 |
margin-top: 1rem; |
| 28 |
padding: .5rem; |
| 29 |
} |
| 30 |
|
| 31 |
#examples h2 { |
| 32 |
font-size: 1rem; |
| 33 |
font-weight: bold; |
| 34 |
word-wrap: break-word; |
| 35 |
} |
| 36 |
|
| 37 |
#examples li { |
| 38 |
background-color: #efefef; |
| 39 |
margin: .5rem 0 0 0; |
| 40 |
overflow: hidden; |
| 41 |
width: 100%; |
| 42 |
padding: .5rem; |
| 43 |
} |
| 44 |
|
| 45 |
#examples ol, |
| 46 |
#examples li li { |
| 47 |
margin: .5rem 0 0 0; |
| 48 |
padding: 0; |
| 49 |
width: 100%; |
| 50 |
} |
| 51 |
|
| 52 |
#examples p { |
| 53 |
line-height: 1.2; |
| 54 |
} |
| 55 |
|
| 56 |
#examples a { |
| 57 |
word-wrap: break-word; |
| 58 |
} |
| 59 |
|
| 60 |
@media all and (min-width: 410px) { |
| 61 |
#examples li { |
| 62 |
width: calc(50% - 1.25rem); |
| 63 |
} |
| 64 |
#examples li li { |
| 65 |
width: 100%; |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
@media all and (min-width: 760px) { |
| 70 |
#examples li { |
| 71 |
width: calc(33% - 1.25rem); |
| 72 |
} |
| 73 |
#examples li li { |
| 74 |
width: 100%; |
| 75 |
} |
| 76 |
} |
| 77 |
</style> |
| 78 |
|
| 79 |
<script src='/restful/flasgger_static/lib/object-assign-pollyfill.js' type='text/javascript'></script> |
| 80 |
<script src='/restful/flasgger_static/lib/jquery-1.8.0.min.js' type='text/javascript'></script> |
| 81 |
<script src='/restful/flasgger_static/lib/jquery.slideto.min.js' type='text/javascript'></script> |
| 82 |
<script src='/restful/flasgger_static/lib/jquery.wiggle.min.js' type='text/javascript'></script> |
| 83 |
<script src='/restful/flasgger_static/lib/jquery.ba-bbq.min.js' type='text/javascript'></script> |
| 84 |
<script src='/restful/flasgger_static/lib/handlebars-4.0.5.js' type='text/javascript'></script> |
| 85 |
<script src='/restful/flasgger_static/lib/lodash.min.js' type='text/javascript'></script> |
| 86 |
<script src='/restful/flasgger_static/lib/backbone-min.js' type='text/javascript'></script> |
| 87 |
<script src='/restful/flasgger_static/swagger-ui.js' type='text/javascript'></script> |
| 88 |
<script src='/restful/flasgger_static/lib/highlight.9.1.0.pack.js' type='text/javascript'></script> |
| 89 |
<script src='/restful/flasgger_static/lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script> |
| 90 |
<script src='/restful/flasgger_static/lib/jsoneditor.min.js' type='text/javascript'></script> |
| 91 |
<script src='/restful/flasgger_static/lib/marked.js' type='text/javascript'></script> |
| 92 |
<script src='/restful/flasgger_static/lib/swagger-oauth.js' type='text/javascript'></script> |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
</head> |
| 99 |
|
| 100 |
<body class="swagger-section"> |
| 101 |
<div id='header'> |
| 102 |
<div class="swagger-ui-wrap"> |
| 103 |
<a id="logo" href="/"><img class="logo__img" alt="swagger" height="30" width="30" src="/restful/flasgger_static/images/logo_small.png" /><span class="logo__title">Flasgger</span></a> |
| 104 |
</div> |
| 105 |
</div> |
| 106 |
|
| 107 |
<div id="message-bar" class="swagger-ui-wrap" data-sw-translate> |
| 108 |
<h1>Flasgger {{version}} demo apps</h1> |
| 109 |
<a target="_blank" href="http://github.com/rochacbruno/flasgger">Get flasgger</a> |
| 110 |
</div> |
| 111 |
<div id="swagger-ui-container" class="swagger-ui-wrap"> |
| 112 |
|
| 113 |
<ul id="examples"> |
| 114 |
{% for example, mod in examples.items() %} |
| 115 |
<li> |
| 116 |
<h2>{{example}}</h2> |
| 117 |
<p>{{mod.__doc__}}</p> |
| 118 |
<ol> |
| 119 |
<li>Live demo: <a href="{{example}}/apidocs">{{example}}</a></li> |
| 120 |
<li>Json output: <a href="{{example}}/apidocs/?json=true">{{example}}/?json=true</a></li> |
| 121 |
<li>Code: <a target="_blank" href="https://github.com/rochacbruno/flasgger/blob/master/examples/{{example}}.py">examples{{example}}.py</a></li> |
| 122 |
</ol> |
| 123 |
</li> |
| 124 |
{% endfor %} |
| 125 |
</ul> |
| 126 |
|
| 127 |
</div> |
| 128 |
<div class="swagger-ui-wrap footer"> |
| 129 |
<small style="font-size: 60%; color: #ccc;"> |
| 130 |
[Powered by <a href="https://github.com/rochacbruno/flasgger">Flasgger</a>] |
| 131 |
</small> |
| 132 |
</div> |
| 133 |
</body> |
| 134 |
</html> |