mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Update examples
This commit is contained in:
parent
abfe810700
commit
2fc893bf6f
1 changed files with 8 additions and 10 deletions
|
|
@ -15,19 +15,17 @@
|
|||
| :config | parameters passed to swaggger-ui as-is.
|
||||
|
||||
See https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
|
||||
for all available :config options
|
||||
for all available :config options.
|
||||
|
||||
Examples:
|
||||
```
|
||||
(swagger-ui/create-swagger-ui-handler)
|
||||
|
||||
;; with defaults
|
||||
(create-swagger-ui-handler)
|
||||
|
||||
;; with path and url set, swagger validator disabled, jsonEditor enabled
|
||||
(swagger-ui/create-swagger-ui-handler
|
||||
{:path \"/\"
|
||||
{:path \"/swagger-ui\"
|
||||
:url \"/api/swagger.json\"
|
||||
:config {:validatorUrl nil
|
||||
:jsonEditor true})"
|
||||
:config {:validatorUrl nil}})
|
||||
```"
|
||||
([]
|
||||
(create-swagger-ui-handler nil))
|
||||
([options]
|
||||
|
|
|
|||
Loading…
Reference in a new issue