API for caribou.api.core - Caribou API


Full namespace name: caribou.api.core

Overview





Public Variables and Functions



action

macro
Usage: (action slug path-args expr)
Define an API action with the given slug and path.


ensure-lists-in

function
Usage: (ensure-lists-in params)
flatten nested params into lists


ensure-seq

function
Usage: (ensure-seq col)
if given a map, convert to a seq containing only its values.
otherwise, leave it alone


init

function
Usage: (init)
Initialize the API.


prep-xml

function
Usage: (prep-xml bulk)
Convert everything into XML.


prep-xml-item

function
Usage: (prep-xml-item bulk)
Convert something into XML.


render

function
Usage: (render slug content opts)
Prepare all various fields types for output as text.


render-field

function
Usage: (render-field slug content field opts)
Render a single content field to text, given the field type.


to-csv

function
Usage: (to-csv headings bulk)
Convert a bunch of data to CSV.


to-csv-column

function
Usage: (to-csv-column bulk key)
Translate a list into something that can inhabit a single csv row.


upload

function
Usage: (upload params)
Handle a file upload over xdm.


wrap-jsonp

function
Usage: (wrap-jsonp callback result)
Turn a callback name and a result into a jsonp response.


wrap-response

function
Usage: (wrap-response response meta)
Form a response from raw stuff.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.