OpenWGA 7.11 - TMLScript reference


Object:

RESTEntry

Description An object representing a either a REST API resource or a reference on a collection
Retrieval This object is passed to custom REST collection and resource enhancers as parameter. It provides methods to add custom fields to this entry for output via REST.
Properties and methods
Name Purpose
addItem(name, value) Adds an item to the entry
addMetaData(name, value) Adds a metadata field to the entry
addRelation(name, uri) Adds a relation to the entry