Method | HTTP request | Description ------------- | ------------- | ------------- all | GET /researcher | Get the set of all researchers. create | POST /researcher | Create a new Researcher. delete | DELETE /researcher/{researcher_id} | Delete a researcher. update | PUT /researcher/{researcher_id} | Update a Researcher's settings. view | GET /researcher/{researcher_id} | Get a single researcher, by identifier.
array[object] all()
Get the set of all researchers.
Get the set of all researchers.
library(LAMP)
#Get the set of all researchers.
result <- LAMP.Researcher$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 | - |
character create(researcher)
Create a new Researcher.
Create a new Researcher.
library(LAMP)
var.researcher <- Researcher$new("id_example", "name_example", "email_example", "address_example", list(123)) # Researcher |
#Create a new Researcher.
result <- LAMP.Researcher$create(var.researcher)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher | Researcher| |
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(researcher.id)
Delete a researcher.
Delete a researcher.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
#Delete a researcher.
result <- LAMP.Researcher$delete(var.researcher.id)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher.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(researcher.id, researcher)
Update a Researcher's settings.
Update a Researcher's settings.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
var.researcher <- Researcher$new("id_example", "name_example", "email_example", "address_example", list(123)) # Researcher |
#Update a Researcher's settings.
result <- LAMP.Researcher$update(var.researcher.id, var.researcher)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher.id | character| | researcher | Researcher| | transform | character| | [optional]
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(researcher.id)
Get a single researcher, by identifier.
Get a single researcher, by identifier.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
#Get a single researcher, by identifier.
result <- LAMP.Researcher$view(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 | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.