(entity-creator saver id-generator)
Request handler to create a new entity
Request handler to create a new entity
(entity-deleter get-id deleter)
Request handler to delete an entity
Request handler to delete an entity
(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
(entity-updater get-id getter saver)
Request handler to update and existing entity
Request handler to update and existing entity
(from-rt req f)
Applies f
to the request runtime
Applies `f` to the request runtime
(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.
(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.
Muuntaja decoder used to parse response bodies
Muuntaja decoder used to parse response bodies
(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
(make-muuntaja)
Creates muuntaja instance with custom settings
Creates muuntaja instance with custom settings
(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.
(req->rt req)
Gets the runtime from the request
Gets the runtime from the request
(req->storage req)
Retrieves storage object from the request context
Retrieves storage object from the request context
(run-build-async rt build)
Starts the build in a new thread
Starts the build in a new thread
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close