Liking cljdoc? Tell your friends :D

ring.swagger.swagger-ui


conf-jsclj

(conf-js req opts)
source

config-jsonclj

(config-json req opts)
source

get-pathclj

(get-path root uri)
source

swagger-uiclj

(swagger-ui)
(swagger-ui options)

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.
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.
sourceraw docstring

wrap-swagger-uiclj

(wrap-swagger-ui handler)
(wrap-swagger-ui handler options)

Middleware to serve the swagger-ui.

Middleware to serve the swagger-ui.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close