Skip to content

Latest commit

 

History

History
222 lines (155 loc) · 5.44 KB

ActivitySpecApi.md

File metadata and controls

222 lines (155 loc) · 5.44 KB

LAMP.ActivitySpec

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.

all

array[object] all()

Get all ActivitySpecs registered.

Get all ActivitySpecs registered.

Example

import LAMP from 'lamp-core'

// Get all ActivitySpecs registered.
const result = LAMP.ActivitySpec.all()
console.dir(result)

Parameters

Name Type Description Notes
transform string [optional]

Return type

array[object]

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 Success -
400 400 Bad Request -
403 403 Authorization Failed -
404 404 Not Found -
0 500 Internal Error -

create

character create(activity.spec)

Create a new ActivitySpec.

Create a new ActivitySpec.

Example

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)

Parameters

Name Type Description Notes
activity.spec ActivitySpec

Return type

string

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 Success -
400 400 Bad Request -
403 403 Authorization Failed -
404 404 Not Found -
0 500 Internal Error -

delete

character delete(activity.spec.name)

Delete an ActivitySpec.

Delete an ActivitySpec.

Example

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)

Parameters

Name Type Description Notes
activity.spec.name string

Return type

string

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 Success -
400 400 Bad Request -
403 403 Authorization Failed -
404 404 Not Found -
0 500 Internal Error -

update

character update(activity.spec.name, activity.spec)

Update an ActivitySpec.

Update an ActivitySpec.

Example

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)

Parameters

Name Type Description Notes
activity.spec.name string
activity.spec ActivitySpec

Return type

string

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 Success -
400 400 Bad Request -
403 403 Authorization Failed -
404 404 Not Found -
0 500 Internal Error -

view

character view(activity.spec.name)

View an ActivitySpec.

View an ActivitySpec.

Example

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)

Parameters

Name Type Description Notes
activity.spec.name string
transform string [optional]

Return type

string

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 Success -
400 400 Bad Request -
403 403 Authorization Failed -
404 404 Not Found -
0 500 Internal Error -