Global

Methods


<async> createObj(objs)

Create objects in the mediumroast.io application

Parameters:
Name Type Description
objs Array

the objects to create in the backend

Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> deleteObj(id, endpoint)

Delete an object in the mediumroast.io application

Parameters:
Name Type Description
id String

the object to be deleted in the mediumroast.io application

endpoint String

defaults to findbyx and is combined with credential and version info

Source:
To Do:
  • implment when available in the backend
Returns:

the results from the called function mrRest class

Type
Array

<async> findById(id, endpoint)

Find all objects by id from the mediumroast.io application

Parameters:
Name Type Description
id String

the id of the object to find

endpoint String

defaults to findbyx and is combined with credential and version info

Deprecated:
  • Yes
Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> findByName(name)

Find all objects by name from the mediumroast.io application

Parameters:
Name Type Description
name String

the name of the object to find

Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> findByX(attribute, value)

Find all objects by attribute and value pair from the mediumroast.io application

Parameters:
Name Type Description
attribute String

the attribute used to find objects

value String

the value for the defined attribute

Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> getAll()

Get all objects from the mediumroast.io application

Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> linkObj(objs)

Link objects in the mediumroast.io application

Parameters:
Name Type Description
objs Array

the objects to link in the backend

Source:
Returns:

the results from the called function mrRest class

Type
Array

<async> updateObj(obj, endpoint)

Update an object in the mediumroast.io application

Parameters:
Name Type Description
obj Object

the object to update in the backend which includes the id and, the attribute and value to be updated

endpoint String

defaults to findbyx and is combined with credential and version info

Source:
Returns:

the results from the called function mrRest class

Type
Array