===Paths===
A resource function must have a single ''Path Annotation''with a single string as argument. It The function will be called if a URL matches the path segments and templates specified as of the argument. The so-called ''Path templates'' contain variables in curly brackets, and map the values corresponding segments of the actual request path to the arguments of the resource function arguments.
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: