(->reitit spec)
Adapts given moclojer endpoints to reitit's data based routes, while parsing request data types throughout the way.
Adapts given moclojer endpoints to reitit's data based routes, while parsing request data types throughout the way.
(build-body response request)
Builds the body from the response.
Builds the body from the response.
(enrich-external-body external-body request)
Enriches the external body with a resolved path.
Enriches the external body with a resolved path.
(generate-method method)
Adapts given method
to a normalized string version of itself.
Adapts given `method` to a normalized string version of itself.
(generic-reitit-handler response webhook-config)
Builds a reitit handler that responds with pre-defined response
.
Since we also support webhooks
, given webhook-config
is used
when necessary in together with the response
.
Builds a reitit handler that responds with pre-defined `response`. Since we also support `webhooks`, given `webhook-config` is used when necessary in together with the `response`.
(make-path-parameters path & [gen?])
Based on path
's declared type, provides a placeholder that can be
used later on by reitit to understand the param's data type.
Based on `path`'s declared type, provides a placeholder that can be used later on by reitit to understand the param's data type.
(mock-response-body-request ?body parameters)
Given a body
, generates a request based on the used variables.
Given a `body`, generates a request based on the used variables.
(render-template template request)
Renders given template
, using request
's data.
Renders given `template`, using `request`'s data.
(webhook-condition condition request)
Checks if
condition and return boolean value, default is true
Checks `if` condition and return boolean value, default is true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close