Skip to content
Permalink
Browse files
AMBARI-23677. ADDENDUM - Update Swagger UI versions.
  • Loading branch information
oleewere committed Apr 25, 2018
1 parent f03c66c commit aadd19855962f7905570d33437caa774d87d57ce
Showing 1 changed file with 48 additions and 43 deletions.
@@ -1,41 +1,35 @@
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta charset="UTF-8">
<title>Infra Manager REST API</title>
<link rel="icon" type="image/png" href="swagger-ui/2.1.0/images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="swagger-ui/2.1.0/images/favicon-16x16.png" sizes="16x16" />
<link href='swagger-ui/2.1.0/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.1.0/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.1.0/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.1.0/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.1.0/css/print.css' media='print' rel='stylesheet' type='text/css'/>
<script src='swagger-ui/2.1.0/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/jquery.slideto.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/jquery.wiggle.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/handlebars-2.0.0.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/underscore-min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/backbone-min.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/swagger-ui.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/highlight.7.3.pack.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/marked.js' type='text/javascript'></script>
<script src='swagger-ui/2.1.0/lib/swagger-oauth.js' type='text/javascript'></script>
<link rel="icon" type="image/png" href="swagger-ui/2.2.2/images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="swagger-ui/2.2.2/images/favicon-16x16.png" sizes="16x16" />
<link href='swagger-ui/2.2.2/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.2.2/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.2.2/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.2.2/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
<link href='swagger-ui/2.2.2/css/print.css' media='print' rel='stylesheet' type='text/css'/>

<script src='swagger-ui/2.2.2/lib/object-assign-pollyfill.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/jquery.slideto.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/jquery.wiggle.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/handlebars-4.0.5.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/lodash.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/backbone-min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/swagger-ui.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/jsoneditor.min.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/marked.js' type='text/javascript'></script>
<script src='swagger-ui/2.2.2/lib/swagger-oauth.js' type='text/javascript'></script>

<!-- Some basic translations -->
<!-- <script src='lang/translator.js' type='text/javascript'></script> -->
<!-- <script src='lang/ru.js' type='text/javascript'></script> -->
<!-- <script src='lang/en.js' type='text/javascript'></script> -->

<script type="text/javascript">
$(function () {
@@ -46,6 +40,15 @@
var urlPrefix = location.protocol +'//'+ location.hostname+(location.port ? ':'+location.port: '');
url = urlPrefix + "/api/v1/swagger.yaml";
}

hljs.configure({
highlightSizeThreshold: 5000
});

// Pre load translate...
if(window.SwaggerTranslator) {
window.SwaggerTranslator.translate();
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
@@ -54,22 +57,24 @@
if(typeof initOAuth == "function") {
initOAuth({
clientId: "your-client-id",
clientSecret: "your-client-secret-if-required",
realm: "your-realms",
appName: "your-app-name"
appName: "your-app-name",
scopeSeparator: " ",
additionalQueryStringParams: {}
});
}

$('pre code').each(function(i, e) {
hljs.highlightBlock(e)
});

addApiKeyAuthorization();
if(window.SwaggerTranslator) {
window.SwaggerTranslator.translate();
}
},
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
apisSorter: "alpha",
jsonEditor: false,
defaultModelRendering: 'schema',
showRequestHeaders: false
});

@@ -109,7 +114,7 @@
</div>
</div>

<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
<div id="message-bar" class="swagger-ui-wrap" data-sw-translate>&nbsp;</div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>
</html>

0 comments on commit aadd198

Please sign in to comment.