From 4ae16b4a526cffab83b534ec3e86eb20a35b3eab Mon Sep 17 00:00:00 2001 From: Gombos Lorand Date: Wed, 9 Sep 2015 15:59:26 +0300 Subject: [PATCH 1/4] Update routes.php --- src/Jlapp/Swaggervel/routes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Jlapp/Swaggervel/routes.php b/src/Jlapp/Swaggervel/routes.php index 5d845d2..6802c6d 100644 --- a/src/Jlapp/Swaggervel/routes.php +++ b/src/Jlapp/Swaggervel/routes.php @@ -60,6 +60,7 @@ 'clientSecret' => Input::get("client_secret"), 'realm' => Input::get("realm"), 'appName' => Input::get("appName"), + 'apiKey' => Config::get("swaggervel.api-key") ) ); From f10a3d90b668ba6a9230cb114a78eae86d6bd310 Mon Sep 17 00:00:00 2001 From: Gombos Lorand Date: Wed, 9 Sep 2015 21:01:23 +0300 Subject: [PATCH 2/4] Update index.blade.php --- src/views/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index.blade.php b/src/views/index.blade.php index 9103cc2..04a56c9 100644 --- a/src/views/index.blade.php +++ b/src/views/index.blade.php @@ -103,7 +103,7 @@ function log() { function addApiKeyAuthorization() { var key = encodeURIComponent($('#input_apiKey')[0].value); if (key && key.trim() != "") { - var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query"); + var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("{!! $apiKey !!}", key, "query"); window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth); log("added key " + key); } From 97d6c245cbee4570eedf5b167caf6c1a8e0d3229 Mon Sep 17 00:00:00 2001 From: Gombos Lorand Date: Wed, 9 Sep 2015 21:58:19 +0300 Subject: [PATCH 3/4] Update index.blade.php --- src/views/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index.blade.php b/src/views/index.blade.php index 04a56c9..803f31e 100644 --- a/src/views/index.blade.php +++ b/src/views/index.blade.php @@ -135,7 +135,7 @@ function addApiKeyAuthorization() {
-
+
From 41a6cec2f5af784d0315d4069198d8b7f1aab483 Mon Sep 17 00:00:00 2001 From: Gombos Lorand Date: Wed, 9 Sep 2015 22:03:37 +0300 Subject: [PATCH 4/4] Update index.blade.php --- src/views/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index.blade.php b/src/views/index.blade.php index 803f31e..962d651 100644 --- a/src/views/index.blade.php +++ b/src/views/index.blade.php @@ -135,7 +135,7 @@ function addApiKeyAuthorization() {
-
+