weaver-server v0.4.3
weaver-server
Weaver-compatible API server module for Node/Express
Weaver SDK payloads
Currently two SDK's can be used to input data to de Weaver Platform:
- weaver-sdk-js
weaver-sdk-java
The format the payload these SDK's produce is documented on this page. They directly represent the operations in the weaver-server module.
create
{
"id" : "",
"type": "",
"attributes": {
}
}
read
{
"_META": { },
"_ATTRIBUTES": {
"key": "value"
},
"_RELATIONS": {
"1234": {
"_META": {},
"_ATTRIBUTES": {},
"_RELATIONS":{}
}
}
}
update
{
"id": "",
"attribute": "",
"value": ""
}
destroyAttribute
{
"id": "",
"attribute": ""
}
destroyEntity
{
"id":""
}
link
{
"source": {
"id": "",
"type": "",
"fetched": "true",
"attributes": {},
"relations": {}
},
"key": "",
"target": {}
}
unlink
{
"id": "",
"key": ""
}
populate
wipe
no payload
dump
no payload
bootstrapFromUrl
there are two options
{
"url": "http://__.json"
}
bootstrapFromJson
[
{
"id": "cuid...",
"action": "create",
"payload": "{...}"
},
etc.
]
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago