A simple REST service to convert Zookepeer trees to JSON and create them from JSON.
- Convert ZooKeeper trees to JSON.
- Create ZooKeeper trees from JSON.
- Support JSONs as node data.
TODO
TODO
There's two options for how to retrieve zookeeper as JSON:
- Get the ENTIRE tree:
GET http://server-address:port/toJSON
- Get the tree from the given node:
POST http://server-address:port/toJSON
PARAMS {"path: "/somepath"}
Note: If a node has data and children than the data will be saved in '_data' property, if there's only data than it will be saved directly under the node.
Create the tree from the given path and JSON:
POST http://server-address:port/fromJSON
PARAMS {"path: "/somepath", "data": {"node_name": {"child":"child_data", "_data":"node_data", "complex_child": {"child":"child_data", "_data":"node_data"}...}}}
TODO
TODO