(invoke {:keys [parsed-api command-defs] :as client}
command
{:keys [input server headers as user-interceptors interceptor-chain]
:or {input nil
server (base-url parsed-api)
headers {}
as :json
interceptor-chain default-interceptor-chain}
:as opts})Invoke a command on the remote blueprint-based api.
Clients are created with (blueprint.client/make-client api-def).
Supported options in opts:
| key | description |
|---|---|
:input | The request input to be sent |
:server | The remote server endpoint (eg: "http://localhost:8080"); default is first entry from api definition |
:headers | A map of additional headers to be sent |
:as | The format for content negotation; accepts edn or json; default: json |
:user-interceptors | A map of custom user interceptors to apply on the response |
:interceptor-chain | The interceptor chain to apply; default: default-interceptor-chain |
Invoke a `command` on the remote blueprint-based api. Clients are created with `(blueprint.client/make-client api-def)`. Supported options in `opts`: | key | description | | ----------------------|-------------| | `:input` | The request input to be sent | `:server` | The remote server endpoint (eg: "http://localhost:8080"); default is first entry from api definition | `:headers` | A map of additional headers to be sent | `:as` | The format for content negotation; accepts `edn` or `json`; default: `json` | `:user-interceptors` | A map of custom user interceptors to apply on the response | `:interceptor-chain` | The interceptor chain to apply; default: `default-interceptor-chain`
(make-client api-def)(make-client api-def {:keys [ssl-context] :as default-options})Create a blueprint client from a blueprint api definition.
Create a blueprint client from a blueprint api definition.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |