Skip to main content
100%

Hello { $who }!

✓ Published0🌍 Public
CCliffordAnderson
Last edited Nov 10, 2017
Created on Nov 10, 2017

This example demonstrates a minimal RESTXQ service that responds to an HTTP GET request with a personalized XML greeting. It defines a single endpoint that captures a URL path segment as the `$who` variable and returns a `<response>` element containing a `<title>` with the greeting text. The code uses the `rest:path` and `rest:GET` annotations from the BaseX RESTXQ API to bind the route, and it is written in XQuery 3.1 within a module namespace. No additional visualization or rendering libraries are involved; the output is plain XML data.

AI-generated description

Similar vizzes