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.
import LAMP from 'lamp-core'
// Get the set of all studies.
const result = LAMP.Study.all()
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
transform | string | [optional] |
array[object]
- Content-Type:
application/json
- Accept:
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.
import LAMP from 'lamp-core'
let researcher_id = 'researcher_id_example' // string
// Get the set of studies for a single researcher.
const result = LAMP.Study.allByResearcher(researcher_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher_id | string | ||
transform | string | [optional] |
array[object]
- Content-Type:
application/json
- Accept:
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.
import LAMP from 'lamp-core'
let researcher_id = 'researcher_id_example' // string
let study = Study.new("id_example", "name_example", list(123), list(123)) // Study
// Create a new Study for the given Researcher.
const result = LAMP.Study.create(researcher_id, study)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher_id | string | ||
study | Study |
string
- Content-Type:
application/json
- Accept:
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.
import LAMP from 'lamp-core'
let study_id = 'study_id_example' // string
// Delete a study.
const result = LAMP.Study.delete(study_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
study_id | string |
string
- Content-Type:
application/json
- Accept:
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.
import LAMP from 'lamp-core'
let study_id = 'study_id_example' // string
let study = Study.new("id_example", "name_example", list(123), list(123)) // Study
// Update the study.
const result = LAMP.Study.update(study_id, study)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
study_id | string | ||
study | Study |
string
- Content-Type:
application/json
- Accept:
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.
import LAMP from 'lamp-core'
let study_id = 'study_id_example' // string
// Get a single study, by identifier.
const result = LAMP.Study.view(study_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
study_id | string | ||
transform | string | [optional] |
array[object]
- Content-Type:
application/json
- Accept:
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 | - |