projects
/
neography
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42346ad
)
Add a batch call to get_node_relationships
author
Pablo Fernandez
<pablo@littleq.net>
Fri, 30 Mar 2012 02:20:29 +0000
(23:20 -0300)
committer
Pablo Fernandez
<pablo@littleq.net>
Fri, 30 Mar 2012 02:20:29 +0000
(23:20 -0300)
lib/neography/rest.rb
patch
|
blob
|
history
diff --git
a/lib/neography/rest.rb
b/lib/neography/rest.rb
index 9f35696648b1048e3bbff604a3f5f20201be0106..955ce383954df9f14b266a5602bd4239c406ea32 100644
(file)
--- a/
lib/neography/rest.rb
+++ b/
lib/neography/rest.rb
@@
-426,6
+426,8
@@
module Neography
{:method => "GET", :to => "/index/node/#{args[1]}/#{args[2]}/#{args[3]}"}
when :get_relationship_index
{:method => "GET", :to => "/index/relationship/#{args[1]}/#{args[2]}/#{args[3]}"}
+ when :get_node_relationships
+ {:method => "GET", :to => "/node/#{get_id(args[1])}/relationships/#{args[2]}"}
else
raise "Unknown option #{args[0]}"
end