mailroute 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/Gemfile.lock +1 -1
  2. data/README.md +57 -50
  3. data/lib/mailroute.rb +3 -0
  4. data/lib/mailroute/models/anti_spam_modes.rb +11 -0
  5. data/lib/mailroute/models/email_account.rb +10 -0
  6. data/lib/mailroute/models/localpart_alias.rb +7 -0
  7. data/lib/mailroute/models/policy_domain.rb +2 -0
  8. data/lib/mailroute/models/policy_filter.rb +21 -0
  9. data/lib/mailroute/models/policy_user.rb +2 -0
  10. data/lib/mailroute/version.rb +1 -1
  11. data/requirements.txt +223 -0
  12. data/spec/lib/mailroute/models/email_account_spec.rb +39 -1
  13. data/spec/lib/mailroute/models/localpart_alias_spec.rb +34 -0
  14. data/spec/lib/mailroute/models/policy_filter_spec.rb +69 -0
  15. data/spec/vcr_cassettes/Mailroute_EmailAccount/_add_alias/adding_an_alias/should_add_an_alias_with_given_name.yml +106 -0
  16. data/spec/vcr_cassettes/Mailroute_EmailAccount/_add_alias/adding_an_alias/should_add_one_more_alias.yml +208 -0
  17. data/spec/vcr_cassettes/Mailroute_EmailAccount/_bulk_add_aliases/adding_aliases/should_add_aliases_with_given_names.yml +104 -0
  18. data/spec/vcr_cassettes/Mailroute_EmailAccount/_bulk_add_aliases/adding_aliases/should_add_one_more_alias.yml +206 -0
  19. data/spec/vcr_cassettes/Mailroute_LocalpartAlias/CRUD/should_create_read_update_and_delete_localpart_aliases.yml +736 -0
  20. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/aggressive_mode/anti_spam_preset/.yml +104 -0
  21. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/disabling_banned_filter/bypass_banned_checks/.yml +104 -0
  22. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/disabling_header_filter/bypass_header_checks/.yml +104 -0
  23. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/disabling_spam_filter/bypass_spam_checks/.yml +104 -0
  24. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/disabling_virus_filter/bypass_virus_checks/.yml +104 -0
  25. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_banned_filter/bypass_banned_checks/.yml +104 -0
  26. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_header_filter/bypass_header_checks/.yml +104 -0
  27. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_spam_filter/bypass_spam_checks/.yml +104 -0
  28. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_virus_filter/bypass_virus_checks/.yml +104 -0
  29. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/lenient_mode/anti_spam_preset/.yml +104 -0
  30. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/unknown_mode/should_raise_argument_error.yml +37 -0
  31. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/aggressive_mode/anti_spam_preset/.yml +104 -0
  32. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_banned_filter/bypass_banned_checks/.yml +104 -0
  33. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_header_filter/bypass_header_checks/.yml +104 -0
  34. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_spam_filter/bypass_spam_checks/.yml +104 -0
  35. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_virus_filter/bypass_virus_checks/.yml +104 -0
  36. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_banned_filter/bypass_banned_checks/.yml +104 -0
  37. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_header_filter/bypass_header_checks/.yml +104 -0
  38. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_spam_filter/bypass_spam_checks/.yml +104 -0
  39. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_virus_filter/bypass_virus_checks/.yml +104 -0
  40. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/lenient_mode/anti_spam_preset/.yml +104 -0
  41. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/unknown_mode/should_raise_argument_error.yml +37 -0
  42. metadata +78 -16
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Accept:
10
+ - application/json
11
+ Authorization:
12
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
13
+ response:
14
+ status:
15
+ code: 200
16
+ message: OK
17
+ headers:
18
+ Date:
19
+ - Sun, 05 May 2013 15:13:48 GMT
20
+ Server:
21
+ - nginx/1.2.6
22
+ Content-Type:
23
+ - application/json; charset=utf-8
24
+ Cache-Control:
25
+ - no-cache
26
+ Connection:
27
+ - keep-alive
28
+ Vary:
29
+ - Accept, Cookie
30
+ - Accept-Encoding
31
+ Transfer-Encoding:
32
+ - chunked
33
+ body:
34
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"a,b,c\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 08:01:07 -0700\", \"use_domain_notifications\": true}"
35
+ http_version:
36
+ recorded_at: Sun, 05 May 2013 15:13:48 GMT
37
+ - request:
38
+ method: post
39
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/mass_add_aliases/
40
+ body:
41
+ string: "{\"aliases\":[\"d\",\"e\"]}"
42
+ headers:
43
+ Content-Type:
44
+ - application/json
45
+ Accept:
46
+ - "*/*"
47
+ Authorization:
48
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
49
+ response:
50
+ status:
51
+ code: 202
52
+ message: ACCEPTED
53
+ headers:
54
+ Date:
55
+ - Sun, 05 May 2013 15:13:50 GMT
56
+ Server:
57
+ - nginx/1.2.6
58
+ Content-Type:
59
+ - text/html; charset=utf-8
60
+ Connection:
61
+ - keep-alive
62
+ Vary:
63
+ - Accept, Cookie
64
+ Transfer-Encoding:
65
+ - chunked
66
+ body:
67
+ string: ""
68
+ http_version:
69
+ recorded_at: Sun, 05 May 2013 15:13:50 GMT
70
+ - request:
71
+ method: get
72
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/?email_account=7718
73
+ body:
74
+ string: ""
75
+ headers:
76
+ Accept:
77
+ - application/json
78
+ Authorization:
79
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Date:
86
+ - Sun, 05 May 2013 15:13:51 GMT
87
+ Server:
88
+ - nginx/1.2.6
89
+ Content-Type:
90
+ - application/json; charset=utf-8
91
+ Cache-Control:
92
+ - no-cache
93
+ Connection:
94
+ - keep-alive
95
+ Vary:
96
+ - Accept, Cookie
97
+ - Accept-Encoding
98
+ Transfer-Encoding:
99
+ - chunked
100
+ body:
101
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 5}, \"objects\": [{\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8805, \"localpart\": \"a\", \"resource_uri\": \"/api/v1/localpart_alias/8805/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8806, \"localpart\": \"b\", \"resource_uri\": \"/api/v1/localpart_alias/8806/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8807, \"localpart\": \"c\", \"resource_uri\": \"/api/v1/localpart_alias/8807/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:50 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8808, \"localpart\": \"d\", \"resource_uri\": \"/api/v1/localpart_alias/8808/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:50 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:50 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8809, \"localpart\": \"e\", \"resource_uri\": \"/api/v1/localpart_alias/8809/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:50 -0700\"}]}"
102
+ http_version:
103
+ recorded_at: Sun, 05 May 2013 15:13:51 GMT
104
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,206 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Accept:
10
+ - application/json
11
+ Authorization:
12
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
13
+ response:
14
+ status:
15
+ code: 200
16
+ message: OK
17
+ headers:
18
+ Date:
19
+ - Sun, 05 May 2013 15:13:40 GMT
20
+ Server:
21
+ - nginx/1.2.6
22
+ Content-Type:
23
+ - application/json; charset=utf-8
24
+ Cache-Control:
25
+ - no-cache
26
+ Connection:
27
+ - keep-alive
28
+ Vary:
29
+ - Accept, Cookie
30
+ - Accept-Encoding
31
+ Transfer-Encoding:
32
+ - chunked
33
+ body:
34
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 08:01:07 -0700\", \"use_domain_notifications\": true}"
35
+ http_version:
36
+ recorded_at: Sun, 05 May 2013 15:13:40 GMT
37
+ - request:
38
+ method: get
39
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
40
+ body:
41
+ string: ""
42
+ headers:
43
+ Accept:
44
+ - application/json
45
+ Authorization:
46
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
47
+ response:
48
+ status:
49
+ code: 200
50
+ message: OK
51
+ headers:
52
+ Date:
53
+ - Sun, 05 May 2013 15:13:41 GMT
54
+ Server:
55
+ - nginx/1.2.6
56
+ Content-Type:
57
+ - application/json; charset=utf-8
58
+ Cache-Control:
59
+ - no-cache
60
+ Connection:
61
+ - keep-alive
62
+ Vary:
63
+ - Accept, Cookie
64
+ - Accept-Encoding
65
+ Transfer-Encoding:
66
+ - chunked
67
+ body:
68
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 08:01:07 -0700\", \"use_domain_notifications\": true}"
69
+ http_version:
70
+ recorded_at: Sun, 05 May 2013 15:13:41 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/?email_account=7718
74
+ body:
75
+ string: ""
76
+ headers:
77
+ Accept:
78
+ - application/json
79
+ Authorization:
80
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Date:
87
+ - Sun, 05 May 2013 15:13:43 GMT
88
+ Server:
89
+ - nginx/1.2.6
90
+ Content-Type:
91
+ - application/json; charset=utf-8
92
+ Cache-Control:
93
+ - no-cache
94
+ Connection:
95
+ - keep-alive
96
+ Vary:
97
+ - Accept, Cookie
98
+ - Accept-Encoding
99
+ Transfer-Encoding:
100
+ - chunked
101
+ body:
102
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
103
+ http_version:
104
+ recorded_at: Sun, 05 May 2013 15:13:43 GMT
105
+ - request:
106
+ method: post
107
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/mass_add_aliases/
108
+ body:
109
+ string: "{\"aliases\":[\"a\",\"b\",\"c\"]}"
110
+ headers:
111
+ Content-Type:
112
+ - application/json
113
+ Accept:
114
+ - "*/*"
115
+ Authorization:
116
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
117
+ response:
118
+ status:
119
+ code: 202
120
+ message: ACCEPTED
121
+ headers:
122
+ Date:
123
+ - Sun, 05 May 2013 15:13:44 GMT
124
+ Server:
125
+ - nginx/1.2.6
126
+ Content-Type:
127
+ - text/html; charset=utf-8
128
+ Connection:
129
+ - keep-alive
130
+ Vary:
131
+ - Accept, Cookie
132
+ Transfer-Encoding:
133
+ - chunked
134
+ body:
135
+ string: ""
136
+ http_version:
137
+ recorded_at: Sun, 05 May 2013 15:13:44 GMT
138
+ - request:
139
+ method: get
140
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
141
+ body:
142
+ string: ""
143
+ headers:
144
+ Accept:
145
+ - application/json
146
+ Authorization:
147
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
148
+ response:
149
+ status:
150
+ code: 200
151
+ message: OK
152
+ headers:
153
+ Date:
154
+ - Sun, 05 May 2013 15:13:45 GMT
155
+ Server:
156
+ - nginx/1.2.6
157
+ Content-Type:
158
+ - application/json; charset=utf-8
159
+ Cache-Control:
160
+ - no-cache
161
+ Connection:
162
+ - keep-alive
163
+ Vary:
164
+ - Accept, Cookie
165
+ - Accept-Encoding
166
+ Transfer-Encoding:
167
+ - chunked
168
+ body:
169
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"a,b,c\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 08:01:07 -0700\", \"use_domain_notifications\": true}"
170
+ http_version:
171
+ recorded_at: Sun, 05 May 2013 15:13:46 GMT
172
+ - request:
173
+ method: get
174
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/?email_account=7718
175
+ body:
176
+ string: ""
177
+ headers:
178
+ Accept:
179
+ - application/json
180
+ Authorization:
181
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
182
+ response:
183
+ status:
184
+ code: 200
185
+ message: OK
186
+ headers:
187
+ Date:
188
+ - Sun, 05 May 2013 15:13:46 GMT
189
+ Server:
190
+ - nginx/1.2.6
191
+ Content-Type:
192
+ - application/json; charset=utf-8
193
+ Cache-Control:
194
+ - no-cache
195
+ Connection:
196
+ - keep-alive
197
+ Vary:
198
+ - Accept, Cookie
199
+ - Accept-Encoding
200
+ Transfer-Encoding:
201
+ - chunked
202
+ body:
203
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 3}, \"objects\": [{\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8805, \"localpart\": \"a\", \"resource_uri\": \"/api/v1/localpart_alias/8805/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8806, \"localpart\": \"b\", \"resource_uri\": \"/api/v1/localpart_alias/8806/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}, {\"created_at\": \"Sun, 5 May 2013 08:13:44 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8807, \"localpart\": \"c\", \"resource_uri\": \"/api/v1/localpart_alias/8807/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 08:13:44 -0700\"}]}"
204
+ http_version:
205
+ recorded_at: Sun, 05 May 2013 15:13:47 GMT
206
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,736 @@
1
+ ---
2
+ recorded_with: VCR 2.4.0
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://admin-dev.mailroute.net/api/v1/contact_customer/8791/
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
14
+ response:
15
+ status:
16
+ code: 404
17
+ message: NOT FOUND
18
+ headers:
19
+ Vary:
20
+ - Accept, Cookie
21
+ - Accept-Encoding
22
+ Server:
23
+ - nginx/1.2.6
24
+ Date:
25
+ - Sun, 05 May 2013 14:32:58 GMT
26
+ Transfer-Encoding:
27
+ - chunked
28
+ Content-Type:
29
+ - text/html; charset=utf-8
30
+ Connection:
31
+ - keep-alive
32
+ body:
33
+ string: ""
34
+ http_version:
35
+ recorded_at: Sun, 05 May 2013 14:32:58 GMT
36
+ - request:
37
+ method: get
38
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8792/
39
+ body:
40
+ string: ""
41
+ headers:
42
+ Accept:
43
+ - application/json
44
+ Authorization:
45
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
46
+ response:
47
+ status:
48
+ code: 200
49
+ message: OK
50
+ headers:
51
+ Vary:
52
+ - Accept, Cookie
53
+ - Accept-Encoding
54
+ Server:
55
+ - nginx/1.2.6
56
+ Date:
57
+ - Sun, 05 May 2013 14:37:05 GMT
58
+ Transfer-Encoding:
59
+ - chunked
60
+ Cache-Control:
61
+ - no-cache
62
+ Content-Type:
63
+ - application/json; charset=utf-8
64
+ Connection:
65
+ - keep-alive
66
+ body:
67
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:37:03 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8792, \"localpart\": \"support\", \"resource_uri\": \"/api/v1/localpart_alias/8792/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:37:04 -0700\"}"
68
+ http_version:
69
+ recorded_at: Sun, 05 May 2013 14:37:05 GMT
70
+ - request:
71
+ method: put
72
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8792/
73
+ body:
74
+ string: "{\"created_at\":\"Sun, 5 May 2013 07:37:03 -0700\",\"type\":\"alias\",\"domain\":\"/api/v1/domain/8372/\",\"id\":8792,\"resource_uri\":\"/api/v1/localpart_alias/8792/\",\"localpart\":\"help\",\"email_account\":\"/api/v1/email_account/7718/\",\"updated_at\":\"Sun, 5 May 2013 07:37:04 -0700\"}"
75
+ headers:
76
+ Accept:
77
+ - "*/*"
78
+ Authorization:
79
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
80
+ Content-Type:
81
+ - application/json
82
+ response:
83
+ status:
84
+ code: 202
85
+ message: ACCEPTED
86
+ headers:
87
+ Vary:
88
+ - Accept, Cookie
89
+ Server:
90
+ - nginx/1.2.6
91
+ Date:
92
+ - Sun, 05 May 2013 14:37:06 GMT
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Content-Type:
96
+ - application/json; charset=utf-8
97
+ Connection:
98
+ - keep-alive
99
+ body:
100
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:37:03 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8792, \"localpart\": \"help\", \"pk\": \"8792\", \"resource_uri\": \"/api/v1/localpart_alias/8792/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:37:06 -0700\"}"
101
+ http_version:
102
+ recorded_at: Sun, 05 May 2013 14:37:06 GMT
103
+ - request:
104
+ method: get
105
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8793/
106
+ body:
107
+ string: ""
108
+ headers:
109
+ Accept:
110
+ - application/json
111
+ Authorization:
112
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
113
+ response:
114
+ status:
115
+ code: 200
116
+ message: OK
117
+ headers:
118
+ Vary:
119
+ - Accept, Cookie
120
+ - Accept-Encoding
121
+ Server:
122
+ - nginx/1.2.6
123
+ Date:
124
+ - Sun, 05 May 2013 14:37:56 GMT
125
+ Transfer-Encoding:
126
+ - chunked
127
+ Cache-Control:
128
+ - no-cache
129
+ Content-Type:
130
+ - application/json; charset=utf-8
131
+ Connection:
132
+ - keep-alive
133
+ body:
134
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:37:55 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8793, \"localpart\": \"support\", \"resource_uri\": \"/api/v1/localpart_alias/8793/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:37:55 -0700\"}"
135
+ http_version:
136
+ recorded_at: Sun, 05 May 2013 14:37:56 GMT
137
+ - request:
138
+ method: put
139
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8793/
140
+ body:
141
+ string: "{\"updated_at\":\"Sun, 5 May 2013 07:37:55 -0700\",\"created_at\":\"Sun, 5 May 2013 07:37:55 -0700\",\"email_account\":\"/api/v1/email_account/7718/\",\"id\":8793,\"domain\":\"/api/v1/domain/8372/\",\"resource_uri\":\"/api/v1/localpart_alias/8793/\",\"localpart\":\"help\",\"type\":\"alias\"}"
142
+ headers:
143
+ Accept:
144
+ - "*/*"
145
+ Authorization:
146
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
147
+ Content-Type:
148
+ - application/json
149
+ response:
150
+ status:
151
+ code: 202
152
+ message: ACCEPTED
153
+ headers:
154
+ Vary:
155
+ - Accept, Cookie
156
+ Server:
157
+ - nginx/1.2.6
158
+ Date:
159
+ - Sun, 05 May 2013 14:37:57 GMT
160
+ Transfer-Encoding:
161
+ - chunked
162
+ Content-Type:
163
+ - application/json; charset=utf-8
164
+ Connection:
165
+ - keep-alive
166
+ body:
167
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:37:55 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8793, \"localpart\": \"help\", \"pk\": \"8793\", \"resource_uri\": \"/api/v1/localpart_alias/8793/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:37:57 -0700\"}"
168
+ http_version:
169
+ recorded_at: Sun, 05 May 2013 14:37:57 GMT
170
+ - request:
171
+ method: get
172
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8793/
173
+ body:
174
+ string: ""
175
+ headers:
176
+ Accept:
177
+ - application/json
178
+ Authorization:
179
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
180
+ response:
181
+ status:
182
+ code: 200
183
+ message: OK
184
+ headers:
185
+ Vary:
186
+ - Accept, Cookie
187
+ - Accept-Encoding
188
+ Server:
189
+ - nginx/1.2.6
190
+ Date:
191
+ - Sun, 05 May 2013 14:38:01 GMT
192
+ Transfer-Encoding:
193
+ - chunked
194
+ Cache-Control:
195
+ - no-cache
196
+ Content-Type:
197
+ - application/json; charset=utf-8
198
+ Connection:
199
+ - keep-alive
200
+ body:
201
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:37:55 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8793, \"localpart\": \"help\", \"resource_uri\": \"/api/v1/localpart_alias/8793/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:37:57 -0700\"}"
202
+ http_version:
203
+ recorded_at: Sun, 05 May 2013 14:38:01 GMT
204
+ - request:
205
+ method: get
206
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8794/
207
+ body:
208
+ string: ""
209
+ headers:
210
+ Accept:
211
+ - application/json
212
+ Authorization:
213
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
214
+ response:
215
+ status:
216
+ code: 200
217
+ message: OK
218
+ headers:
219
+ Vary:
220
+ - Accept, Cookie
221
+ - Accept-Encoding
222
+ Server:
223
+ - nginx/1.2.6
224
+ Date:
225
+ - Sun, 05 May 2013 14:38:24 GMT
226
+ Transfer-Encoding:
227
+ - chunked
228
+ Cache-Control:
229
+ - no-cache
230
+ Content-Type:
231
+ - application/json; charset=utf-8
232
+ Connection:
233
+ - keep-alive
234
+ body:
235
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:38:23 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8794, \"localpart\": \"support\", \"resource_uri\": \"/api/v1/localpart_alias/8794/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:38:23 -0700\"}"
236
+ http_version:
237
+ recorded_at: Sun, 05 May 2013 14:38:24 GMT
238
+ - request:
239
+ method: put
240
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8794/
241
+ body:
242
+ string: "{\"localpart\":\"help\",\"domain\":\"/api/v1/domain/8372/\",\"type\":\"alias\",\"created_at\":\"Sun, 5 May 2013 07:38:23 -0700\",\"updated_at\":\"Sun, 5 May 2013 07:38:23 -0700\",\"email_account\":\"/api/v1/email_account/7718/\",\"id\":8794,\"resource_uri\":\"/api/v1/localpart_alias/8794/\"}"
243
+ headers:
244
+ Accept:
245
+ - "*/*"
246
+ Authorization:
247
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
248
+ Content-Type:
249
+ - application/json
250
+ response:
251
+ status:
252
+ code: 202
253
+ message: ACCEPTED
254
+ headers:
255
+ Vary:
256
+ - Accept, Cookie
257
+ Server:
258
+ - nginx/1.2.6
259
+ Date:
260
+ - Sun, 05 May 2013 14:38:25 GMT
261
+ Transfer-Encoding:
262
+ - chunked
263
+ Content-Type:
264
+ - application/json; charset=utf-8
265
+ Connection:
266
+ - keep-alive
267
+ body:
268
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:38:23 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8794, \"localpart\": \"help\", \"pk\": \"8794\", \"resource_uri\": \"/api/v1/localpart_alias/8794/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:38:25 -0700\"}"
269
+ http_version:
270
+ recorded_at: Sun, 05 May 2013 14:38:26 GMT
271
+ - request:
272
+ method: get
273
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8794/
274
+ body:
275
+ string: ""
276
+ headers:
277
+ Accept:
278
+ - application/json
279
+ Authorization:
280
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
281
+ response:
282
+ status:
283
+ code: 200
284
+ message: OK
285
+ headers:
286
+ Vary:
287
+ - Accept, Cookie
288
+ - Accept-Encoding
289
+ Server:
290
+ - nginx/1.2.6
291
+ Date:
292
+ - Sun, 05 May 2013 14:38:30 GMT
293
+ Transfer-Encoding:
294
+ - chunked
295
+ Cache-Control:
296
+ - no-cache
297
+ Content-Type:
298
+ - application/json; charset=utf-8
299
+ Connection:
300
+ - keep-alive
301
+ body:
302
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:38:23 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8794, \"localpart\": \"help\", \"resource_uri\": \"/api/v1/localpart_alias/8794/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:38:25 -0700\"}"
303
+ http_version:
304
+ recorded_at: Sun, 05 May 2013 14:38:30 GMT
305
+ - request:
306
+ method: delete
307
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8794/
308
+ body:
309
+ string: ""
310
+ headers:
311
+ Accept:
312
+ - application/json
313
+ Authorization:
314
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
315
+ response:
316
+ status:
317
+ code: 204
318
+ message: NO CONTENT
319
+ headers:
320
+ Vary:
321
+ - Accept, Cookie
322
+ Server:
323
+ - nginx/1.2.6
324
+ Date:
325
+ - Sun, 05 May 2013 14:38:31 GMT
326
+ Content-Type:
327
+ - text/html; charset=utf-8
328
+ Content-Length:
329
+ - "0"
330
+ Connection:
331
+ - keep-alive
332
+ body:
333
+ string: ""
334
+ http_version:
335
+ recorded_at: Sun, 05 May 2013 14:38:31 GMT
336
+ - request:
337
+ method: get
338
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8794/
339
+ body:
340
+ string: ""
341
+ headers:
342
+ Accept:
343
+ - application/json
344
+ Authorization:
345
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
346
+ response:
347
+ status:
348
+ code: 404
349
+ message: NOT FOUND
350
+ headers:
351
+ Vary:
352
+ - Accept, Cookie
353
+ - Accept-Encoding
354
+ Server:
355
+ - nginx/1.2.6
356
+ Date:
357
+ - Sun, 05 May 2013 14:38:32 GMT
358
+ Transfer-Encoding:
359
+ - chunked
360
+ Content-Type:
361
+ - text/html; charset=utf-8
362
+ Connection:
363
+ - keep-alive
364
+ body:
365
+ string: ""
366
+ http_version:
367
+ recorded_at: Sun, 05 May 2013 14:38:32 GMT
368
+ - request:
369
+ method: get
370
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
371
+ body:
372
+ string: ""
373
+ headers:
374
+ Accept:
375
+ - application/json
376
+ Authorization:
377
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
378
+ response:
379
+ status:
380
+ code: 200
381
+ message: OK
382
+ headers:
383
+ Vary:
384
+ - Accept, Cookie
385
+ - Accept-Encoding
386
+ Server:
387
+ - nginx/1.2.8
388
+ Date:
389
+ - Sun, 05 May 2013 14:41:11 GMT
390
+ Transfer-Encoding:
391
+ - chunked
392
+ Cache-Control:
393
+ - no-cache
394
+ Content-Type:
395
+ - application/json; charset=utf-8
396
+ Connection:
397
+ - keep-alive
398
+ body:
399
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 07:39:33 -0700\", \"use_domain_notifications\": true}"
400
+ http_version:
401
+ recorded_at: Sun, 05 May 2013 14:41:11 GMT
402
+ - request:
403
+ method: post
404
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/
405
+ body:
406
+ string: "{\"localpart\":\"support\",\"email_account\":\"/api/v1/email_account/7718/\"}"
407
+ headers:
408
+ Accept:
409
+ - "*/*"
410
+ Authorization:
411
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
412
+ Content-Type:
413
+ - application/json
414
+ response:
415
+ status:
416
+ code: 201
417
+ message: CREATED
418
+ headers:
419
+ Vary:
420
+ - Accept, Cookie
421
+ Server:
422
+ - nginx/1.2.6
423
+ Location:
424
+ - https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
425
+ Date:
426
+ - Sun, 05 May 2013 14:41:12 GMT
427
+ Transfer-Encoding:
428
+ - chunked
429
+ Content-Type:
430
+ - application/json; charset=utf-8
431
+ Connection:
432
+ - keep-alive
433
+ body:
434
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:41:12 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8796, \"localpart\": \"support\", \"resource_uri\": \"/api/v1/localpart_alias/8796/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:41:12 -0700\"}"
435
+ http_version:
436
+ recorded_at: Sun, 05 May 2013 14:41:12 GMT
437
+ - request:
438
+ method: get
439
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
440
+ body:
441
+ string: ""
442
+ headers:
443
+ Accept:
444
+ - application/json
445
+ Authorization:
446
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
447
+ response:
448
+ status:
449
+ code: 200
450
+ message: OK
451
+ headers:
452
+ Vary:
453
+ - Accept, Cookie
454
+ - Accept-Encoding
455
+ Server:
456
+ - nginx/1.2.6
457
+ Date:
458
+ - Sun, 05 May 2013 14:41:13 GMT
459
+ Transfer-Encoding:
460
+ - chunked
461
+ Cache-Control:
462
+ - no-cache
463
+ Content-Type:
464
+ - application/json; charset=utf-8
465
+ Connection:
466
+ - keep-alive
467
+ body:
468
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:41:12 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8796, \"localpart\": \"support\", \"resource_uri\": \"/api/v1/localpart_alias/8796/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:41:12 -0700\"}"
469
+ http_version:
470
+ recorded_at: Sun, 05 May 2013 14:41:13 GMT
471
+ - request:
472
+ method: put
473
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
474
+ body:
475
+ string: "{\"updated_at\":\"Sun, 5 May 2013 07:41:12 -0700\",\"type\":\"alias\",\"resource_uri\":\"/api/v1/localpart_alias/8796/\",\"created_at\":\"Sun, 5 May 2013 07:41:12 -0700\",\"domain\":\"/api/v1/domain/8372/\",\"localpart\":\"help\",\"id\":8796,\"email_account\":\"/api/v1/email_account/7718/\"}"
476
+ headers:
477
+ Accept:
478
+ - "*/*"
479
+ Authorization:
480
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
481
+ Content-Type:
482
+ - application/json
483
+ response:
484
+ status:
485
+ code: 202
486
+ message: ACCEPTED
487
+ headers:
488
+ Vary:
489
+ - Accept, Cookie
490
+ Server:
491
+ - nginx/1.2.6
492
+ Date:
493
+ - Sun, 05 May 2013 14:41:15 GMT
494
+ Transfer-Encoding:
495
+ - chunked
496
+ Content-Type:
497
+ - application/json; charset=utf-8
498
+ Connection:
499
+ - keep-alive
500
+ body:
501
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:41:12 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8796, \"localpart\": \"help\", \"pk\": \"8796\", \"resource_uri\": \"/api/v1/localpart_alias/8796/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:41:15 -0700\"}"
502
+ http_version:
503
+ recorded_at: Sun, 05 May 2013 14:41:15 GMT
504
+ - request:
505
+ method: get
506
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
507
+ body:
508
+ string: ""
509
+ headers:
510
+ Accept:
511
+ - application/json
512
+ Authorization:
513
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
514
+ response:
515
+ status:
516
+ code: 200
517
+ message: OK
518
+ headers:
519
+ Vary:
520
+ - Accept, Cookie
521
+ - Accept-Encoding
522
+ Server:
523
+ - nginx/1.2.6
524
+ Date:
525
+ - Sun, 05 May 2013 14:41:16 GMT
526
+ Transfer-Encoding:
527
+ - chunked
528
+ Cache-Control:
529
+ - no-cache
530
+ Content-Type:
531
+ - application/json; charset=utf-8
532
+ Connection:
533
+ - keep-alive
534
+ body:
535
+ string: "{\"absolute_url\": \"/user/7718/\", \"aliases\": \"help\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Sun, 5 May 2013 07:41:15 -0700\", \"use_domain_notifications\": true}"
536
+ http_version:
537
+ recorded_at: Sun, 05 May 2013 14:41:16 GMT
538
+ - request:
539
+ method: get
540
+ uri: https://admin-dev.mailroute.net/api/v1/domain/8372/
541
+ body:
542
+ string: ""
543
+ headers:
544
+ Accept:
545
+ - application/json
546
+ Authorization:
547
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
548
+ response:
549
+ status:
550
+ code: 200
551
+ message: OK
552
+ headers:
553
+ Vary:
554
+ - Accept, Cookie
555
+ - Accept-Encoding
556
+ Server:
557
+ - nginx/1.2.6
558
+ Date:
559
+ - Sun, 05 May 2013 14:41:17 GMT
560
+ Transfer-Encoding:
561
+ - chunked
562
+ Cache-Control:
563
+ - no-cache
564
+ Content-Type:
565
+ - application/json; charset=utf-8
566
+ Connection:
567
+ - keep-alive
568
+ body:
569
+ string: "{\"absolute_url\": \"/domain/8372/\", \"active\": true, \"created_at\": \"Tue, 30 Apr 2013 12:02:15 -0700\", \"customer\": \"/api/v1/customer/11371/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 8372, \"name\": \"example.com\", \"notification_tasks\": [\"/api/v1/notification_domain_task/16919/\"], \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/16390/\", \"resource_uri\": \"/api/v1/domain/8372/\", \"updated_at\": \"Sun, 5 May 2013 06:50:37 -0700\", \"userlist_complete\": true}"
570
+ http_version:
571
+ recorded_at: Sun, 05 May 2013 14:41:17 GMT
572
+ - request:
573
+ method: get
574
+ uri: https://admin-dev.mailroute.net/api/v1/domain/8372/
575
+ body:
576
+ string: ""
577
+ headers:
578
+ Accept:
579
+ - application/json
580
+ Authorization:
581
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
582
+ response:
583
+ status:
584
+ code: 200
585
+ message: OK
586
+ headers:
587
+ Vary:
588
+ - Accept, Cookie
589
+ - Accept-Encoding
590
+ Server:
591
+ - nginx/1.2.6
592
+ Date:
593
+ - Sun, 05 May 2013 14:41:18 GMT
594
+ Transfer-Encoding:
595
+ - chunked
596
+ Cache-Control:
597
+ - no-cache
598
+ Content-Type:
599
+ - application/json; charset=utf-8
600
+ Connection:
601
+ - keep-alive
602
+ body:
603
+ string: "{\"absolute_url\": \"/domain/8372/\", \"active\": true, \"created_at\": \"Tue, 30 Apr 2013 12:02:15 -0700\", \"customer\": \"/api/v1/customer/11371/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 8372, \"name\": \"example.com\", \"notification_tasks\": [\"/api/v1/notification_domain_task/16919/\"], \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/16390/\", \"resource_uri\": \"/api/v1/domain/8372/\", \"updated_at\": \"Sun, 5 May 2013 06:50:37 -0700\", \"userlist_complete\": true}"
604
+ http_version:
605
+ recorded_at: Sun, 05 May 2013 14:41:18 GMT
606
+ - request:
607
+ method: get
608
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
609
+ body:
610
+ string: ""
611
+ headers:
612
+ Accept:
613
+ - application/json
614
+ Authorization:
615
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
616
+ response:
617
+ status:
618
+ code: 200
619
+ message: OK
620
+ headers:
621
+ Vary:
622
+ - Accept, Cookie
623
+ - Accept-Encoding
624
+ Server:
625
+ - nginx/1.2.6
626
+ Date:
627
+ - Sun, 05 May 2013 14:41:19 GMT
628
+ Transfer-Encoding:
629
+ - chunked
630
+ Cache-Control:
631
+ - no-cache
632
+ Content-Type:
633
+ - application/json; charset=utf-8
634
+ Connection:
635
+ - keep-alive
636
+ body:
637
+ string: "{\"created_at\": \"Sun, 5 May 2013 07:41:12 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 8796, \"localpart\": \"help\", \"resource_uri\": \"/api/v1/localpart_alias/8796/\", \"type\": \"alias\", \"updated_at\": \"Sun, 5 May 2013 07:41:15 -0700\"}"
638
+ http_version:
639
+ recorded_at: Sun, 05 May 2013 14:41:19 GMT
640
+ - request:
641
+ method: delete
642
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
643
+ body:
644
+ string: ""
645
+ headers:
646
+ Accept:
647
+ - application/json
648
+ Authorization:
649
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
650
+ response:
651
+ status:
652
+ code: 204
653
+ message: NO CONTENT
654
+ headers:
655
+ Vary:
656
+ - Accept, Cookie
657
+ Server:
658
+ - nginx/1.2.6
659
+ Date:
660
+ - Sun, 05 May 2013 14:41:20 GMT
661
+ Content-Type:
662
+ - text/html; charset=utf-8
663
+ Content-Length:
664
+ - "0"
665
+ Connection:
666
+ - keep-alive
667
+ body:
668
+ string: ""
669
+ http_version:
670
+ recorded_at: Sun, 05 May 2013 14:41:20 GMT
671
+ - request:
672
+ method: get
673
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/8796/
674
+ body:
675
+ string: ""
676
+ headers:
677
+ Accept:
678
+ - application/json
679
+ Authorization:
680
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
681
+ response:
682
+ status:
683
+ code: 404
684
+ message: NOT FOUND
685
+ headers:
686
+ Vary:
687
+ - Accept, Cookie
688
+ - Accept-Encoding
689
+ Server:
690
+ - nginx/1.2.6
691
+ Date:
692
+ - Sun, 05 May 2013 14:41:21 GMT
693
+ Transfer-Encoding:
694
+ - chunked
695
+ Content-Type:
696
+ - text/html; charset=utf-8
697
+ Connection:
698
+ - keep-alive
699
+ body:
700
+ string: ""
701
+ http_version:
702
+ recorded_at: Sun, 05 May 2013 14:41:21 GMT
703
+ - request:
704
+ method: get
705
+ uri: https://admin-dev.mailroute.net/api/v1/localpart_alias/?email_account=7718
706
+ body:
707
+ string: ""
708
+ headers:
709
+ Accept:
710
+ - application/json
711
+ Authorization:
712
+ - ApiKey test_ruby:93ec480a01deb532ffb592ba711013e14422c4f1
713
+ response:
714
+ status:
715
+ code: 200
716
+ message: OK
717
+ headers:
718
+ Vary:
719
+ - Accept, Cookie
720
+ - Accept-Encoding
721
+ Server:
722
+ - nginx/1.2.6
723
+ Date:
724
+ - Sun, 05 May 2013 14:41:22 GMT
725
+ Transfer-Encoding:
726
+ - chunked
727
+ Cache-Control:
728
+ - no-cache
729
+ Content-Type:
730
+ - application/json; charset=utf-8
731
+ Connection:
732
+ - keep-alive
733
+ body:
734
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
735
+ http_version:
736
+ recorded_at: Sun, 05 May 2013 14:41:22 GMT