sixsq.slipstream.client.api.cimi.utils

Provides utilities that support the SCRUD actions for CIMI resources. Although these functions are public, they are not part of the public API and may change without notice.

assoc-body

(assoc-body m body)

assoc-token

(assoc-token m token)

body-as-json

(body-as-json)

transducer that extracts the body of a response and parses the result as JSON

edn->json

(edn->json json)

ensure-url

(ensure-url cep url-or-id)

extract-op-url

(extract-op-url op baseURI)

Transducer that extracts the operation URL for the given operation. The return value is a possibly empty list.

get-collection-url

(get-collection-url cep collection-name)

json->edn

(json->edn s)

req-opts

(req-opts)(req-opts token)(req-opts token body)

std-opts

str->json

(str->json s)