diff --git a/dist/swagger-initializer.js b/dist/swagger-initializer.js index 8ea0ea3afc3..086fe3705cd 100644 --- a/dist/swagger-initializer.js +++ b/dist/swagger-initializer.js @@ -3,7 +3,8 @@ window.onload = function() { // the following lines will be replaced by docker/configurator, when it runs in a docker-container window.ui = SwaggerUIBundle({ - url: "https://petstore.swagger.io/v2/swagger.json", + // url: "https://petstore.swagger.io/v2/swagger.json", + url: "./openapi.yaml", // 👈 Replace with your local YAML/JSON spec path dom_id: '#swagger-ui', deepLinking: true, presets: [ diff --git a/docs/samples/webpack-getting-started/src/swagger-config.yaml b/docs/samples/webpack-getting-started/src/swagger-config.yaml index 5496a6026c1..7210aa463bf 100644 --- a/docs/samples/webpack-getting-started/src/swagger-config.yaml +++ b/docs/samples/webpack-getting-started/src/swagger-config.yaml @@ -28,3 +28,18 @@ paths: description: "Unauthorized" 200: description: "OK" + +tags: + - name: "pet-list" + description: "Everything about your Pets" + +paths: + /pet: + get: + tags: + - "pet-list" + summary: "Returns all pets" + responses: + "200": + description: OK +