Hi Ben,

Make sure to first read my previous mail, because you need a working 
restxq-Setup ;-)

Theres the „rest:wadl()“ function, that generates a representation of all 
available endpoints.

I added it to my example project, feel free to check it out here:
> https://git.basex.io/basex-public/mailinglist-autocomplete/-/commit/84fda246ca3d1dfe7319ff4a401aa1504feee48a

The result will look something like this: 
[…]
        <wadl:resource path="/search/{$what}">
            <wadl:param name="what" style="template"/>
            <wadl:method name="GET">
                <wadl:request/>
                <wadl:response>
                    <wadl:representation mediaType="application/json"/>
                </wadl:response>
            </wadl:method>
        </wadl:resource>
[…]

Hope this helps :-)

Michael 


> Am 13.07.2020 um 00:31 schrieb Ben Pracht <ben.pra...@gmail.com>:
> 
> 
> 
> In my case, I put the hello-world service in the main project directory, in 
> the modules directory where the RESTXQPATH and in the RESTPATH.  I've tried 
> renaming the hello-world to .xq, .xqm and .xqy.  In all cases, it does not 
> find the .xq file.  
> 
> Best Regards,
> Ben Pracht
> 919.809.2439

Reply via email to