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.
import LAMP from 'lamp-core'
// Get the set of all researchers.
const result = LAMP.Researcher.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 | - |
character create(researcher)
Create a new Researcher.
Create a new Researcher.
import LAMP from 'lamp-core'
let researcher = Researcher.new("id_example", "name_example", "email_example", "address_example", list(123)) // Researcher
// Create a new Researcher.
const result = LAMP.Researcher.create(researcher)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher | Researcher |
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(researcher_id)
Delete a researcher.
Delete a researcher.
import LAMP from 'lamp-core'
let researcher_id = 'researcher_id_example' // string
// Delete a researcher.
const result = LAMP.Researcher.delete(researcher_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher_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(researcher_id, researcher)
Update a Researcher's settings.
Update a Researcher's settings.
import LAMP from 'lamp-core'
let researcher_id = 'researcher_id_example' // string
let researcher = Researcher.new("id_example", "name_example", "email_example", "address_example", list(123)) // Researcher
// Update a Researcher's settings.
const result = LAMP.Researcher.update(researcher_id, researcher)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher_id | string | ||
researcher | Researcher | ||
transform | string | [optional] |
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(researcher_id)
Get a single researcher, by identifier.
Get a single researcher, by identifier.
import LAMP from 'lamp-core'
let researcher_id = 'researcher_id_example' // string
// Get a single researcher, by identifier.
const result = LAMP.Researcher.view(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 | - |