keymaker 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/README.md +36 -10
  2. data/keymaker.gemspec +37 -33
  3. data/lib/keymaker.rb +3 -2
  4. data/lib/keymaker/configuration.rb +14 -24
  5. data/lib/keymaker/node.rb +1 -1
  6. data/lib/keymaker/request.rb +0 -2
  7. data/lib/keymaker/requests/add_node_to_index_request.rb +10 -1
  8. data/lib/keymaker/requests/create_relationship_request.rb +8 -1
  9. data/lib/keymaker/requests/delete_relationship_request.rb +10 -1
  10. data/lib/keymaker/requests/execute_cypher_request.rb +8 -3
  11. data/lib/keymaker/requests/execute_gremlin_request.rb +8 -3
  12. data/lib/keymaker/requests/remove_node_from_index_request.rb +0 -2
  13. data/lib/keymaker/requests/service_root_request.rb +1 -1
  14. data/lib/keymaker/requests/{path_traverse_request.rb → traverse_path_request.rb} +16 -4
  15. data/lib/keymaker/requests/update_node_properties_request.rb +8 -1
  16. data/lib/keymaker/response.rb +1 -0
  17. data/lib/keymaker/service.rb +16 -4
  18. data/spec/cassettes/Keymaker_AddNodeToIndexRequest/{returns_a_201_status_code.yml → with_valid_options/returns_a_201_status_code.yml} +54 -55
  19. data/spec/cassettes/Keymaker_AddNodeToIndexRequest/{returns_application → with_valid_options/returns_application}/json.yml +54 -55
  20. data/spec/cassettes/Keymaker_AddNodeToIndexRequest/{returns_the_Neo4j_REST_API_starting_point_response_request.yml → with_valid_options/returns_the_Neo4j_REST_API_starting_point_response_request.yml} +54 -55
  21. data/spec/cassettes/Keymaker_CreateNodeRequest/returns_a_201_status_code.yml +112 -0
  22. data/spec/cassettes/Keymaker_CreateNodeRequest/returns_application/json.yml +112 -0
  23. data/spec/cassettes/Keymaker_CreateNodeRequest/with_properties/creates_a_node_with_the_given_properties.yml +112 -0
  24. data/spec/cassettes/Keymaker_CreateNodeRequest/without_properties/creates_an_empty_node.yml +112 -0
  25. data/spec/cassettes/Keymaker_CreateRelationshipRequest/with_invalid_options/raises_ClientError.yml +201 -0
  26. data/spec/cassettes/Keymaker_CreateRelationshipRequest/with_properties/creates_a_node_with_the_given_properties.yml +233 -0
  27. data/spec/cassettes/Keymaker_CreateRelationshipRequest/with_properties/returns_a_201_status_code.yml +196 -0
  28. data/spec/cassettes/Keymaker_CreateRelationshipRequest/with_properties/returns_application/json.yml +196 -0
  29. data/spec/cassettes/Keymaker_CreateRelationshipRequest/without_properties/creates_an_empty_relationship_of_type_birthed_.yml +195 -0
  30. data/spec/cassettes/Keymaker_DeleteRelationshipRequest/with_a_non-existent_relationship/raises_ResourceNotFound.yml +191 -0
  31. data/spec/cassettes/Keymaker_DeleteRelationshipRequest/with_an_existing_relationship/deletes_the_relationship.yml +219 -0
  32. data/spec/cassettes/Keymaker_ExecuteCypherRequest/with_a_valid_Cypher_Query/returns_a_200_status_code.yml +111 -0
  33. data/spec/cassettes/Keymaker_ExecuteCypherRequest/with_an_invalid_Cypher_Query/raises_ClientError.yml +108 -0
  34. data/spec/cassettes/Keymaker_ExecuteGremlinRequest/with_a_valid_Gremlin_Script/returns_a_200_status_code.yml +98 -0
  35. data/spec/cassettes/Keymaker_ExecuteGremlinRequest/with_an_invalid_Gremlin_Script/raises_ClientError.yml +107 -0
  36. data/spec/cassettes/Keymaker_TraversePathRequest/_traverse_path_properties/with_options/builds_the_query_properties_with_defaults.yml +157 -0
  37. data/spec/cassettes/Keymaker_TraversePathRequest/with_invalid_options/raise_a_ClientError.yml +193 -0
  38. data/spec/cassettes/Keymaker_TraversePathRequest/with_valid_options/returns_status_code_200.yml +269 -0
  39. data/spec/cassettes/Keymaker_UpdateNodePropertiesRequest/_node_properties/excludes_the_node_id.yml +157 -0
  40. data/spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_invalid_options/raises_a_ClientError.yml +193 -0
  41. data/spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_valid_options/returns_a_status_of_204.yml +182 -0
  42. data/spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_valid_options/updates_the_properties.yml +214 -0
  43. data/spec/keymaker/requests/add_node_to_index_request_spec.rb +30 -28
  44. data/spec/keymaker/requests/batch_get_nodes_request_spec.rb +4 -4
  45. data/spec/keymaker/requests/batch_request_spec.rb +33 -33
  46. data/spec/keymaker/requests/create_node_request_spec.rb +34 -0
  47. data/spec/keymaker/requests/create_relationship_request_spec.rb +58 -0
  48. data/spec/keymaker/requests/delete_relationship_request_spec.rb +28 -0
  49. data/spec/keymaker/requests/execute_cypher_request_spec.rb +23 -0
  50. data/spec/keymaker/requests/execute_gremlin_request_spec.rb +23 -0
  51. data/spec/keymaker/requests/service_root_request_spec.rb +9 -9
  52. data/spec/keymaker/requests/traverse_path_request_spec.rb +50 -0
  53. data/spec/keymaker/requests/update_node_properties_request_spec.rb +50 -0
  54. data/spec/keymaker/service_spec.rb +31 -0
  55. data/spec/keymaker_spec.rb +26 -2
  56. data/spec/support/keymaker.rb +10 -4
  57. metadata +86 -10
@@ -0,0 +1,196 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"script":"g.clear();g.V()"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: !!null
16
+ headers:
17
+ content-length:
18
+ - '3'
19
+ content-encoding:
20
+ - UTF-8
21
+ content-type:
22
+ - application/json
23
+ access-control-allow-origin:
24
+ - ! '*'
25
+ connection:
26
+ - close
27
+ server:
28
+ - Jetty(6.1.25)
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '[ ]'
32
+ http_version: !!null
33
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
34
+ - request:
35
+ method: delete
36
+ uri: http://localhost:7477/db/data/index/node/users
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ headers: {}
41
+ response:
42
+ status:
43
+ code: 404
44
+ message: !!null
45
+ headers:
46
+ content-length:
47
+ - '422'
48
+ content-encoding:
49
+ - UTF-8
50
+ content-type:
51
+ - application/json
52
+ access-control-allow-origin:
53
+ - ! '*'
54
+ connection:
55
+ - close
56
+ server:
57
+ - Jetty(6.1.25)
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
61
+ : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
62
+ \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
63
+ \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
64
+ ]\n}"
65
+ http_version: !!null
66
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
67
+ - request:
68
+ method: post
69
+ uri: http://localhost:7477/db/data/node
70
+ body:
71
+ encoding: UTF-8
72
+ string: ! '{"email":"john@resistance.net"}'
73
+ headers:
74
+ Content-Type:
75
+ - application/json
76
+ response:
77
+ status:
78
+ code: 201
79
+ message: !!null
80
+ headers:
81
+ content-length:
82
+ - '1138'
83
+ location:
84
+ - http://localhost:7477/db/data/node/107
85
+ content-encoding:
86
+ - UTF-8
87
+ content-type:
88
+ - application/json
89
+ access-control-allow-origin:
90
+ - ! '*'
91
+ connection:
92
+ - close
93
+ server:
94
+ - Jetty(6.1.25)
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/107/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
98
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/107/relationships/out\",\n
99
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/107/traverse/{returnType}\",\n
100
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/107/relationships/all/{-list|&|types}\",\n
101
+ \ \"property\" : \"http://localhost:7477/db/data/node/107/properties/{key}\",\n
102
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/107/relationships/all\",\n
103
+ \ \"self\" : \"http://localhost:7477/db/data/node/107\",\n \"properties\"
104
+ : \"http://localhost:7477/db/data/node/107/properties\",\n \"outgoing_typed_relationships\"
105
+ : \"http://localhost:7477/db/data/node/107/relationships/out/{-list|&|types}\",\n
106
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/107/relationships/in\",\n
107
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/107/relationships/in/{-list|&|types}\",\n
108
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/107/relationships\",\n
109
+ \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
110
+ http_version: !!null
111
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
112
+ - request:
113
+ method: post
114
+ uri: http://localhost:7477/db/data/node
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{"email":"sarah@resistance.net"}'
118
+ headers:
119
+ Content-Type:
120
+ - application/json
121
+ response:
122
+ status:
123
+ code: 201
124
+ message: !!null
125
+ headers:
126
+ content-length:
127
+ - '1139'
128
+ location:
129
+ - http://localhost:7477/db/data/node/108
130
+ content-encoding:
131
+ - UTF-8
132
+ content-type:
133
+ - application/json
134
+ access-control-allow-origin:
135
+ - ! '*'
136
+ connection:
137
+ - close
138
+ server:
139
+ - Jetty(6.1.25)
140
+ body:
141
+ encoding: US-ASCII
142
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/108/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
143
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/108/relationships/out\",\n
144
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/108/traverse/{returnType}\",\n
145
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/108/relationships/all/{-list|&|types}\",\n
146
+ \ \"property\" : \"http://localhost:7477/db/data/node/108/properties/{key}\",\n
147
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/108/relationships/all\",\n
148
+ \ \"self\" : \"http://localhost:7477/db/data/node/108\",\n \"properties\"
149
+ : \"http://localhost:7477/db/data/node/108/properties\",\n \"outgoing_typed_relationships\"
150
+ : \"http://localhost:7477/db/data/node/108/relationships/out/{-list|&|types}\",\n
151
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/108/relationships/in\",\n
152
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/108/relationships/in/{-list|&|types}\",\n
153
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/108/relationships\",\n
154
+ \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
155
+ http_version: !!null
156
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
157
+ - request:
158
+ method: post
159
+ uri: http://localhost:7477/db/data/node/108/relationships
160
+ body:
161
+ encoding: UTF-8
162
+ string: ! '{"to":"http://localhost:7477/db/data/node/107","type":"birthed","data":{"location":"unknown","date":"1985-02-28"}}'
163
+ headers:
164
+ Content-Type:
165
+ - application/json
166
+ response:
167
+ status:
168
+ code: 201
169
+ message: !!null
170
+ headers:
171
+ content-length:
172
+ - '444'
173
+ location:
174
+ - http://localhost:7477/db/data/relationship/19
175
+ content-encoding:
176
+ - UTF-8
177
+ content-type:
178
+ - application/json
179
+ access-control-allow-origin:
180
+ - ! '*'
181
+ connection:
182
+ - close
183
+ server:
184
+ - Jetty(6.1.25)
185
+ body:
186
+ encoding: US-ASCII
187
+ string: ! "{\n \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/108\",\n
188
+ \ \"property\" : \"http://localhost:7477/db/data/relationship/19/properties/{key}\",\n
189
+ \ \"self\" : \"http://localhost:7477/db/data/relationship/19\",\n \"properties\"
190
+ : \"http://localhost:7477/db/data/relationship/19/properties\",\n \"type\"
191
+ : \"birthed\",\n \"end\" : \"http://localhost:7477/db/data/node/107\",\n
192
+ \ \"data\" : {\n \"location\" : \"unknown\",\n \"date\" : \"1985-02-28\"\n
193
+ \ }\n}"
194
+ http_version: !!null
195
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
196
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,196 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"script":"g.clear();g.V()"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: !!null
16
+ headers:
17
+ content-length:
18
+ - '3'
19
+ content-encoding:
20
+ - UTF-8
21
+ content-type:
22
+ - application/json
23
+ access-control-allow-origin:
24
+ - ! '*'
25
+ connection:
26
+ - close
27
+ server:
28
+ - Jetty(6.1.25)
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '[ ]'
32
+ http_version: !!null
33
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
34
+ - request:
35
+ method: delete
36
+ uri: http://localhost:7477/db/data/index/node/users
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ headers: {}
41
+ response:
42
+ status:
43
+ code: 404
44
+ message: !!null
45
+ headers:
46
+ content-length:
47
+ - '422'
48
+ content-encoding:
49
+ - UTF-8
50
+ content-type:
51
+ - application/json
52
+ access-control-allow-origin:
53
+ - ! '*'
54
+ connection:
55
+ - close
56
+ server:
57
+ - Jetty(6.1.25)
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
61
+ : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
62
+ \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
63
+ \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
64
+ ]\n}"
65
+ http_version: !!null
66
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
67
+ - request:
68
+ method: post
69
+ uri: http://localhost:7477/db/data/node
70
+ body:
71
+ encoding: UTF-8
72
+ string: ! '{"email":"john@resistance.net"}'
73
+ headers:
74
+ Content-Type:
75
+ - application/json
76
+ response:
77
+ status:
78
+ code: 201
79
+ message: !!null
80
+ headers:
81
+ content-length:
82
+ - '1138'
83
+ location:
84
+ - http://localhost:7477/db/data/node/109
85
+ content-encoding:
86
+ - UTF-8
87
+ content-type:
88
+ - application/json
89
+ access-control-allow-origin:
90
+ - ! '*'
91
+ connection:
92
+ - close
93
+ server:
94
+ - Jetty(6.1.25)
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/109/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
98
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/109/relationships/out\",\n
99
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/109/traverse/{returnType}\",\n
100
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/109/relationships/all/{-list|&|types}\",\n
101
+ \ \"property\" : \"http://localhost:7477/db/data/node/109/properties/{key}\",\n
102
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/109/relationships/all\",\n
103
+ \ \"self\" : \"http://localhost:7477/db/data/node/109\",\n \"properties\"
104
+ : \"http://localhost:7477/db/data/node/109/properties\",\n \"outgoing_typed_relationships\"
105
+ : \"http://localhost:7477/db/data/node/109/relationships/out/{-list|&|types}\",\n
106
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/109/relationships/in\",\n
107
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/109/relationships/in/{-list|&|types}\",\n
108
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/109/relationships\",\n
109
+ \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
110
+ http_version: !!null
111
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
112
+ - request:
113
+ method: post
114
+ uri: http://localhost:7477/db/data/node
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{"email":"sarah@resistance.net"}'
118
+ headers:
119
+ Content-Type:
120
+ - application/json
121
+ response:
122
+ status:
123
+ code: 201
124
+ message: !!null
125
+ headers:
126
+ content-length:
127
+ - '1139'
128
+ location:
129
+ - http://localhost:7477/db/data/node/110
130
+ content-encoding:
131
+ - UTF-8
132
+ content-type:
133
+ - application/json
134
+ access-control-allow-origin:
135
+ - ! '*'
136
+ connection:
137
+ - close
138
+ server:
139
+ - Jetty(6.1.25)
140
+ body:
141
+ encoding: US-ASCII
142
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/110/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
143
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/110/relationships/out\",\n
144
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/110/traverse/{returnType}\",\n
145
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/110/relationships/all/{-list|&|types}\",\n
146
+ \ \"property\" : \"http://localhost:7477/db/data/node/110/properties/{key}\",\n
147
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/110/relationships/all\",\n
148
+ \ \"self\" : \"http://localhost:7477/db/data/node/110\",\n \"properties\"
149
+ : \"http://localhost:7477/db/data/node/110/properties\",\n \"outgoing_typed_relationships\"
150
+ : \"http://localhost:7477/db/data/node/110/relationships/out/{-list|&|types}\",\n
151
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/110/relationships/in\",\n
152
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/110/relationships/in/{-list|&|types}\",\n
153
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/110/relationships\",\n
154
+ \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
155
+ http_version: !!null
156
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
157
+ - request:
158
+ method: post
159
+ uri: http://localhost:7477/db/data/node/110/relationships
160
+ body:
161
+ encoding: UTF-8
162
+ string: ! '{"to":"http://localhost:7477/db/data/node/109","type":"birthed","data":{"location":"unknown","date":"1985-02-28"}}'
163
+ headers:
164
+ Content-Type:
165
+ - application/json
166
+ response:
167
+ status:
168
+ code: 201
169
+ message: !!null
170
+ headers:
171
+ content-length:
172
+ - '444'
173
+ location:
174
+ - http://localhost:7477/db/data/relationship/20
175
+ content-encoding:
176
+ - UTF-8
177
+ content-type:
178
+ - application/json
179
+ access-control-allow-origin:
180
+ - ! '*'
181
+ connection:
182
+ - close
183
+ server:
184
+ - Jetty(6.1.25)
185
+ body:
186
+ encoding: US-ASCII
187
+ string: ! "{\n \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/110\",\n
188
+ \ \"property\" : \"http://localhost:7477/db/data/relationship/20/properties/{key}\",\n
189
+ \ \"self\" : \"http://localhost:7477/db/data/relationship/20\",\n \"properties\"
190
+ : \"http://localhost:7477/db/data/relationship/20/properties\",\n \"type\"
191
+ : \"birthed\",\n \"end\" : \"http://localhost:7477/db/data/node/109\",\n
192
+ \ \"data\" : {\n \"location\" : \"unknown\",\n \"date\" : \"1985-02-28\"\n
193
+ \ }\n}"
194
+ http_version: !!null
195
+ recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
196
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,195 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"script":"g.clear();g.V()"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: !!null
16
+ headers:
17
+ content-length:
18
+ - '3'
19
+ content-encoding:
20
+ - UTF-8
21
+ content-type:
22
+ - application/json
23
+ access-control-allow-origin:
24
+ - ! '*'
25
+ connection:
26
+ - close
27
+ server:
28
+ - Jetty(6.1.25)
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '[ ]'
32
+ http_version: !!null
33
+ recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
34
+ - request:
35
+ method: delete
36
+ uri: http://localhost:7477/db/data/index/node/users
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ headers: {}
41
+ response:
42
+ status:
43
+ code: 404
44
+ message: !!null
45
+ headers:
46
+ content-length:
47
+ - '422'
48
+ content-encoding:
49
+ - UTF-8
50
+ content-type:
51
+ - application/json
52
+ access-control-allow-origin:
53
+ - ! '*'
54
+ connection:
55
+ - close
56
+ server:
57
+ - Jetty(6.1.25)
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
61
+ : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
62
+ \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
63
+ \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
64
+ ]\n}"
65
+ http_version: !!null
66
+ recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
67
+ - request:
68
+ method: post
69
+ uri: http://localhost:7477/db/data/node
70
+ body:
71
+ encoding: UTF-8
72
+ string: ! '{"email":"john@resistance.net"}'
73
+ headers:
74
+ Content-Type:
75
+ - application/json
76
+ response:
77
+ status:
78
+ code: 201
79
+ message: !!null
80
+ headers:
81
+ content-length:
82
+ - '1138'
83
+ location:
84
+ - http://localhost:7477/db/data/node/111
85
+ content-encoding:
86
+ - UTF-8
87
+ content-type:
88
+ - application/json
89
+ access-control-allow-origin:
90
+ - ! '*'
91
+ connection:
92
+ - close
93
+ server:
94
+ - Jetty(6.1.25)
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/111/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
98
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/111/relationships/out\",\n
99
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/111/traverse/{returnType}\",\n
100
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/111/relationships/all/{-list|&|types}\",\n
101
+ \ \"property\" : \"http://localhost:7477/db/data/node/111/properties/{key}\",\n
102
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/111/relationships/all\",\n
103
+ \ \"self\" : \"http://localhost:7477/db/data/node/111\",\n \"properties\"
104
+ : \"http://localhost:7477/db/data/node/111/properties\",\n \"outgoing_typed_relationships\"
105
+ : \"http://localhost:7477/db/data/node/111/relationships/out/{-list|&|types}\",\n
106
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/111/relationships/in\",\n
107
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/111/relationships/in/{-list|&|types}\",\n
108
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/111/relationships\",\n
109
+ \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
110
+ http_version: !!null
111
+ recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
112
+ - request:
113
+ method: post
114
+ uri: http://localhost:7477/db/data/node
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{"email":"sarah@resistance.net"}'
118
+ headers:
119
+ Content-Type:
120
+ - application/json
121
+ response:
122
+ status:
123
+ code: 201
124
+ message: !!null
125
+ headers:
126
+ content-length:
127
+ - '1139'
128
+ location:
129
+ - http://localhost:7477/db/data/node/112
130
+ content-encoding:
131
+ - UTF-8
132
+ content-type:
133
+ - application/json
134
+ access-control-allow-origin:
135
+ - ! '*'
136
+ connection:
137
+ - close
138
+ server:
139
+ - Jetty(6.1.25)
140
+ body:
141
+ encoding: US-ASCII
142
+ string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/112/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
143
+ \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/112/relationships/out\",\n
144
+ \ \"traverse\" : \"http://localhost:7477/db/data/node/112/traverse/{returnType}\",\n
145
+ \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/112/relationships/all/{-list|&|types}\",\n
146
+ \ \"property\" : \"http://localhost:7477/db/data/node/112/properties/{key}\",\n
147
+ \ \"all_relationships\" : \"http://localhost:7477/db/data/node/112/relationships/all\",\n
148
+ \ \"self\" : \"http://localhost:7477/db/data/node/112\",\n \"properties\"
149
+ : \"http://localhost:7477/db/data/node/112/properties\",\n \"outgoing_typed_relationships\"
150
+ : \"http://localhost:7477/db/data/node/112/relationships/out/{-list|&|types}\",\n
151
+ \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/112/relationships/in\",\n
152
+ \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/112/relationships/in/{-list|&|types}\",\n
153
+ \ \"create_relationship\" : \"http://localhost:7477/db/data/node/112/relationships\",\n
154
+ \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
155
+ http_version: !!null
156
+ recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
157
+ - request:
158
+ method: post
159
+ uri: http://localhost:7477/db/data/node/112/relationships
160
+ body:
161
+ encoding: UTF-8
162
+ string: ! '{"to":"http://localhost:7477/db/data/node/111","type":"birthed"}'
163
+ headers:
164
+ Content-Type:
165
+ - application/json
166
+ response:
167
+ status:
168
+ code: 201
169
+ message: !!null
170
+ headers:
171
+ content-length:
172
+ - '390'
173
+ location:
174
+ - http://localhost:7477/db/data/relationship/21
175
+ content-encoding:
176
+ - UTF-8
177
+ content-type:
178
+ - application/json
179
+ access-control-allow-origin:
180
+ - ! '*'
181
+ connection:
182
+ - close
183
+ server:
184
+ - Jetty(6.1.25)
185
+ body:
186
+ encoding: US-ASCII
187
+ string: ! "{\n \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/112\",\n
188
+ \ \"property\" : \"http://localhost:7477/db/data/relationship/21/properties/{key}\",\n
189
+ \ \"self\" : \"http://localhost:7477/db/data/relationship/21\",\n \"properties\"
190
+ : \"http://localhost:7477/db/data/relationship/21/properties\",\n \"type\"
191
+ : \"birthed\",\n \"end\" : \"http://localhost:7477/db/data/node/111\",\n
192
+ \ \"data\" : {\n }\n}"
193
+ http_version: !!null
194
+ recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
195
+ recorded_with: VCR 2.2.2