(create-api-call [name {:keys [:description :path] :as api-def}])
Creates an API function based on an EDN API definition.
Creates an API function based on an EDN API definition.
(implement-api api-description)
Given an EDN API definition generates functions which receive http method, parameters and other custom data and return an EDN request, which in turn can be used to invoke an endpoint.
Given an EDN API definition generates functions which receive http method, parameters and other custom data and return an EDN request, which in turn can be used to invoke an endpoint.
(path->fn-args path)
Converts the path provided to a destructuring map. Each keyword is considered a parameter. Example: ["connections" :id] -> {id :id :as params}
Converts the path provided to a destructuring map. Each keyword is considered a parameter. Example: ["connections" :id] -> {id :id :as params}
(runtime-path path params)
Matches params keys provided with their actual values at runtime.
Matches params keys provided with their actual values at runtime.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close