Browse Source

uncomment swagger-oauth and add script

bubble
Josh Ponelat 9 years ago
parent
commit
ec86ee2df9
4 changed files with 4 additions and 6 deletions
  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 View File

@@ -19,6 +19,7 @@
<script src='swagger-ui.js' type='text/javascript'></script> <script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.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/marked.js' type='text/javascript'></script>
<script src='lib/swagger-oauth.js' type='text/javascript'></script>


<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
@@ -34,13 +35,11 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'], supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){ onComplete: function(swaggerApi, swaggerUi){
if(typeof initOAuth == "function") { if(typeof initOAuth == "function") {
/*
initOAuth({ initOAuth({
clientId: "your-client-id", clientId: "your-client-id",
realm: "your-realms", realm: "your-realms",
appName: "your-app-name" appName: "your-app-name"
}); });
*/
} }


$('pre code').each(function(i, e) { $('pre code').each(function(i, e) {


+ 1
- 1
dist/lib/swagger-oauth.js View File

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

+ 1
- 1
lib/swagger-oauth.js View File

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

+ 1
- 2
src/main/html/index.html View File

@@ -19,6 +19,7 @@
<script src='swagger-ui.js' type='text/javascript'></script> <script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.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/marked.js' type='text/javascript'></script>
<script src='lib/swagger-oauth.js' type='text/javascript'></script>


<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
@@ -34,13 +35,11 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'], supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){ onComplete: function(swaggerApi, swaggerUi){
if(typeof initOAuth == "function") { if(typeof initOAuth == "function") {
/*
initOAuth({ initOAuth({
clientId: "your-client-id", clientId: "your-client-id",
realm: "your-realms", realm: "your-realms",
appName: "your-app-name" appName: "your-app-name"
}); });
*/
} }


$('pre code').each(function(i, e) { $('pre code').each(function(i, e) {


Loading…
Cancel
Save