Hi
I've pulled the latest Swagger-UI, dated Feb 19, 2018. I want to use the 
'urls:' and 'urls.primaryName' configuration option. After building with 
docker and loading the page into the browser I get an error 'Could not find 
component Topbar'. I'm trying to have my Swagger UI be able to offer 
multiple APIs. The only thing I've changed is the dist/index.html as seen 
below. I thought that Topbar should be enabled and loaded automatically,  
How do I get past this error?
Thanks
Bob

> git diff dist/index.html
diff --git a/dist/index.html b/dist/index.html
index 0de47c6..0ac200c 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -74,7 +74,12 @@ window.onload = function() {
   
   // Build a system
   const ui = SwaggerUIBundle({
-    url: "http://petstore.swagger.io/v2/swagger.json";,
+       //url: "http://localhost:8080/api/rest";,
+    urls: [ 
+               { url: "http://petstore.swagger.io/v2/swagger.json";, name: 
"pets" },
+               { url: "http://localhost:8080/api/rest";, name: "myapi" }
+    ],
+    "urls.primaryName": "pets",
     dom_id: '#swagger-ui',
     deepLinking: true,
     presets: [

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Title: Swagger UI

Reply via email to