Compojure-api Api Documentation

Version: 2.0.0-alpha28

compojure.api.core

ANY

macro

(ANY & args)

context

macro

(context & args)

defroutes

macro

(defroutes name & routes)

Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map.

DELETE

macro

(DELETE & args)

GET

macro

(GET & args)

HEAD

macro

(HEAD & args)

let-routes

macro

(let-routes bindings & body)

Takes a vector of bindings and a body of routes.

Equivalent to: (let [...] (routes ...))

OPTIONS

macro

(OPTIONS & args)

PATCH

macro

(PATCH & args)

POST

macro

(POST & args)

PUT

macro

(PUT & args)

ring-handler

(ring-handler handler)

Creates vanilla ring-handler from any invokable thing (e.g. compojure-api route)

route-middleware

(route-middleware middleware & body)

Wraps routes with given middlewares using thread-first macro.

routes

(routes & handlers)

Create a Ring handler by combining several handlers into one.

undocumented

(undocumented & handlers)

Routes without route-documentation. Can be used to wrap routes, not satisfying compojure.api.routes/Routing -protocol.