mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21: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.
|
| :config | parameters passed to swaggger-ui as-is.
|
||||||
|
|
||||||
See https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
|
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:
|
Examples:
|
||||||
|
```
|
||||||
|
(swagger-ui/create-swagger-ui-handler)
|
||||||
|
|
||||||
;; with defaults
|
(swagger-ui/create-swagger-ui-handler
|
||||||
(create-swagger-ui-handler)
|
{:path \"/swagger-ui\"
|
||||||
|
:url \"/api/swagger.json\"
|
||||||
;; with path and url set, swagger validator disabled, jsonEditor enabled
|
:config {:validatorUrl nil}})
|
||||||
(swagger-ui/create-swagger-ui-handler
|
```"
|
||||||
{:path \"/\"
|
|
||||||
:url \"/api/swagger.json\"
|
|
||||||
:config {:validatorUrl nil
|
|
||||||
:jsonEditor true})"
|
|
||||||
([]
|
([]
|
||||||
(create-swagger-ui-handler nil))
|
(create-swagger-ui-handler nil))
|
||||||
([options]
|
([options]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue