Liking cljdoc? Tell your friends :D

pedestal-api.core


annotateclj

(annotate doc obj)

Inputs: [doc :- spec/Operation obj]

Attaches swagger documentation to an object

Inputs: [doc :- spec/Operation obj]

Attaches swagger documentation to an object
sourceraw docstring

body-paramsclj

(body-params & args)
source

coerce-requestclj

(coerce-request)
(coerce-request f)

Creates an interceptor that coerces the params for the selected route, according to the route's swagger documentation. A coercion function f that acceps the route params schema and a request and return a request can be supplied. The default implementation throws if any coercion error occurs.

Creates an interceptor that coerces the params for the selected route,
according to the route's swagger documentation. A coercion function f that
acceps the route params schema and a request and return a request can be
supplied. The default implementation throws if any coercion error occurs.
sourceraw docstring

common-bodyclj

source

defroutescljmacro

(defroutes n doc routes)
source

docclj

(doc m)

Adds metatata m to a swagger route

Adds metatata m to a swagger route
sourceraw docstring

error-responsesclj

source

make-swagger-uiclj

(make-swagger-ui & opts)
source

negotiate-responseclj

(negotiate-response)
(negotiate-response serialisation-interceptors)
(negotiate-response serialisation-interceptors default-serialiser)
source

swagger-jsonclj

source

swagger-uiclj

source

validate-responseclj

(validate-response)
(validate-response f)

Creates an interceptor that validates the response for the selected route, according to the route's swagger documentation. A validation function f that accepts the route response schema and a response and return a response can be supplied. The default implementation throws if a validation error occours.

Creates an interceptor that validates the response for the selected route,
according to the route's swagger documentation. A validation function f that
accepts the route response schema and a response and return a response can be
supplied. The default implementation throws if a validation error occours.
sourceraw docstring

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

× close