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.
library(LAMP)
var.body <- 'body_example' # character |
#Query the LAMP Database.
api.instance <- APIApi$new()
# Configure API key authorization: Authorization
api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$query(var.body)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | character| |
object
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.
library(LAMP)
#View the API schema document.
api.instance <- APIApi$new()
result <- api.instance$schema()
dput(result)
This endpoint does not need any parameter.
object
No authorization required
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.