(defservice service-name api-file)
Define service's functions.
Given a service name and a file containing API specs, generates functions corresponding to all of the
service's operations.
E.g, for AWS.S3
:
(defservice "S3" "s3-2006-03-01.min.json")
Generates functions like:
(list-buckets params)
(put-object params)
; ...
These functions all take a map as params and return an async channel, into which the result is put, if successful.
In case of error, a {:error "message"}
map is put, instead.
Define service's functions. Given a service name and a file containing API specs, generates functions corresponding to all of the service's operations. E.g, for `AWS.S3`: ``` (defservice "S3" "s3-2006-03-01.min.json") ``` Generates functions like: ``` (list-buckets params) (put-object params) ; ... ``` These functions all take a map as params and return an async channel, into which the result is put, if successful. In case of error, a `{:error "message"}` map is put, instead.
(service-operations service-name api-file)
List a given service's operations.
Given a service name corresponding to the name of the property of AWS
and a file containing API specs,
returns a list of operations.
E.g, for AWS.CodeCommit
:
(service-operations "CodeCommit" "codecommit-2015-04-13.min.json")
List a given service's operations. Given a service name corresponding to the name of the property of `AWS` and a file containing API specs, returns a list of operations. E.g, for `AWS.CodeCommit`: ``` (service-operations "CodeCommit" "codecommit-2015-04-13.min.json") ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close