---
http_interactions:
- request:
method: get
uri: http://admin:password@localhost:8080/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 "U2VydmVy":
- !binary |-
QXBhY2hlLUNveW90ZS8xLjE=
!binary "Q29udGVudC1UeXBl":
- !binary |-
YXBwbGljYXRpb24vanNvbg==
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
- !binary |-
Y2h1bmtlZA==
!binary "RGF0ZQ==":
- !binary |-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
body:
encoding: US-ASCII
string: ! '[{"id":115,"domain":"tesla.com","name":"another rule ","created":1376029963000,"updated":1376029963000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":215,"directionType":"group","freeValue":"development","domain":"tesla.com","account":null,"group":"development"},"toDirection":{"id":216,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"
\n \n This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.\n
\n"},{"propertyKey":"return.message.plain","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
"}]},{"id":116,"domain":"tesla.com","name":"marketing
rule","created":1376029996000,"updated":1376029996000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":217,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":218,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"properties":[{"propertyKey":"return.message","propertyValue":"\n \n This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.\n
\n"},{"propertyKey":"return.message.plain","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
"}]},{"id":117,"domain":"tesla.com","name":"marketing","created":1376030034000,"updated":1376030034000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":219,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"toDirection":{"id":220,"directionType":"anyoneelse","freeValue":"anyoneelse","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"\n \n This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.\n
\n"},{"propertyKey":"return.message.plain","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
"}]}]'
http_version:
recorded_at: Tue, 13 Aug 2013 16:33:59 GMT
- request:
method: put
uri: http://admin:password@localhost:8080/webapi/api/v1/domains/tesla.com/rules/115
body:
encoding: UTF-8
string: ! '{"id":115,"domain":"tesla.com","name":"another rule more name","created":1376029963000,"updated":1376029963000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":215,"directionType":"group","freeValue":"development","domain":"tesla.com","account":null,"group":"development"},"toDirection":{"id":216,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"another
content"},{"propertyKey":"return.message.plain","propertyValue":"This message
is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
"}]}'
headers:
Accept:
- application/json
Content-Type:
- application/json
Authorization:
- Basic YWRtaW46cGFzc3dvcmQ=
response:
status:
code: 200
message: !binary |-
T0s=
headers:
!binary "U2VydmVy":
- !binary |-
QXBhY2hlLUNveW90ZS8xLjE=
!binary "Q29udGVudC1MZW5ndGg=":
- !binary |-
MA==
!binary "RGF0ZQ==":
- !binary |-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
body:
encoding: US-ASCII
string: ''
http_version:
recorded_at: Tue, 13 Aug 2013 16:33:59 GMT
- request:
method: get
uri: http://admin:password@localhost:8080/webapi/api/v1/domains/tesla.com/rules/115
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 "U2VydmVy":
- !binary |-
QXBhY2hlLUNveW90ZS8xLjE=
!binary "Q29udGVudC1UeXBl":
- !binary |-
YXBwbGljYXRpb24vanNvbg==
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
- !binary |-
Y2h1bmtlZA==
!binary "RGF0ZQ==":
- !binary |-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
body:
encoding: US-ASCII
string: ! '{"id":115,"domain":"tesla.com","name":"another rule more name","created":1376029963000,"updated":1376030045000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":215,"directionType":"group","freeValue":"development","domain":"tesla.com","account":null,"group":"development"},"toDirection":{"id":216,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"another
content"},{"propertyKey":"return.message.plain","propertyValue":"This message
is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"This
message is intended only for ${mxrecipient}. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly prohibited.
"}]}'
http_version:
recorded_at: Tue, 13 Aug 2013 16:33:59 GMT
recorded_with: VCR 2.5.0