Changes

Jump to navigation Jump to search
No change in size ,  20:46, 24 February 2015
===Paths===
A resource function must have a single ''Path Annotation'' with a single string as argument. The function will be called if a URL matches the path segments and templates of the argument. ''Path templates'' contain variables in curly brackets, and map the corresponding segments of the request path to the arguments of the resource function. The first slash in the path is optional;.
The following example contains a path annotation with three segments and two templates. One of the function arguments is further specified with a data type, which means that the value for <code>$variable</code> will be cast to an <code>xs:integer</code> before being bound:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu