[Apiman-user] Swagger documentation not rendered for service
Eric Wittmann
eric.wittmann at redhat.com
Sat Nov 28 18:43:35 EST 2015
Awesome! :)
On 11/27/2015 9:11 AM, Ton Swieb wrote:
> Hi,
>
> I totally missed https://issues.jboss.org/browse/APIMAN-691when looking
> at the release notes of 1.1.9.Final.
> Upgrading to 1.1.9.Final fixed my problem.
>
> Regards,
>
> Ton
>
>
> 2015-11-27 14:41 GMT+01:00 Ton Swieb <ton at finalist.nl
> <mailto:ton at finalist.nl>>:
>
> Hi,
>
> I added a Swagger definition to my service definition, but for some
> reason it will not render it. I am using Apiman 1.1.8.Final
>
> I have a service endpoint like:
> https://192.168.99.100:8443/apiman-gateway/Organization/Service/1.0
>
> I am able to directly download the Swagger JSON definition using the
> URL:
> http://192.168.99.100:8080/apiman/organizations/Organization/services/Service/versions/1.0/definition/
>
> But on the page:
> http://192.168.99.100:8080/apimanui/api-manager/browse/orgs/Organization/Service/1.0/def
> the Swagger definition is not rendered.
>
> It shows the following message:
>
> Inline afbeelding 1
>
>
> The server logging does not show any errors, but the browser log
> does show some errors.
>
> Is this a known bug or am I doing something wrong? It looks like it
> cannot load some required Javascript libraries.
>
> apiman [2:34:56 PM]>> |ConsumerServiceDef| >> Loading page.
> apiman-manager.js:1172:21
> apiman [2:34:56 PM]>> |{0}| >> Using cached current user from
> $rootScope. apiman-manager.js:1172:21
> apiman [2:34:56 PM]>> Current user is admin. apiman-manager.js:1172:21
> apiman [2:34:56 PM]>> |ConsumerServiceDef| >> Binding currentUser
> to $scope. apiman-manager.js:1175:21
> apiman [2:34:56 PM]>> |ConsumerServiceDef| >> Binding version to
> $scope. apiman-manager.js:1175:21
> "apiman [2:34:56 PM]>> !!!!! Using definition URL:
> http://192.168.99.100:8080/apiman/organizations/Organization/services/Service/versions/1.0/definition"
> apiman-manager.js:1175:21
> window.ApiKeyAuthorization is deprecated. Please use
> SwaggerClient.ApiKeyAuthorization. swagger-ui.js:251:7
> Using window.authorizations is deprecated. Please use
> SwaggerUi.api.clientAuthorizations.add(). swagger-ui.js:251:7
> Error: window.swaggerUi is not defined
> window.authorizations.add at http://192.168.99.100:8080/apimanui/libs/swagger-ui/dist/swagger-ui.js?cid=2015-09-10_15:24:230:1
> Apiman.ConsumerSvcDefController</<@http://192.168.99.100:8080/apimanui/dist/apiman-manager.js?cid=2015-09-10_15:24:2252:1
> ApimanPageLifecycle.PageLifecycle</<.loadPage/<@http://192.168.99.100:8080/apimanui/dist/apiman-manager.js?cid=2015-09-10_15:24:1123:29
> processQueue at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:13300:27
> scheduleProcessQueue/<@http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:13316:27
> $RootScopeProvider/this.$get</Scope.prototype.$eval at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:14552:16
> $RootScopeProvider/this.$get</Scope.prototype.$digest at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:14368:15
> $RootScopeProvider/this.$get</Scope.prototype.$apply at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:14657:13
> done at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:9734:36
> completeRequest at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:9924:7
> requestLoaded at http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:9865:1
> angular.js:11707:18
>
> Regards,
>
> Ton
>
>
>
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>
More information about the Apiman-user
mailing list