For this example:
module namespace page = 'http://basex.org/examples/web-page';
declare %rest:path("hello/{$who}") %rest:GET function page:hello($who) { <response> <title>Hello { $who }!</title> </response>
};
https://docs.basex.org/wiki/RESTXQ
where/how is this function stored or saved?
thanks,
Nick
Hi Nicholas,
A good start is to:
1. download the full distribution of BaseX 2. run basexhttp, 3. visit http://localhost:8984, 4. open the BaseX GUI and look at the files in the webapp directory.
You can modify some of these files and see what your browser does.
Cheers, Christian
On Tue, Nov 17, 2020 at 9:36 PM Nicholas saunders.nicholas@gmail.com wrote:
For this example:
module namespace page = 'http://basex.org/examples/web-page';
declare %rest:path("hello/{$who}") %rest:GET function page:hello($who) {
<response> <title>Hello { $who }!</title> </response>
};
https://docs.basex.org/wiki/RESTXQ
where/how is this function stored or saved?
thanks,
Nick
Hi Christian,
Ah, it's step #3 where I seem to run into a roadblock. I'll look into that more closely.
thanks,
Nick
On 11/19/20 1:49 AM, Christian Grün wrote:
Hi Nicholas,
A good start is to:
- download the full distribution of BaseX
- run basexhttp,
- visit http://localhost:8984,
- open the BaseX GUI and look at the files in the webapp directory.
You can modify some of these files and see what your browser does.
Cheers, Christian
On Tue, Nov 17, 2020 at 9:36 PM Nicholas saunders.nicholas@gmail.com wrote:
For this example:
module namespace page = 'http://basex.org/examples/web-page';
declare %rest:path("hello/{$who}") %rest:GET function page:hello($who) { <response> <title>Hello { $who }!</title> </response>
};
https://docs.basex.org/wiki/RESTXQ
where/how is this function stored or saved?
thanks,
Nick
basex-talk@mailman.uni-konstanz.de