Request specs

A request spec is an extension of a url pattern to specify the method and how to construct the body of a request. See the main Url patterns page to understand more about the context in which this might be used.

[ <method> [ <body source path> ] ] <url pattern>

Usually if the method is omitted, the method is the same as that in the original request. The body source path is the property path on the associated data object (usually the originally posted data) which is used for the JSON body of this request. Here the special property path $this means use the whole data object. For example:

POST attachmentData /email/$>1

which means do a post to /email/<second element in service path> sending the .attachmentData property of the original request body as the request body of this request.