Changes

Jump to navigation Jump to search
351 bytes removed ,  20:19, 11 November 2019
| '''Examples'''
|
* The function call <code><nowiki>web:forward('/a/b')</nowiki></code> returns creates the following result (which will be interpreted as forwarding if RESTXQ is used):
<pre class="brush:xml">
<rest:forward>/a/b</rest:forward>
</pre>
* The first RESTXQ function creates an initial database, and forwards to a second function:
<pre class="brush:xquery">
declare %updating %rest:path('/app/create') function local:create() {
db:create('database'),
db:output(web:forward('/app/ok'))
};
 
declare %rest:path('/app/ok') function local:ok() {
'The operation was successful'
};
</pre>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu