--- http_interactions: - request: method: get uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules body: encoding: US-ASCII string: '' headers: Accept: - application/json Content-Type: - application/json Authorization: - Basic YWRtaW46cGFzc3dvcmQ= response: status: code: 200 message: !binary |- T0s= headers: !binary "RGF0ZQ==": - !binary |- VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxNSBHTVQ= !binary "U2VydmVy": - !binary |- QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ== !binary "Q29udGVudC1MZW5ndGg=": - !binary |- Nzg3 !binary "Q29udGVudC1UeXBl": - !binary |- YXBwbGljYXRpb24vanNvbg== body: encoding: US-ASCII string: ! '[{"id":194,"domain":"tesla.com","name":"The rules for sales","created":1379020870000,"updated":1379020870000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":376,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":377,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"

Think before you print and save a tree.

"},{"propertyKey":"return.message.plain","propertyValue":"\n----------------\nThink before you print and save a tree.r\n\n"},{"propertyKey":"interParsing","propertyValue":"true"}]}]' http_version: recorded_at: Thu, 12 Sep 2013 21:21:14 GMT - request: method: delete uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules/194 body: encoding: US-ASCII string: '' headers: Accept: - application/json Content-Type: - application/json Authorization: - Basic YWRtaW46cGFzc3dvcmQ= response: status: code: 200 message: !binary |- T0s= headers: !binary "RGF0ZQ==": - !binary |- VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxNSBHTVQ= !binary "U2VydmVy": - !binary |- QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ== !binary "Q29udGVudC1MZW5ndGg=": - !binary |- MA== !binary "Q29udGVudC1UeXBl": - !binary |- dGV4dC9wbGFpbg== body: encoding: US-ASCII string: '' http_version: recorded_at: Thu, 12 Sep 2013 21:21:15 GMT - request: method: post uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules body: encoding: UTF-8 string: ! '{"domain":"tesla.com","twoWays":false,"enabled":true,"name":"The rules for sales","created":"1375998105095","fromDirection":{"id":null,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":null,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"

Think before you print and save a tree.

"},{"propertyKey":"return.message.plain","propertyValue":"\r\n----------------\r\nThink before you print and save a tree.r\n\r\n"},{"propertyKey":"interParsing","propertyValue":true}],"component":"org.mxhero.feature.disclaimer"}' headers: Accept: - application/json Content-Type: - application/json Authorization: - Basic YWRtaW46cGFzc3dvcmQ= response: status: code: 201 message: !binary |- Q3JlYXRlZA== headers: !binary "RGF0ZQ==": - !binary |- VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxNiBHTVQ= !binary "U2VydmVy": - !binary |- QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ== !binary "Q29udGVudC1MZW5ndGg=": - !binary |- Nzg1 !binary "Q29udGVudC1UeXBl": - !binary |- YXBwbGljYXRpb24vanNvbg== body: encoding: US-ASCII string: ! '{"id":195,"domain":"tesla.com","name":"The rules for sales","created":1379020876000,"updated":1379020876000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":378,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":379,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"

Think before you print and save a tree.

"},{"propertyKey":"return.message.plain","propertyValue":"\n----------------\nThink before you print and save a tree.r\n\n"},{"propertyKey":"interParsing","propertyValue":"true"}]}' http_version: recorded_at: Thu, 12 Sep 2013 21:21:15 GMT - request: method: post uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules body: encoding: UTF-8 string: ! '{"domain":"tesla.com","twoWays":false,"enabled":true,"name":"The rules for sales","created":"1375998105095","fromDirection":{"id":null,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":null,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"

Think before you print and save a tree.

"},{"propertyKey":"return.message.plain","propertyValue":"\r\n----------------\r\nThink before you print and save a tree.r\n\r\n"},{"propertyKey":"interParsing","propertyValue":true}],"component":"org.mxhero.feature.disclaimer"}' headers: Accept: - application/json Content-Type: - application/json Authorization: - Basic YWRtaW46cGFzc3dvcmQ= response: status: code: 500 message: !binary |- SW50ZXJuYWwgU2VydmVyIEVycm9y headers: !binary "RGF0ZQ==": - !binary |- VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxNiBHTVQ= !binary "U2VydmVy": - !binary |- QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ== !binary "Q29udGVudC1MZW5ndGg=": - !binary |- MTIz !binary "Q29ubmVjdGlvbg==": - !binary |- Y2xvc2U= !binary "Q29udGVudC1UeXBl": - !binary |- YXBwbGljYXRpb24vanNvbg== body: encoding: US-ASCII string: ! '{"status":500,"code":500,"developerMessage":"rules.already.exists.for.component","moreInfoUrl":"mailto:support@mxhero.com"}' http_version: recorded_at: Thu, 12 Sep 2013 21:21:16 GMT recorded_with: VCR 2.5.0