Liking cljdoc? Tell your friends :D

monkey.ci.web.common


bodyclj

Retrieves request body

Retrieves request body
sourceraw docstring

build-sidclj

source

customer-idclj

source

default-idclj

(default-id _ _)
source

default-middlewareclj

source

drop-idsclj

source

entity-creatorclj

(entity-creator saver id-generator)

Request handler to create a new entity

Request handler to create a new entity
sourceraw docstring

entity-deleterclj

(entity-deleter get-id deleter)

Request handler to delete an entity

Request handler to delete an entity
sourceraw docstring

entity-getterclj

(entity-getter get-id getter)

Creates a generic request handler to retrieve a single entity by id

Creates a generic request handler to retrieve a single entity by id
sourceraw docstring

entity-updaterclj

(entity-updater get-id getter saver)

Request handler to update and existing entity

Request handler to update and existing entity
sourceraw docstring

error-responseclj

(error-response error-msg)
(error-response error-msg status)
source

exception-middlewareclj

source

from-rtclj

(from-rt req f)

Applies f to the request runtime

Applies `f` to the request runtime
sourceraw docstring

gen-repo-display-idclj

(gen-repo-display-id st obj)

Generates id from the object name. It lists existing repository display ids and generates an id from the name. If the display id is already taken, it adds an index.

Generates id from the object name.  It lists existing repository display ids
and generates an id from the name.  If the display id is already taken, it adds
an index.
sourceraw docstring

get-for-repo-by-labelclj

(get-for-repo-by-label finder tx req)

Uses the finder to retrieve a list of entities for the repository specified by the request. Then filters them using the repo labels and their configured label filters. Applies the transducer tx before constructing the response.

Uses the finder to retrieve a list of entities for the repository specified
by the request.  Then filters them using the repo labels and their configured
label filters.  Applies the transducer `tx` before constructing the response.
sourceraw docstring

get-list-for-customerclj

(get-list-for-customer finder req)

Utility function that uses the finder to fetch a list of things from storage using the customer id from the request. Returns the result as a http response.

Utility function that uses the `finder` to fetch a list of things from storage
using the customer id from the request.  Returns the result as a http response.
sourceraw docstring

id-getterclj

(id-getter id-key)
source

m-decoderclj

Muuntaja decoder used to parse response bodies

Muuntaja decoder used to parse response bodies
sourceraw docstring

make-appclj

(make-app router)
source

make-entity-endpointsclj

(make-entity-endpoints entity
                       {:keys [get-id getter saver deleter new-id]
                        :or {new-id default-id}})

Creates default api functions for the given entity using the configuration

Creates default api functions for the given entity using the configuration
sourceraw docstring

make-muuntajaclj

(make-muuntaja)

Creates muuntaja instance with custom settings

Creates muuntaja instance with custom settings
sourceraw docstring

parse-bodyclj

(parse-body resp)

Parses response body according to content type. Throws an exception if the content type is not supported.

Parses response body according to content type.  Throws an exception if 
the content type is not supported.
sourceraw docstring

repo-sidclj

source

req->rtclj

(req->rt req)

Gets the runtime from the request

Gets the runtime from the request
sourceraw docstring

req->storageclj

(req->storage req)

Retrieves storage object from the request context

Retrieves storage object from the request context
sourceraw docstring

rt->storageclj

source

run-build-asyncclj

(run-build-async rt build)

Starts the build in a new thread

Starts the build in a new thread
sourceraw docstring

update-for-customerclj

(update-for-customer updater req)

Uses the updater to save the request body using the customer id. Returns the body with an id as a http response.

Uses the `updater` to save the request body using the customer id.  Returns the 
body with an id as a http response.
sourceraw docstring

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

× close