Module: Neography::Rest::Extensions
Instance Method Summary
collapse
Methods included from Helpers
#encode, #escape, #get_id, #json_content_type, #parse_depth, #parse_direction, #parse_order, #parse_type, #parse_uniqueness
Instance Method Details
#get_extension(path) ⇒ Object
6
7
8
|
# File 'lib/neography/rest/extensions.rb', line 6
def get_extension(path)
@connection.get(path)
end
|
#post_extension(path, body = {}, headers = nil) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/neography/rest/extensions.rb', line 10
def post_extension(path, body = {}, = nil)
options = {
:body => .nil? ? body.to_json : body,
:headers => || json_content_type.merge({'Accept' => 'application/json;stream=true'})
}
@connection.post(path, options)
end
|