Skip to content

joesonw/node-diskover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published