Method | HTTP request | Description |
---|---|---|
getAttachment | GET /type/{type_id}/attachment/{attachment_key} | |
getDynamicAttachment | GET /type/{type_id}/attachment/dynamic/{attachment_key} | |
listAttachments | GET /type/{type_id}/attachment | |
parent | GET /type/{type_id}/parent | Find the owner(s) of the resource. |
setAttachment | PUT /type/{type_id}/attachment/{attachment_key}/{target} | |
setDynamicAttachment | PUT /type/{type_id}/attachment/dynamic/{attachment_key}/{target} |
object getAttachment(type_id, attachment_key)
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
let attachment_key = 'attachment_key_example' // string
const result = LAMP.Type.getAttachment(type_id, attachment_key)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | string | ||
attachment_key | string |
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 | - |
object getDynamicAttachment(type_id, attachment_key, invoke_always, include_logs, ignore_output)
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
let attachment_key = 'attachment_key_example' // string
let invoke_always = false // boolean
let include_logs = false // boolean
let ignore_output = false // boolean
const result = LAMP.Type.getDynamicAttachment(type_id, attachment_key, invoke_always, include_logs, ignore_output)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | string | ||
attachment_key | string | ||
invoke_always | boolean | ||
include_logs | boolean | ||
ignore_output | boolean |
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 | - |
object listAttachments(type_id)
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
const result = LAMP.Type.listAttachments(type_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | string |
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 parent(type_id)
Find the owner(s) of the resource.
Get the parent type identifier of the data structure referenced by the identifier.
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
// Find the owner(s) of the resource.
const result = LAMP.Type.parent(type_id)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | 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 | - |
object setAttachment(type_id, target, attachment_key, body)
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
let target = 'target_example' // string
let attachment_key = 'attachment_key_example' // string
let body = null // object
const result = LAMP.Type.setAttachment(type_id, target, attachment_key, body)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | string | ||
target | string | ||
attachment_key | string | ||
body | object |
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 | - |
object setDynamicAttachment(type_id, target, attachment_key, invoke_once, dynamic.attachment)
import LAMP from 'lamp-core'
let type_id = 'type_id_example' // string
let target = 'target_example' // string
let attachment_key = 'attachment_key_example' // string
let invoke_once = 'invoke_once_example' // string
let dynamic.attachment = DynamicAttachment.new("key_example", "from_example", "to_example", list(123), "language_example", "contents_example", list(123)) // DynamicAttachment
const result = LAMP.Type.setDynamicAttachment(type_id, target, attachment_key, invoke_once, dynamic.attachment)
console.dir(result)
Name | Type | Description | Notes |
---|---|---|---|
type_id | string | ||
target | string | ||
attachment_key | string | ||
invoke_once | string | ||
dynamic.attachment | DynamicAttachment |
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 | - |