Browse files

Ignore VCR Cassettes

- closes #2
  • Loading branch information...
1 parent 47fc640 commit 0ea0433b01298289069caeec28b3be0e677bb401 Ilya Zayats, Travis Anderson, and Rogelio J. Samour committed with Sep 28, 2012
Showing with 57 additions and 5,604 deletions.
  1. +1 −0 .gitignore
  2. +0 −203 spec/cassettes/Keymaker_AddNodeToIndexRequest/with_valid_options/returns_a_201_status_code.yml
  3. +0 −203 spec/cassettes/Keymaker_AddNodeToIndexRequest/with_valid_options/returns_application/json.yml
  4. +0 −203 ...eToIndexRequest/with_valid_options/returns_the_Neo4j_REST_API_starting_point_response_request.yml
  5. +0 −120 spec/cassettes/Keymaker_BatchRequest/when_a_resource_is_not_found/raises_BatchRequestError.yml
  6. +0 −106 spec/cassettes/Keymaker_BatchRequest/when_to_and_method_are_not_set/raises_BatchRequestError.yml
  7. +0 −129 spec/cassettes/Keymaker_BatchRequest/with_valid_options/returns_a_200_status_code.yml
  8. +0 −129 ...ymaker_BatchRequest/with_valid_options/runs_the_commands_and_returns_their_respective_results.yml
  9. +0 −112 spec/cassettes/Keymaker_CreateNodeRequest/returns_a_201_status_code.yml
  10. +0 −112 spec/cassettes/Keymaker_CreateNodeRequest/returns_application/json.yml
  11. +0 −112 ...cassettes/Keymaker_CreateNodeRequest/with_properties/creates_a_node_with_the_given_properties.yml
  12. +0 −112 spec/cassettes/Keymaker_CreateNodeRequest/without_properties/creates_an_empty_node.yml
  13. +0 −201 spec/cassettes/Keymaker_CreateRelationshipRequest/with_invalid_options/raises_ClientError.yml
  14. +0 −233 ...s/Keymaker_CreateRelationshipRequest/with_properties/creates_a_node_with_the_given_properties.yml
  15. +0 −196 spec/cassettes/Keymaker_CreateRelationshipRequest/with_properties/returns_a_201_status_code.yml
  16. +0 −196 spec/cassettes/Keymaker_CreateRelationshipRequest/with_properties/returns_application/json.yml
  17. +0 −195 ...r_CreateRelationshipRequest/without_properties/creates_an_empty_relationship_of_type_birthed_.yml
  18. +0 −191 ...s/Keymaker_DeleteRelationshipRequest/with_a_non-existent_relationship/raises_ResourceNotFound.yml
  19. +0 −219 ...tes/Keymaker_DeleteRelationshipRequest/with_an_existing_relationship/deletes_the_relationship.yml
  20. +0 −111 spec/cassettes/Keymaker_ExecuteCypherRequest/with_a_valid_Cypher_Query/returns_a_200_status_code.yml
  21. +0 −108 spec/cassettes/Keymaker_ExecuteCypherRequest/with_an_invalid_Cypher_Query/raises_ClientError.yml
  22. +0 −98 ...assettes/Keymaker_ExecuteGremlinRequest/with_a_valid_Gremlin_Script/returns_a_200_status_code.yml
  23. +0 −107 spec/cassettes/Keymaker_ExecuteGremlinRequest/with_an_invalid_Gremlin_Script/raises_ClientError.yml
  24. +0 −101 spec/cassettes/Keymaker_GetNodeRequest/with_a_non-existent_node_id/raises_ResourceNotFound.yml
  25. +0 −111 spec/cassettes/Keymaker_GetNodeRequest/with_an_empty_node_id/raises_ClientError.yml
  26. +0 −220 ...tionshipTypesRequest/with_existing_relationships/returns_a_unique_array_of_relationship_types.yml
  27. +0 −105 spec/cassettes/Keymaker_ServiceRootRequest/returns_a_200_status_code.yml
  28. +0 −105 spec/cassettes/Keymaker_ServiceRootRequest/returns_application/json.yml
  29. +0 −105 ...settes/Keymaker_ServiceRootRequest/returns_the_Neo4j_REST_API_starting_point_response_request.yml
  30. +0 −157 ...ePathRequest/_traverse_path_properties/with_options/builds_the_query_properties_with_defaults.yml
  31. +0 −193 spec/cassettes/Keymaker_TraversePathRequest/with_invalid_options/raise_a_ClientError.yml
  32. +0 −269 spec/cassettes/Keymaker_TraversePathRequest/with_valid_options/returns_status_code_200.yml
  33. +0 −157 spec/cassettes/Keymaker_UpdateNodePropertiesRequest/_node_properties/excludes_the_node_id.yml
  34. +0 −193 spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_invalid_options/raises_a_ClientError.yml
  35. +0 −182 spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_valid_options/returns_a_status_of_204.yml
  36. +0 −214 spec/cassettes/Keymaker_UpdateNodePropertiesRequest/with_valid_options/updates_the_properties.yml
  37. +13 −13 spec/keymaker/requests/add_node_to_index_request_spec.rb
  38. +3 −56 spec/keymaker/requests/batch_request_spec.rb
  39. +15 −9 spec/keymaker/requests/create_node_request_spec.rb
  40. +19 −11 spec/keymaker/requests/create_relationship_request_spec.rb
  41. +1 −1 spec/keymaker/requests/execute_cypher_request_spec.rb
  42. +3 −4 spec/keymaker/requests/get_relationship_types_request_spec.rb
  43. +1 −1 spec/keymaker/requests/update_node_properties_request_spec.rb
  44. +1 −1 spec/support/keymaker.rb
View
1 .gitignore
@@ -14,6 +14,7 @@ pkg/*
rdoc
rdoc
spec/reports
+spec/cassettes/*
tmp
## BUNDLER
View
203 ...cassettes/Keymaker_AddNodeToIndexRequest/with_valid_options/returns_a_201_status_code.yml
@@ -1,203 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"john@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1138'
- location:
- - http://localhost:7477/db/data/node/191
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/191/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/191/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/191/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/191\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/191/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/191/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/191/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"sarah@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1139'
- location:
- - http://localhost:7477/db/data/node/192
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/192/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/192/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/192/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/192/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/192/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/192/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/192\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/192/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/192/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/192/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/192/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/192/relationships\",\n
- \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: UTF-8
- string: ! '{"key":"email","value":"john@resistance.net","uri":"http://localhost:7477/db/data/node/191"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1234'
- location:
- - http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/191
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/191/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/191/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/191/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/191\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/191/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/191/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/191/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/191/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n },\n \"indexed\"
- : \"http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/191\"\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-recorded_with: VCR 2.2.2
View
203 .../cassettes/Keymaker_AddNodeToIndexRequest/with_valid_options/returns_application/json.yml
@@ -1,203 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"john@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1138'
- location:
- - http://localhost:7477/db/data/node/193
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/193/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/193/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/193/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/193\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/193/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/193/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/193/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"sarah@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1139'
- location:
- - http://localhost:7477/db/data/node/194
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/194/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/194/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/194/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/194/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/194/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/194/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/194\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/194/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/194/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/194/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/194/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/194/relationships\",\n
- \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: UTF-8
- string: ! '{"key":"email","value":"john@resistance.net","uri":"http://localhost:7477/db/data/node/193"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1234'
- location:
- - http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/193
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/193/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/193/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/193/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/193\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/193/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/193/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/193/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/193/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n },\n \"indexed\"
- : \"http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/193\"\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:56 GMT
-recorded_with: VCR 2.2.2
View
203 ...Request/with_valid_options/returns_the_Neo4j_REST_API_starting_point_response_request.yml
@@ -1,203 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"john@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1138'
- location:
- - http://localhost:7477/db/data/node/189
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/189/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/189/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/189/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/189\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/189/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/189/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/189/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"sarah@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1139'
- location:
- - http://localhost:7477/db/data/node/190
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/190/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/190/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/190/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/190/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/190/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/190/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/190\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/190/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/190/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/190/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/190/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/190/relationships\",\n
- \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: UTF-8
- string: ! '{"key":"email","value":"john@resistance.net","uri":"http://localhost:7477/db/data/node/189"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1234'
- location:
- - http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/189
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/189/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/189/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/189/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/189\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/189/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/189/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/189/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/189/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n },\n \"indexed\"
- : \"http://localhost:7477/db/data/index/node/users/email/john%40resistance.net/189\"\n}"
- http_version: !!null
- recorded_at: Wed, 25 Jul 2012 00:34:55 GMT
-recorded_with: VCR 2.2.2
View
120 ...cassettes/Keymaker_BatchRequest/when_a_resource_is_not_found/raises_BatchRequestError.yml
@@ -1,120 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/batch
- body:
- encoding: UTF-8
- string: ! '[{"method":"GET","to":"/node/999999999"}]'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 500
- message: !!null
- headers:
- content-length:
- - '2172'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"{\\n \\\"message\\\" : \\\"Cannot find node
- with id [999999999] in database.\\\",\\n \\\"exception\\\" : \\\"NodeNotFoundException\\\",\\n
- \ \\\"stacktrace\\\" : [ \\\"org.neo4j.server.rest.web.DatabaseActions.node(DatabaseActions.java:123)\\\",
- \\\"org.neo4j.server.rest.web.DatabaseActions.getNode(DatabaseActions.java:234)\\\",
- \\\"org.neo4j.server.rest.web.RestfulGraphDatabase.getNode(RestfulGraphDatabase.java:225)\\\",
- \\\"java.lang.reflect.Method.invoke(Method.java:597)\\\", \\\"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\\\",
- \\\"org.neo4j.server.web.Jetty6WebServer.invokeDirectly(Jetty6WebServer.java:270)\\\",
- \\\"org.neo4j.server.rest.batch.NonStreamingBatchOperations.invoke(NonStreamingBatchOperations.java:55)\\\",
- \\\"org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:178)\\\",
- \\\"org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:149)\\\",
- \\\"org.neo4j.server.rest.batch.NonStreamingBatchOperations.performBatchJobs(NonStreamingBatchOperations.java:48)\\\",
- \\\"org.neo4j.server.rest.web.BatchOperationService.batchProcess(BatchOperationService.java:117)\\\",
- \\\"org.neo4j.server.rest.web.BatchOperationService.performBatchOperations(BatchOperationService.java:71)\\\",
- \\\"java.lang.reflect.Method.invoke(Method.java:597)\\\", \\\"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\\\"
- ]\\n}\",\n \"exception\" : \"BatchOperationFailedException\",\n \"stacktrace\"
- : [ \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.invoke(NonStreamingBatchOperations.java:63)\",
- \"org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:178)\",
- \"org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:149)\",
- \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.performBatchJobs(NonStreamingBatchOperations.java:48)\",
- \"org.neo4j.server.rest.web.BatchOperationService.batchProcess(BatchOperationService.java:117)\",
- \"org.neo4j.server.rest.web.BatchOperationService.performBatchOperations(BatchOperationService.java:71)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-recorded_with: VCR 2.2.2
View
106 ...ssettes/Keymaker_BatchRequest/when_to_and_method_are_not_set/raises_BatchRequestError.yml
@@ -1,106 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/batch
- body:
- encoding: UTF-8
- string: ! '[{"foo":"WET","ot":"/node/1"}]'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 500
- message: !!null
- headers:
- content-length:
- - '816'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"\",\n \"exception\" : \"BatchOperationFailedException\",\n
- \ \"stacktrace\" : [ \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.invoke(NonStreamingBatchOperations.java:63)\",
- \"org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:178)\",
- \"org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:149)\",
- \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.performBatchJobs(NonStreamingBatchOperations.java:48)\",
- \"org.neo4j.server.rest.web.BatchOperationService.batchProcess(BatchOperationService.java:117)\",
- \"org.neo4j.server.rest.web.BatchOperationService.performBatchOperations(BatchOperationService.java:71)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-recorded_with: VCR 2.2.2
View
129 spec/cassettes/Keymaker_BatchRequest/with_valid_options/returns_a_200_status_code.yml
@@ -1,129 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/batch
- body:
- encoding: UTF-8
- string: ! '[{"method":"POST","to":"/node","id":0,"body":{"name":"John Connor"}},{"method":"POST","to":"/node","id":1,"body":{"name":"Sarah
- Connor"}},{"method":"POST","to":"{0}/relationships","id":3,"body":{"to":"{1}","data":{"since":"1985"},"type":"knows"}}]'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "[{\"id\":0,\"location\":\"http://localhost:7477/db/data/node/28\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/28/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/28/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/28/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/28/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/28/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/28/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/28\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/28/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/28/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/28/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/28/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/28/relationships\",\n
- \ \"data\" : {\n \"name\" : \"John Connor\"\n }\n},\"from\":\"/node\"},{\"id\":1,\"location\":\"http://localhost:7477/db/data/node/29\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/29/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/29/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/29/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/29/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/29/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/29/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/29\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/29/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/29/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/29/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/29/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/29/relationships\",\n
- \ \"data\" : {\n \"name\" : \"Sarah Connor\"\n }\n},\"from\":\"/node\"},{\"id\":3,\"location\":\"http://localhost:7477/db/data/relationship/3\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/28\",\n
- \ \"property\" : \"http://localhost:7477/db/data/relationship/3/properties/{key}\",\n
- \ \"self\" : \"http://localhost:7477/db/data/relationship/3\",\n \"properties\"
- : \"http://localhost:7477/db/data/relationship/3/properties\",\n \"type\"
- : \"knows\",\n \"end\" : \"http://localhost:7477/db/data/node/29\",\n \"data\"
- : {\n \"since\" : \"1985\"\n }\n},\"from\":\"http://localhost:7477/db/data/node/28/relationships\"}]"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-recorded_with: VCR 2.2.2
View
129 ...atchRequest/with_valid_options/runs_the_commands_and_returns_their_respective_results.yml
@@ -1,129 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/batch
- body:
- encoding: UTF-8
- string: ! '[{"method":"POST","to":"/node","id":0,"body":{"name":"John Connor"}},{"method":"POST","to":"/node","id":1,"body":{"name":"Sarah
- Connor"}},{"method":"POST","to":"{0}/relationships","id":3,"body":{"to":"{1}","data":{"since":"1985"},"type":"knows"}}]'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "[{\"id\":0,\"location\":\"http://localhost:7477/db/data/node/26\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/26/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/26/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/26/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/26/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/26/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/26/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/26\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/26/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/26/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/26/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/26/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/26/relationships\",\n
- \ \"data\" : {\n \"name\" : \"John Connor\"\n }\n},\"from\":\"/node\"},{\"id\":1,\"location\":\"http://localhost:7477/db/data/node/27\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/27/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/27/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/27/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/27/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/27/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/27/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/27\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/27/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/27/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/27/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/27/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/27/relationships\",\n
- \ \"data\" : {\n \"name\" : \"Sarah Connor\"\n }\n},\"from\":\"/node\"},{\"id\":3,\"location\":\"http://localhost:7477/db/data/relationship/2\",\"body\":{\n
- \ \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/26\",\n
- \ \"property\" : \"http://localhost:7477/db/data/relationship/2/properties/{key}\",\n
- \ \"self\" : \"http://localhost:7477/db/data/relationship/2\",\n \"properties\"
- : \"http://localhost:7477/db/data/relationship/2/properties\",\n \"type\"
- : \"knows\",\n \"end\" : \"http://localhost:7477/db/data/node/27\",\n \"data\"
- : {\n \"since\" : \"1985\"\n }\n},\"from\":\"http://localhost:7477/db/data/node/26/relationships\"}]"
- http_version: !!null
- recorded_at: Tue, 10 Jul 2012 02:33:49 GMT
-recorded_with: VCR 2.2.2
View
112 spec/cassettes/Keymaker_CreateNodeRequest/returns_a_201_status_code.yml
@@ -1,112 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1090'
- location:
- - http://localhost:7477/db/data/node/38
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/38/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/38/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/38/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/38/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/38/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/38/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/38\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/38/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/38/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/38/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/38/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/38/relationships\",\n
- \ \"data\" : {\n }\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-recorded_with: VCR 2.2.2
View
112 spec/cassettes/Keymaker_CreateNodeRequest/returns_application/json.yml
@@ -1,112 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1090'
- location:
- - http://localhost:7477/db/data/node/39
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/39/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/39/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/39/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/39/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/39/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/39/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/39\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/39/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/39/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/39/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/39/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/39/relationships\",\n
- \ \"data\" : {\n }\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:39 GMT
-recorded_with: VCR 2.2.2
View
112 ...s/Keymaker_CreateNodeRequest/with_properties/creates_a_node_with_the_given_properties.yml
@@ -1,112 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"name":"John Connor"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1117'
- location:
- - http://localhost:7477/db/data/node/40
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/40/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/40/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/40/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/40/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/40/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/40/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/40\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/40/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/40/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/40/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/40/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/40/relationships\",\n
- \ \"data\" : {\n \"name\" : \"John Connor\"\n }\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-recorded_with: VCR 2.2.2
View
112 spec/cassettes/Keymaker_CreateNodeRequest/without_properties/creates_an_empty_node.yml
@@ -1,112 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1090'
- location:
- - http://localhost:7477/db/data/node/41
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/41/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/41/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/41/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/41/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/41/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/41/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/41\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/41/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/41/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/41/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/41/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/41/relationships\",\n
- \ \"data\" : {\n }\n}"
- http_version: !!null
- recorded_at: Tue, 24 Jul 2012 21:06:40 GMT
-recorded_with: VCR 2.2.2
View
201 .../cassettes/Keymaker_CreateRelationshipRequest/with_invalid_options/raises_ClientError.yml
@@ -1,201 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"john@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1138'
- location:
- - http://localhost:7477/db/data/node/113
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/113/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/113/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/113/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/113/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/113/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/113/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/113\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/113/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/113/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/113/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/113/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/113/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"sarah@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1139'
- location:
- - http://localhost:7477/db/data/node/114
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/114/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/114/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/114/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/114/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/114/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/114/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/114\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/114/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/114/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/114/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/114/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/114/relationships\",\n
- \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node//relationships
- body:
- encoding: UTF-8
- string: ! '{"to":"http://localhost:7477/db/data/node/","type":null}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 404
- message: !!null
- headers:
- access-control-allow-origin:
- - ! '*'
- content-type:
- - text/html; charset=iso-8859-1
- cache-control:
- - must-revalidate,no-cache,no-store
- content-length:
- - '1392'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
- charset=ISO-8859-1\"/>\n<title>Error 404 Not Found</title>\n</head>\n<body><h2>HTTP
- ERROR 404</h2>\n<p>Problem accessing /db/data/node//relationships. Reason:\n<pre>
- \ Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n<br/>
- \ \n<br/> \n\n</body>\n</html>\n"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:08 GMT
-recorded_with: VCR 2.2.2
View
233 ...er_CreateRelationshipRequest/with_properties/creates_a_node_with_the_given_properties.yml
@@ -1,233 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 404
- message: !!null
- headers:
- content-length:
- - '422'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"message\" : \"No node index named 'users'.\",\n \"exception\"
- : \"NotFoundException\",\n \"stacktrace\" : [ \"org.neo4j.server.rest.web.DatabaseActions.removeNodeIndex(DatabaseActions.java:420)\",
- \"org.neo4j.server.rest.web.RestfulGraphDatabase.deleteNodeIndex(RestfulGraphDatabase.java:729)\",
- \"java.lang.reflect.Method.invoke(Method.java:597)\", \"org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62)\"
- ]\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"john@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1138'
- location:
- - http://localhost:7477/db/data/node/105
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/105/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/105/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/105/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/105/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/105/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/105/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/105\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/105/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/105/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/105/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/105/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/105/relationships\",\n
- \ \"data\" : {\n \"email\" : \"john@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node
- body:
- encoding: UTF-8
- string: ! '{"email":"sarah@resistance.net"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '1139'
- location:
- - http://localhost:7477/db/data/node/106
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"paged_traverse\" : \"http://localhost:7477/db/data/node/106/paged/traverse/{returnType}{?pageSize,leaseTime}\",\n
- \ \"outgoing_relationships\" : \"http://localhost:7477/db/data/node/106/relationships/out\",\n
- \ \"traverse\" : \"http://localhost:7477/db/data/node/106/traverse/{returnType}\",\n
- \ \"all_typed_relationships\" : \"http://localhost:7477/db/data/node/106/relationships/all/{-list|&|types}\",\n
- \ \"property\" : \"http://localhost:7477/db/data/node/106/properties/{key}\",\n
- \ \"all_relationships\" : \"http://localhost:7477/db/data/node/106/relationships/all\",\n
- \ \"self\" : \"http://localhost:7477/db/data/node/106\",\n \"properties\"
- : \"http://localhost:7477/db/data/node/106/properties\",\n \"outgoing_typed_relationships\"
- : \"http://localhost:7477/db/data/node/106/relationships/out/{-list|&|types}\",\n
- \ \"incoming_relationships\" : \"http://localhost:7477/db/data/node/106/relationships/in\",\n
- \ \"incoming_typed_relationships\" : \"http://localhost:7477/db/data/node/106/relationships/in/{-list|&|types}\",\n
- \ \"create_relationship\" : \"http://localhost:7477/db/data/node/106/relationships\",\n
- \ \"data\" : {\n \"email\" : \"sarah@resistance.net\"\n }\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: get
- uri: http://localhost:7477/db/data/
- body:
- encoding: US-ASCII
- string: ''
- headers: {}
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '748'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n \"CypherPlugin\" : {\n \"execute_query\"
- : \"http://localhost:7477/db/data/ext/CypherPlugin/graphdb/execute_query\"\n
- \ },\n \"GremlinPlugin\" : {\n \"execute_script\" : \"http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script\"\n
- \ }\n },\n \"node\" : \"http://localhost:7477/db/data/node\",\n \"node_index\"
- : \"http://localhost:7477/db/data/index/node\",\n \"relationship_index\"
- : \"http://localhost:7477/db/data/index/relationship\",\n \"extensions_info\"
- : \"http://localhost:7477/db/data/ext\",\n \"relationship_types\" : \"http://localhost:7477/db/data/relationship/types\",\n
- \ \"batch\" : \"http://localhost:7477/db/data/batch\",\n \"cypher\" : \"http://localhost:7477/db/data/cypher\",\n
- \ \"neo4j_version\" : \"1.8.M06-1-g87a127a\"\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: post
- uri: http://localhost:7477/db/data/node/106/relationships
- body:
- encoding: UTF-8
- string: ! '{"to":"http://localhost:7477/db/data/node/105","type":"birthed","data":{"location":"unknown","date":"1985-02-28"}}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 201
- message: !!null
- headers:
- content-length:
- - '444'
- location:
- - http://localhost:7477/db/data/relationship/18
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! "{\n \"extensions\" : {\n },\n \"start\" : \"http://localhost:7477/db/data/node/106\",\n
- \ \"property\" : \"http://localhost:7477/db/data/relationship/18/properties/{key}\",\n
- \ \"self\" : \"http://localhost:7477/db/data/relationship/18\",\n \"properties\"
- : \"http://localhost:7477/db/data/relationship/18/properties\",\n \"type\"
- : \"birthed\",\n \"end\" : \"http://localhost:7477/db/data/node/105\",\n
- \ \"data\" : {\n \"location\" : \"unknown\",\n \"date\" : \"1985-02-28\"\n
- \ }\n}"
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-recorded_with: VCR 2.2.2
View
196 ...assettes/Keymaker_CreateRelationshipRequest/with_properties/returns_a_201_status_code.yml
@@ -1,196 +0,0 @@
----
-http_interactions:
-- request:
- method: post
- uri: http://localhost:7477/db/data/ext/GremlinPlugin/graphdb/execute_script
- body:
- encoding: UTF-8
- string: ! '{"script":"g.clear();g.V()"}'
- headers:
- Content-Type:
- - application/json
- response:
- status:
- code: 200
- message: !!null
- headers:
- content-length:
- - '3'
- content-encoding:
- - UTF-8
- content-type:
- - application/json
- access-control-allow-origin:
- - ! '*'
- connection:
- - close
- server:
- - Jetty(6.1.25)
- body:
- encoding: US-ASCII
- string: ! '[ ]'
- http_version: !!null
- recorded_at: Tue, 31 Jul 2012 03:25:07 GMT
-- request:
- method: delete
- uri: http://localhost:7477/db/data/index/node/users
- body:
- encoding: US-ASCII
- string: ''