Переглянути джерело

uncomment swagger-oauth and add script

bubble
Josh Ponelat 9 роки тому
джерело
коміт
ec86ee2df9
4 змінених файлів з 4 додано та 6 видалено
  1. +1
    -2
      dist/index.html
  2. +1
    -1
      dist/lib/swagger-oauth.js
  3. +1
    -1
      lib/swagger-oauth.js
  4. +1
    -2
      src/main/html/index.html

+ 1
- 2
dist/index.html Переглянути файл

@@ -19,6 +19,7 @@
<script src='swagger-ui.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 type="text/javascript">
$(function () {
@@ -34,13 +35,11 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
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) {


+ 1
- 1
dist/lib/swagger-oauth.js Переглянути файл

@@ -281,4 +281,4 @@ window.onOAuthComplete = function onOAuthComplete(token) {
}
}
}
}
}

+ 1
- 1
lib/swagger-oauth.js Переглянути файл

@@ -281,4 +281,4 @@ window.onOAuthComplete = function onOAuthComplete(token) {
}
}
}
}
}

+ 1
- 2
src/main/html/index.html Переглянути файл

@@ -19,6 +19,7 @@
<script src='swagger-ui.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 type="text/javascript">
$(function () {
@@ -34,13 +35,11 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
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) {


Завантаження…
Відмінити
Зберегти