CrossClj

0.26.1 docs

SourceDocs



RECENT
    VARS
    conf-js
    config-json
    get-path
    json-key
    serve
    swagger-ui
    wrap-swagger-ui

    « Index of all namespaces of this project

    (conf-js req opts)
    (config-json req opts)
    (get-path root uri)
    Private
    (json-key k)
    Private
    (serve {:keys [path root], :or {path "/", root "swagger-ui"}, :as options})
    (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.
    (wrap-swagger-ui handler)(wrap-swagger-ui handler options)
    Middleware to serve the swagger-ui.