(create-swagger-ui-handler)(create-swagger-ui-handler options)Creates a ring handler which can be used to serve swagger-ui.
| key | description |
|---|---|
| :parameter | optional name of the wildcard parameter, defaults to unnamed keyword : |
| :root | optional resource root, defaults to "swagger-ui" |
| :url | path to swagger endpoint, defaults to /swagger.json |
| :path | optional path to mount the handler to. Works only if mounted outside of a router. |
| :config | parameters passed to swagger-ui as-is. |
See https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md for all available :config options.
Examples:
(swagger-ui/create-swagger-ui-handler)
(swagger-ui/create-swagger-ui-handler
{:path "/swagger-ui"
:url "/api/swagger.json"
:config {:validatorUrl nil}})
Creates a ring handler which can be used to serve swagger-ui.
| key | description |
| -----------------|-------------|
| :parameter | optional name of the wildcard parameter, defaults to unnamed keyword `:`
| :root | optional resource root, defaults to `"swagger-ui"`
| :url | path to swagger endpoint, defaults to `/swagger.json`
| :path | optional path to mount the handler to. Works only if mounted outside of a router.
| :config | parameters passed to swagger-ui as-is.
See https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
for all available :config options.
Examples:
```
(swagger-ui/create-swagger-ui-handler)
(swagger-ui/create-swagger-ui-handler
{:path "/swagger-ui"
:url "/api/swagger.json"
:config {:validatorUrl nil}})
```cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |