Skip to main content

RESTful binding

Anatomy

<rest:bind var="var" method="GET" type="prepared">
string
</rest:bind>

Parents: rest:client

Description: REST:BIND defines a RESTful resource as a function that can be invoked with subsequent CALL statements.

Resource route arguments of the form ':name' are substituted with the actual corresponding parameter values when being called. All remaining parameters are treated as query arguments according to RFC 3986 and are generally passed via the URL query component except for method POST in which case they are transported as the HTTP body.

Invoked resources return an array comprised of the following items if type is specified as 'raw':

Key Description

status response status code type response content type header response header body response body

Attributes

NameTypeDescriptionDefined By
varvarFunction variable name rest:bind
methodstringMethod rest:bind
typetypeProcessing type rest:bind

Results:

BindingTypePredicate
varfunctionno-result-propagation