Skip to content

RESTServer

Brian Becker edited this page Mar 11, 2020 · 1 revision

Building REST Services

A REST request consists of an HTTP method (typically one of GET, POST, PUT, or DELETE) and a resource - for instance "GET myservice.com/customers". To implement a REST service in Jarvis you will write an APL function for each of the mehods your service will support. These are specified in the RESTMethods configuration setting. It should be noted that you are not limited to standard HTTP methods - you can create your own, you could write support for a "BLOOF" method if you wanted but of course it wouldn't be "standard".

You will write a monadic, result-returning function for each HTTP method your service will support. The right argument to your function will be the HTTP request object.

Clone this wiki locally