Lisp API
lisp/get-specification - get the specification which is distributed in form of a test suite
lisp/eval-lisp - evaluate lisp expression within the provided execution context (
data
orresource
).
lisp/get-specification
Params:
Param | Description | Type | required? | default |
---|---|---|---|---|
runtime | Filter [client or server]-only tests or get all tests | zenbox/string | no | client |
Request:
Response:
Server responds with HTTP 422 Unprocessable Entity
if wrong params are provided.
lisp/eval-lisp
Some expressions are runtime specific. See language specification for more details.
Params:
Param | Description | Type | required? |
---|---|---|---|
expr | Lisp expression | zen/string | yes |
resource | Resource the lisp expression refers to | zenbox/Resource | no |
data | Data the lisp expression refers to | zen/map | no |
The lisp expression expr
can be used to retrieve data directly from the provided data
map.
Request:
Response:
Or the expression expr
can be used for example to retrieve data via sql
function for a given resource
.
The
sql
functions are specified forbackend
lisp runtime only.
Request:
Response:
The expression expr
can also be used to grab data from a particular Resource.
Request:
Response:
Server responds with HTTP 422 Unprocessable Entity
if wrong params provided or with HTTP 500 Internal Server Error
if wrong resourceType
provided.
\
Last updated