Method | HTTP request | Description |
---|---|---|
all | GET /activity_spec | Get all ActivitySpecs registered. |
create | POST /activity_spec | Create a new ActivitySpec. |
delete | DELETE /activity_spec/{activity_spec_name} | Delete an ActivitySpec. |
update | PUT /activity_spec/{activity_spec_name} | Update an ActivitySpec. |
view | GET /activity_spec/{activity_spec_name} | View an ActivitySpec. |
array[object] all()
Get all ActivitySpecs registered.
Get all ActivitySpecs registered.
import LAMP from 'lamp-core'
// Get all ActivitySpecs registered.
const result = LAMP.ActivitySpec.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(activity.spec)
Create a new ActivitySpec.
Create a new ActivitySpec.
import LAMP from 'lamp-core'
let activity.spec = ActivitySpec.new("name_example", "help_contents_example", "script_contents_example", 123, 123, 123) // ActivitySpec
// Create a new ActivitySpec.
const result = LAMP.ActivitySpec.create(activity.spec)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
activity.spec | ActivitySpec |
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(activity.spec.name)
Delete an ActivitySpec.
Delete an ActivitySpec.
import LAMP from 'lamp-core'
let activity.spec.name = 'activity.spec.name_example' // string
// Delete an ActivitySpec.
const result = LAMP.ActivitySpec.delete(activity.spec.name)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
activity.spec.name | 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(activity.spec.name, activity.spec)
Update an ActivitySpec.
Update an ActivitySpec.
import LAMP from 'lamp-core'
let activity.spec.name = 'activity.spec.name_example' // string
let activity.spec = ActivitySpec.new("name_example", "help_contents_example", "script_contents_example", 123, 123, 123) // ActivitySpec
// Update an ActivitySpec.
const result = LAMP.ActivitySpec.update(activity.spec.name, activity.spec)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
activity.spec.name | string | ||
activity.spec | ActivitySpec |
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 view(activity.spec.name)
View an ActivitySpec.
View an ActivitySpec.
import LAMP from 'lamp-core'
let activity.spec.name = 'activity.spec.name_example' // string
// View an ActivitySpec.
const result = LAMP.ActivitySpec.view(activity.spec.name)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
activity.spec.name | string | ||
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 | - |