Error 404
✓ Published0🌍 Public
CCliffordAnderson
Last edited Mar 30, 2018
Created on Mar 30, 2018
This example demonstrates a RESTful API built with BaseX and XQuery, returning dynamic XML responses for various routes, including a custom 404 error page. It shows how URL path parameters and HTTP status codes are handled through the `%rest:path` and `%rest:GET` annotations, with a fallback error handler that issues a 404 status. The code uses the `rest` and `http` output serialization, while the model and view modules (model.xqm and view.xqm) separate data retrieval—querying ORCID person names—from presentation, rendering lists as HTML paragraphs. No client-side visualization libraries are involved; the focus is on server-side routing and structured data delivery.
AI-generated description