0.4.3 • Published 9 years ago

weaver-server v0.4.3

Weekly downloads
1
License
GPL-3.0
Repository
-
Last release
9 years ago

Build Statuscodecov

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.
] 
0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago