Liking cljdoc? Tell your friends :D

duckula.swagger

Provides a Ring middleware which can serve swagger.json generated from the API config as well as Swagger UI to view it. Note that we're ignoring reflection warnings as they don't matter in dev mode, and in production all schemas are (should be) parsed only once.

Provides a Ring middleware which can serve swagger.json generated from the API config
as well as Swagger UI to view it.
Note that we're ignoring reflection warnings as they don't matter in dev mode, and in production
all schemas are (should be) parsed only once.
raw docstring

build-handlerclj

(build-handler config)

Returns a Ring handler which returns auto-generated swagger json, based on the Duckula config

Returns a Ring handler which returns auto-generated
swagger json, based on the Duckula config
sourceraw docstring

config->swaggerclj

(config->swagger {:keys [name prefix endpoints] :as config})
source

endpoint->swaggerclj

(endpoint->swagger path config)
source

error-schemasclj

source

generateclj

(generate config)
source

make-definitionclj

(make-definition {:keys [avro-schema path mangle-names?]})
source

make-schema-nameclj

(make-schema-name req-schema-path)
source

swagger-json-pathclj

source

swagger-ui-handlerclj

source

ui-prefixclj

source

with-docsclj

(with-docs api-config)

Builds a Ring handler - just like reqular duckula.handler but also attaches the following routes (by default): /~docs/ui - to load the bundled Swagger UI /~docs/swagger.json - to return swagger.json built from Duckula config

Builds a Ring handler - just like reqular duckula.handler
but also attaches the following routes (by default):
/~docs/ui - to load the bundled Swagger UI
/~docs/swagger.json - to return swagger.json built from Duckula config
sourceraw docstring

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

× close