(invoke {:keys [parsed-api command-defs servers] :as client}
command
{:keys [input server headers as]
:or {input nil server (:url (first servers)) headers {} as :json}
: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 headers to be sent |
:as | The format for content negotation; accepts edn or json ; default: json |
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 headers to be sent | `:as` | The format for content negotation; accepts `edn` or `json`; default: `json`
(make-client api-def)
Create a blueprint client from a blueprint api definition.
Create a blueprint client from a blueprint api definition.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close