This is the standard api-caller interface for talking to json apis with pe-style errors
This is the standard api-caller interface for talking to json apis with pe-style errors
(api-caller client base-url method path)
(api-caller client base-url method path opts)
Given a client, base-url, method, path and optionally opts makes a request to base-url+path using the client standardizing errors into a standard format.
Throws slingshot maps of the format {:kind :msg :exception :details}
Given a client, base-url, method, path and optionally opts makes a request to base-url+path using the client standardizing errors into a standard format. Throws slingshot maps of the format {:kind :msg :exception :details}
(http-error-selector error)
Use this with slingshot to catch all errors orginating in the client
Use this with slingshot to catch all errors orginating in the client
(http-error? response)
Given a response map from the RBAC HTTP API, checks to see if it is a 4xx or 5xx.
Given a response map from the RBAC HTTP API, checks to see if it is a 4xx or 5xx.
(json-api-caller client base-url method path)
(json-api-caller client base-url method path opts)
Wraps api caller but will convert the body of the request/response to/from json. Adds appropriate content type headers.
Wraps api caller but will convert the body of the request/response to/from json. Adds appropriate content type headers.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close