Passer au contenu principal

template@1.7.7

Functions

execute(operations)Operation

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

create(path, params, callback)Operation

Creates a fictional resource in a fictional destination system using a POST request

createPatient(params, callback)Operation

Create a fictional patient in a fictional universe with a fictional REST api

execute(operations) ⇒ Operation

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

Kind: global function

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

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

create(path, params, callback) ⇒ Operation

Creates a fictional resource in a fictional destination system using a POST request

Kind: global function
Access: public

ParamTypeDescription
pathstringPath to resource
paramsobjectdata to create the new resource
callbackfunction(Optional) callback function

Example

create("/endpoint", {"foo": "bar"})

createPatient(params, callback) ⇒ Operation

Create a fictional patient in a fictional universe with a fictional REST api

Kind: global function
Access: public

ParamTypeDescription
paramsobjectdata to create the new resource
callbackfunction(Optional) callback function

Example

createPatient({"foo": "bar"})