Method | HTTP request | Description ------------- | ------------- | ------------- all | GET /study | Get the set of all studies. allByResearcher | GET /researcher/{researcher_id}/study | Get the set of studies for a single researcher. create | POST /researcher/{researcher_id}/study | Create a new Study for the given Researcher. delete | DELETE /study/{study_id} | Delete a study. update | PUT /study/{study_id} | Update the study. view | GET /study/{study_id} | Get a single study, by identifier.
array[object] all()
Get the set of all studies.
Get the set of all studies.
library(LAMP)
#Get the set of all studies.
result <- LAMP.Study$all()
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
array[object] allByResearcher(researcher.id)
Get the set of studies for a single researcher.
Get the set of studies for a single researcher.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
#Get the set of studies for a single researcher.
result <- LAMP.Study$allByResearcher(var.researcher.id)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher.id | character| | transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
character create(researcher.id, study)
Create a new Study for the given Researcher.
Create a new Study for the given Researcher.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
var.study <- Study$new("id_example", "name_example", list(123), list(123)) # Study |
#Create a new Study for the given Researcher.
result <- LAMP.Study$create(var.researcher.id, var.study)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher.id | character| | study | Study| |
character
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
character delete(study.id)
Delete a study.
Delete a study.
library(LAMP)
var.study.id <- 'study.id_example' # character |
#Delete a study.
result <- LAMP.Study$delete(var.study.id)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- study.id | character| |
character
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
character update(study.id, study)
Update the study.
Update the study.
library(LAMP)
var.study.id <- 'study.id_example' # character |
var.study <- Study$new("id_example", "name_example", list(123), list(123)) # Study |
#Update the study.
result <- LAMP.Study$update(var.study.id, var.study)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- study.id | character| | study | Study| |
character
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
array[object] view(study.id)
Get a single study, by identifier.
Get a single study, by identifier.
library(LAMP)
var.study.id <- 'study.id_example' # character |
#Get a single study, by identifier.
result <- LAMP.Study$view(var.study.id)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- study.id | character| | transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.