Liking cljdoc? Tell your friends :D
Clojure only.

blueprint.client


invokeclj

(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:

keydescription
:inputThe request input to be sent
:serverThe remote server endpoint (eg: "http://localhost:8080"); default is first entry from api definition
:headersA map of headers to be sent
:asThe 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`
raw docstring

make-clientclj

(make-client api-def)

Create a blueprint client from a blueprint api definition.

Create a blueprint client from a blueprint api definition.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close