Skip to content

Commit

Permalink
Merge pull request #5283 from WaywardHayward/master
Browse files Browse the repository at this point in the history
Added an example on how to launch swagger ui
  • Loading branch information
JoeRobich authored Jul 1, 2022
2 parents 1792ad5 + 3cd3862 commit 45545f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions debugger-launchjson.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ If you want to use the port number from the console output, but not the host nam
}
```

In fact, you can open almost any url, for example you could open the default swagger ui by doing something like this:

```json
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+http://\\S+:([0-9]+)",
"uriFormat": "http://localhost:%s/swagger/index.html"
}
```

> **Note** You need to make sure your project has swaggerui setup to do this.
## Environment variables
Environment variables may be passed to your program using this schema:

Expand Down

0 comments on commit 45545f0

Please sign in to comment.