Method | HTTP request | Description |
---|---|---|
query | POST / | Query the LAMP Database. |
schema | GET / | View the API schema document. |
object query(body)
Query the LAMP Database.
Query the LAMP Database using a transformation document. All GET operations in this API schema document are available by replacing the period with an underscore (i.e. .Participant_view(...)
instead of Participant.view(...)
). The origin
, from
, and to
parameters of EventStream functions are preserved but the transform
parameter is not.
import LAMP from 'lamp-core'
// Query the LAMP Database.
const result = LAMP.API.query(`jsonata_query_example`)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
body | string |
object
- Content-Type: text/plain, application/json
- Accept:
application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 Success | - |
0 | 400 Bad Request | - |
object schema()
View the API schema document.
View this API schema document from a live server instance.
import LAMP from 'lamp-core'
// View the API schema document.
const result = LAMP.API.schema()
console.dir(result)
This endpoint does not need any parameter.
object
No authorization required
- Content-Type:
application/json
- Accept:
application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 Success | - |