0.0.1 • Published 9 years ago

diskover v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

service discovery service

##API

###Create node

curl -XPUT http://127.0.0.1/keys/foo/bar -d '{"hello":"world"}'

{
	"name":"bar",
	"path":"foo/bar",
	"data":{
		"hello":"world"
	},
	"children":[]
}

###Get node

curl http://127.0.0.1/keys/foo/bar

{
	"name":"bar",
	"path":"foo/bar",
	"data":{
		"hello":"world"
	},
	"children":[]
}

curl http://127.0.0.1/keys/foo/bar

{
	"name":"foo",
	"path":"foo",
	"data":{},
	"children":[{
		"name":"bar",
		"path":"foo/bar"
	}]
}

curl http://127.0.0.1/keys/blah

{
	"error":"Node blah not found"
}

###Delete node

curl -XDELETE http://127.0.0.1/keys/foo/bar

curl -XDELETE http://127.0.0.1/keys/foo

##TODO

ACL module with users&groups

TTL module

mongodb storage