Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dist/swagger-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
15 changes: 15 additions & 0 deletions docs/samples/webpack-getting-started/src/swagger-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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