Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resources

...

Note. All urls in below table will be prefixed with something like : <server>/cps/v1/

14
Group#OperationPayloadDescription

Modelling storage

1PUT /dataspaces/{dataspace-id}/modulesFileCreate/Update (and validate) a module set (upload a model file) for the given dataspace.
2GET /dataspaces/{dataspace-id}/modules
Read all modules in the store for the given dataspace
3GET /dataspaces/{dataspace-id}/modules/{namespace}
Read all modules in the store for the given dataspace and namespace
4GET /dataspaces/{dataspace-id}/modules/{namespace}/{revision}
Read all modules in the store for the given dataspace, namespace and revision

Anchor persistence

65PUT /dataspaces/{dataspace-id}/anchorsJson Object 

Create an anchor persistence given a name and a dataspace and module (payload includes anchor ID, namespace and revision)

76GET /dataspaces/{dataspace-id}/anchors/{anchor-id}
Read an anchor persistence and the associated attributes given a anchor persistence ID and a dataspace.
87DELETE /dataspaces/{dataspace-id}/anchors/{anchor-id}

Delete an anchor persistence given a anchor persistence and ID and a dataspace. (will delete whole tree)

98GET /dataspaces/{dataspace-id}/anchors

Read all anchor persistence's anchors in the system given a dataspace.

Node persistence

129PUT /dataspaces/{dataspace-id}/nodesFileCreate a (root) node for a given anchorpersistence for  for the given dataspace, the node can have children. Their children 

will also be persisted as separate nodes in the system.

10GET /dataspaces/{dataspace-id}/anchors/{anchor-id}/nodes?xpath="..."
Get a node given an anchor persistence for for the given dataspace (return just one level with just xpath references to its children)
1511GET /dataspaces/{dataspace-id}/nodes&xpath="..."
Get a node (under any anchor persistence) given a Xpath expression for the given dataspace
1712GET /dataspaces/{dataspace-id}/nodes?schema_node_identifier="..."
Get all the relevant nodes given a schema node identifier for the given dataspace
(not need to specify dataspace is schema-node-identifier is globally unique)

...