(swagger-ui)
(swagger-ui options)
Returns a (async-)ring handler which can be used to serve swagger-ui. Takes the following options:
:client-id
, :realm
and :app-name
Returns a (async-)ring handler which can be used to serve swagger-ui. Takes the following options: - **:path** the root path for the swagger-ui, Defaults to "/" - **:root** the root prefix to get resources from. Default 'swagger-ui' - **:swagger-docs** the endpoint to get swagger data from. Default '/swagger.json' - **:oauth2** map with oauth2 params, namely `:client-id`, `:realm` and `:app-name` - Other options are passed as is to SwaggerUi constructor. Map keys are renamed to camelCase.
(wrap-swagger-ui handler)
(wrap-swagger-ui handler options)
Middleware to serve the swagger-ui.
Middleware to serve the swagger-ui.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close