Appendix B. REST Server Processes

As eXist’s REST Server offers a great deal of functionality from a relatively simple API, this chapter tries to illustrate the various process (decision) flows evaluated by the REST Server when you make HTTP requests of it, so that you may better understand their actions.

We also examine the optional and mandatory parameters that can be used with the REST Server to modify requests and responses.

GET Process Flow

Process flow for HTTP GET requests in the REST Server
Figure B-1. Process flow for HTTP GET requests in the REST Server

HEAD Process Flow

Process flow for HTTP HEAD requests in the REST Server
Figure B-2. Process flow for HTTP HEAD requests in the REST Server

PUT Process Flow

Process flow for HTTP PUT requests in the REST Server
Figure B-3. Process flow for HTTP PUT requests in the REST Server

DELETE Process Flow

Process flow for HTTP DELETE requests in the REST Server
Figure B-4. Process flow for HTTP DELETE requests in the REST Server

POST Process Flow

Process flow for HTTP POST requests in the REST Server
Figure B-5. Process flow for HTTP POST requests in the REST Server

The boxes in the flowchart with dotted outlines (“Has cache parameter?” and “Cache Results”) indicate that these steps are only considered when an XQuery is ...

Get eXist now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.