OpenWGA 7.6 - TMLScript reference


Object:

RESTContext

Description An object with context information given to REST Custom API methods
Retrieval Comes as parameter to Custom API methods
Properties and methods
Name Purpose
responseCode Determines the HTTP status code of the response of the REST request
selfUri Determines the URI to the current resource that is returned in the REST envelope as property "self".
addResponseHeader(name, value) Adds a custom HTTP header to the response of the REST request
uri Returns the URI by which the current request was called