Skip to main content

progres@1.2.0

Adaptor

Adaptor.execute

Kind: static class of Adaptor

new exports.execute(operations)

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for http.

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.postData(params, callback) ⇒ Operation

Make a POST request with a certificate

Kind: static method of Adaptor
Access: public

ParamTypeDescription
paramsobjectUrl, Headers and Body parameters
callbackfunction(Optional) A callback function

Example

postData({
url: urlDTP,
body: obj,
headers: {
'Ocp-Apim-Subscription-Key': configuration['Ocp-Apim-Subscription-Key'],
},
agentOptions: {
key,
cert,
},
}, callback)(state)