Skip to content

Commit

Permalink
typo in relationship index, and updating readme to use latest api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Feb 6, 2011
1 parent ab853ae commit 6dac3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Neography is a thin Ruby wrapper to the Neo4j Rest API, for more information:
* {Getting Started with Neo4j Server}[http://wiki.neo4j.org/content/Getting_Started_with_Neo4j_Server]
* {Neo4j Rest API Reference}[http://components.neo4j.org/neo4j-rest/]
* {Neo4j Rest API Reference}[http://components.neo4j.org/neo4j-server/milestone/rest.html]

If you want to the full power of Neo4j, you will want to use JRuby and the excellent Neo4j.rb gem at https://github.com/andreasronge/neo4j

Expand All @@ -19,7 +19,7 @@ in order to access the functionality.

=== Try it now!

I am hosting an instance of Neo4j (1.2 M5) at neography.org for you to try out.
I am hosting an instance of Neo4j (1.2) at neography.org for you to try out.

You can see the administration at: {Neo4j Web Admin}[http://neography.org]

Expand All @@ -44,8 +44,6 @@ Just add gem 'neography' to your Gemfile and run bundle install

=== Documentation

A thin ruby wrapper Neography::Rest which tries to mirror the Neo4j Rest API and returns JSON or Nil:

@neo = Neography::Rest.new({:protocol => 'http://',
:server => 'localhost',
:port => 7474,
Expand Down
2 changes: 1 addition & 1 deletion lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def list_relationship_indexes
end

def add_relationship_to_index(index, key, value, id)
options = { :body => (self.configuration + "/node/#{get_id(id)}").to_json, :headers => {'Content-Type' => 'application/json'} }
options = { :body => (self.configuration + "/relationship/#{get_id(id)}").to_json, :headers => {'Content-Type' => 'application/json'} }
post("/index/relationship/#{index}/#{key}/#{value}", options)
end

Expand Down

0 comments on commit 6dac3ab

Please sign in to comment.