Skip to content

Commit f9a2ab3

Browse files
Added an example on how to launch swagger ui
Added a useful dev example for opening Swagger UI
1 parent a9d0b56 commit f9a2ab3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

debugger-launchjson.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ If you want to use the port number from the console output, but not the host nam
101101
}
102102
```
103103

104+
In fact, you can open almost any url, for example you could open the default swagger ui by doing something like this:
105+
106+
```json
107+
"serverReadyAction": {
108+
"action": "openExternally",
109+
"pattern": "\\bNow listening on:\\s+http://\\S+:([0-9]+)",
110+
"uriFormat": "http://localhost:%s/swagger/index.html"
111+
}
112+
```
113+
114+
> **Note** You need to make sure your project has swaggerui setup to do this.
115+
104116
## Environment variables
105117
Environment variables may be passed to your program using this schema:
106118

0 commit comments

Comments
 (0)