[Apiman-user] Swagger documentation not rendered for service

Ton Swieb ton at finalist.nl
Fri Nov 27 09:11:02 EST 2015


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>:

> 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:
>
> [image: 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@
> 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@
> 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@
> 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@
> 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@
> http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:14657:13
> done@
> http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:9734:36
> completeRequest@
> http://192.168.99.100:8080/apimanui/libs/angular/angular.js?cid=2015-09-10_15:24:9924:7
> requestLoaded@
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20151127/695f20d0/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 48017 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/apiman-user/attachments/20151127/695f20d0/attachment-0001.png 


More information about the Apiman-user mailing list