Changes

Jump to navigation Jump to search
14 bytes removed ,  23:24, 12 January 2013
===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. The so-called ''Path templates'' contain variables in curly brackets, and map the corresponding segments of the request path to the arguments of the resource function.
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