dnsimple 2.0.0.alpha2 → 2.0.0.alpha3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.markdown +6 -2
  3. data/README.markdown +32 -30
  4. data/dnsimple.gemspec +1 -2
  5. data/lib/dnsimple.rb +2 -13
  6. data/lib/dnsimple/client.rb +164 -53
  7. data/lib/dnsimple/client/certificates_service.rb +98 -0
  8. data/lib/dnsimple/client/client_service.rb +8 -0
  9. data/lib/dnsimple/client/contacts_service.rb +82 -0
  10. data/lib/dnsimple/client/domains_service.rb +333 -0
  11. data/lib/dnsimple/client/name_servers_service.rb +69 -0
  12. data/lib/dnsimple/client/registrars_service.rb +105 -0
  13. data/lib/dnsimple/client/services_service.rb +95 -0
  14. data/lib/dnsimple/client/templates_service.rb +180 -0
  15. data/lib/dnsimple/client/users_service.rb +37 -0
  16. data/lib/dnsimple/compatibility.rb +46 -0
  17. data/lib/dnsimple/default.rb +86 -0
  18. data/lib/dnsimple/error.rb +7 -11
  19. data/lib/dnsimple/extra.rb +54 -0
  20. data/lib/dnsimple/struct.rb +29 -0
  21. data/lib/dnsimple/struct/certificate.rb +56 -0
  22. data/lib/dnsimple/struct/contact.rb +61 -0
  23. data/lib/dnsimple/struct/domain.rb +40 -0
  24. data/lib/dnsimple/struct/email_forward.rb +14 -0
  25. data/lib/dnsimple/struct/extended_attribute.rb +39 -0
  26. data/lib/dnsimple/struct/membership.rb +22 -0
  27. data/lib/dnsimple/struct/price.rb +16 -0
  28. data/lib/dnsimple/struct/record.rb +22 -0
  29. data/lib/dnsimple/struct/service.rb +19 -0
  30. data/lib/dnsimple/struct/template.rb +19 -0
  31. data/lib/dnsimple/struct/template_record.rb +24 -0
  32. data/lib/dnsimple/struct/transfer_order.rb +10 -0
  33. data/lib/dnsimple/struct/user.rb +17 -0
  34. data/lib/dnsimple/struct/whois_privacy.rb +19 -0
  35. data/lib/dnsimple/version.rb +1 -1
  36. data/spec/dnsimple/client/certificates_service_spec.rb +196 -0
  37. data/spec/dnsimple/client/contacts_service_spec.rb +179 -0
  38. data/spec/dnsimple/client/domains_service_spec.rb +662 -0
  39. data/spec/dnsimple/client/name_servers_service_spec.rb +131 -0
  40. data/spec/dnsimple/client/registrars_service_spec.rb +160 -0
  41. data/spec/dnsimple/client/services_service_spec.rb +162 -0
  42. data/spec/dnsimple/client/templates_service_spec.rb +371 -0
  43. data/spec/dnsimple/client/users_service_spec.rb +70 -0
  44. data/spec/dnsimple/client_spec.rb +108 -99
  45. data/spec/dnsimple/compatibility_spec.rb +57 -0
  46. data/spec/files/2fa/exchange-token.http +8 -11
  47. data/spec/files/badgateway.http +14 -0
  48. data/spec/files/certificates/configure/success.http +19 -0
  49. data/spec/files/certificates/index/success.http +1 -1
  50. data/spec/files/certificates/notfound.http +19 -0
  51. data/spec/files/certificates/purchase/success.http +19 -0
  52. data/spec/files/certificates/show/success.http +1 -1
  53. data/spec/files/certificates/submit/success.http +19 -0
  54. data/spec/files/contacts/create/badrequest-missingcontact.http +19 -0
  55. data/spec/files/contacts/create/badrequest-validationerror.http +19 -0
  56. data/spec/files/contacts/create/created.http +22 -0
  57. data/spec/files/contacts/delete/success-204.http +18 -0
  58. data/spec/files/{extended_attributes/com.http → contacts/delete/success.http} +5 -5
  59. data/spec/files/{domains/auto_renewal_enable → contacts/index}/success.http +6 -6
  60. data/spec/files/contacts/notfound.http +19 -0
  61. data/spec/files/contacts/update/success.http +21 -0
  62. data/spec/files/domains/create/created.http +21 -0
  63. data/spec/files/domains/index/success.http +11 -9
  64. data/spec/files/domains/notfound.http +11 -9
  65. data/spec/files/domains/show/success.http +12 -10
  66. data/spec/files/domains_autorenewal/disable/success.http +21 -0
  67. data/spec/files/domains_autorenewal/enable/success.http +21 -0
  68. data/spec/files/domains_autorenewal/notfound-domain.http +19 -0
  69. data/spec/files/domains_forwards/create/created.http +22 -0
  70. data/spec/files/domains_forwards/delete/success.http +17 -0
  71. data/spec/files/domains_forwards/get/success.http +21 -0
  72. data/spec/files/domains_forwards/list/success.http +21 -0
  73. data/spec/files/domains_forwards/notfound-domain.http +19 -0
  74. data/spec/files/domains_forwards/notfound.http +19 -0
  75. data/spec/files/domains_records/create/created.http +21 -0
  76. data/spec/files/domains_records/delete/success-204.http +18 -0
  77. data/spec/files/{contacts/show/notfound.http → domains_records/delete/success.http} +9 -7
  78. data/spec/files/{records → domains_records}/index/success.http +0 -0
  79. data/spec/files/{records/show → domains_records}/notfound.http +1 -1
  80. data/spec/files/{records → domains_records}/show/success.http +0 -0
  81. data/spec/files/domains_records/update/success.http +21 -0
  82. data/spec/files/domains_sharing/create/success.http +21 -0
  83. data/spec/files/domains_sharing/delete/success.http +17 -0
  84. data/spec/files/domains_sharing/list/success.http +21 -0
  85. data/spec/files/domains_sharing/notfound-domain.http +19 -0
  86. data/spec/files/domains_sharing/notfound.http +19 -0
  87. data/spec/files/domains_whois_privacy/disable/success.http +21 -0
  88. data/spec/files/domains_whois_privacy/enable/success.http +22 -0
  89. data/spec/files/domains_zones/get/success.http +21 -0
  90. data/spec/files/domains_zones/notfound-domain.http +19 -0
  91. data/spec/files/{domains/auto_renewal_disable/notfound.http → nameservers/change/success.http} +23 -21
  92. data/spec/files/nameservers/deregister/success.http +17 -0
  93. data/spec/files/{domains/auto_renewal_enable/notfound.http → nameservers/list/success.http} +23 -21
  94. data/spec/files/nameservers/notfound-domain.http +19 -0
  95. data/spec/files/nameservers/register/badrequest-valueerror.http +19 -0
  96. data/spec/files/nameservers/register/success.http +21 -0
  97. data/spec/files/registrars/check/available.http +19 -0
  98. data/spec/files/registrars/check/registered.http +21 -0
  99. data/spec/files/registrars/register/badrequest-missingdomain.http +19 -0
  100. data/spec/files/registrars/register/badrequest-missingregistrant.http +19 -0
  101. data/spec/files/registrars/register/success.http +21 -0
  102. data/spec/files/registrars/renew/badrequest-missingrenewal.http +19 -0
  103. data/spec/files/registrars/renew/badrequest-unable.http +19 -0
  104. data/spec/files/registrars/renew/success.http +21 -0
  105. data/spec/files/registrars/transfer/success.http +21 -0
  106. data/spec/files/registrars_extended_attributes/list/success.http +21 -0
  107. data/spec/files/registrars_prices/list/success.http +21 -0
  108. data/spec/files/services/applied/success.http +21 -0
  109. data/spec/files/services/apply/success.http +21 -0
  110. data/spec/files/services/available/success.http +21 -0
  111. data/spec/files/services/index/success.http +21 -0
  112. data/spec/files/services/notfound.http +19 -0
  113. data/spec/files/services/show/success.http +21 -0
  114. data/spec/files/services/unapply/success.http +21 -0
  115. data/spec/files/subscription/show/success.http +21 -0
  116. data/spec/files/templates/apply/success.http +21 -0
  117. data/spec/files/templates/create/created.http +22 -0
  118. data/spec/files/templates/delete/success-204.http +21 -0
  119. data/spec/files/templates/delete/success.http +21 -0
  120. data/spec/files/templates/index/success.http +21 -0
  121. data/spec/files/templates/notfound.http +19 -0
  122. data/spec/files/templates/show/success.http +12 -10
  123. data/spec/files/templates/update/success.http +21 -0
  124. data/spec/files/templates_records/create/created.http +22 -0
  125. data/spec/files/templates_records/delete/success-204.http +19 -0
  126. data/spec/files/templates_records/delete/success.http +21 -0
  127. data/spec/files/templates_records/index/success.http +21 -0
  128. data/spec/files/templates_records/notfound.http +19 -0
  129. data/spec/files/templates_records/show/success.http +21 -0
  130. data/spec/files/templates_records/update/success.http +21 -0
  131. data/spec/files/users/user/success.http +21 -0
  132. data/spec/spec_helper.rb +0 -2
  133. metadata +206 -73
  134. data/lib/dnsimple/base.rb +0 -10
  135. data/lib/dnsimple/certificate.rb +0 -143
  136. data/lib/dnsimple/contact.rb +0 -157
  137. data/lib/dnsimple/domain.rb +0 -252
  138. data/lib/dnsimple/extended_attribute.rb +0 -52
  139. data/lib/dnsimple/record.rb +0 -94
  140. data/lib/dnsimple/service.rb +0 -42
  141. data/lib/dnsimple/template.rb +0 -65
  142. data/lib/dnsimple/template_record.rb +0 -80
  143. data/lib/dnsimple/transfer_order.rb +0 -34
  144. data/lib/dnsimple/user.rb +0 -50
  145. data/spec/dnsimple/certificate_spec.rb +0 -59
  146. data/spec/dnsimple/contact_spec.rb +0 -45
  147. data/spec/dnsimple/domain_spec.rb +0 -241
  148. data/spec/dnsimple/extended_attributes_spec.rb +0 -54
  149. data/spec/dnsimple/record_spec.rb +0 -51
  150. data/spec/dnsimple/template_spec.rb +0 -31
  151. data/spec/dnsimple/user_spec.rb +0 -70
  152. data/spec/files/account/user/success.http +0 -19
  153. data/spec/files/certificates/show/notfound.http +0 -17
  154. data/spec/files/domains/auto_renewal_disable/success.http +0 -23
  155. data/spec/files/domains/create/success.http +0 -19
  156. data/spec/files/extended_attributes/ca.http +0 -19
  157. data/spec/files/extended_attributes/success.http +0 -19
  158. data/spec/files/templates/show/notfound.http +0 -17
@@ -1,19 +1,21 @@
1
1
  HTTP/1.1 200 OK
2
- Server: nginx/1.4.4
3
- Date: Tue, 14 Jan 2014 19:03:37 GMT
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 20:27:04 GMT
4
4
  Content-Type: application/json; charset=utf-8
5
5
  Transfer-Encoding: chunked
6
- Connection: close
6
+ Connection: keep-alive
7
7
  Status: 200 OK
8
- X-Dnsimple-API-Version: 1.0.0
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
9
12
  Access-Control-Allow-Origin: *
10
- Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-Dnsimple-Token,X-Dnsimple-Domain-Token,X-CSRF-Token,x-requested-with
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
14
  Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
- X-UA-Compatible: IE=Edge,chrome=1
13
- ETag: "3f9496912d04f422c7f083b93bd6e9e3"
15
+ ETag: "882c85c0756e35625681ceb5262b0fe6"
14
16
  Cache-Control: max-age=0, private, must-revalidate
15
- X-Request-Id: eec6552de5a2aa5ae570139b388ffb9b
16
- X-Runtime: 0.046892
17
+ X-Request-Id: 9a8e4510-d956-4a94-8a76-dd86669afef4
18
+ X-Runtime: 0.395985
17
19
  Strict-Transport-Security: max-age=315360000
18
20
 
19
- {"domain":{"id":6,"user_id":2,"registrant_id":2,"name":"test-1383931357.com","unicode_name":"test-1383931357.com","token":"api-token","state":"registered","language":null,"lockable":true,"auto_renew":true,"whois_protected":false,"record_count":7,"service_count":0,"expires_on":"2015-11-08","created_at":"2013-11-08T17:22:48Z","updated_at":"2014-01-14T18:27:04Z","parsed_expiration_date":"2015-11-08T17:23:00Z","expires_at":"11/8/2015 5:23:00 PM","name_server_status":null,"private_whois?":false}}
21
+ {"domain":{"id":1,"user_id":21,"registrant_id":321,"name":"example.com","unicode_name":"example.com","token":"domain-token","state":"registered","language":null,"lockable":false,"auto_renew":true,"whois_protected":false,"record_count":5,"service_count":1,"expires_on":"2015-09-27","created_at":"2012-09-27T14:25:57.646Z","updated_at":"2014-12-15T20:27:04.552Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 20:27:04 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "882c85c0756e35625681ceb5262b0fe6"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 9a8e4510-d956-4a94-8a76-dd86669afef4
18
+ X-Runtime: 0.395985
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"domain":{"id":1,"user_id":21,"registrant_id":321,"name":"example.com","unicode_name":"example.com","token":"domain-token","state":"registered","language":null,"lockable":false,"auto_renew":false,"whois_protected":false,"record_count":5,"service_count":1,"expires_on":"2015-09-27","created_at":"2012-09-27T14:25:57.646Z","updated_at":"2014-12-15T20:27:04.552Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 20:27:04 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "882c85c0756e35625681ceb5262b0fe6"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 9a8e4510-d956-4a94-8a76-dd86669afef4
18
+ X-Runtime: 0.395985
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"domain":{"id":1,"user_id":21,"registrant_id":321,"name":"example.com","unicode_name":"example.com","token":"domain-token","state":"registered","language":null,"lockable":false,"auto_renew":true,"whois_protected":false,"record_count":5,"service_count":1,"expires_on":"2015-09-27","created_at":"2012-09-27T14:25:57.646Z","updated_at":"2014-12-15T20:27:04.552Z"}}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Sun, 21 Dec 2014 19:25:07 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: 35965625-5a4d-40cb-be29-1c49f8d207b6
17
+ X-Runtime: 0.059820
18
+
19
+ {"message":"Domain `0' not found"}
@@ -0,0 +1,22 @@
1
+ HTTP/1.1 201 Created
2
+ Server: nginx
3
+ Date: Tue, 16 Dec 2014 12:55:13 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 201 Created
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Location: https://api.sandbox.dnsimple.com/domains/dnsimple-sandbox.com/email_forwards/1
16
+ ETag: "4a3d3e2701d5863b915865b06fb5ddfb"
17
+ Cache-Control: max-age=0, private, must-revalidate
18
+ X-Request-Id: 043cfaab-ba96-4902-92de-e38cb2538a45
19
+ X-Runtime: 4.962496
20
+ Strict-Transport-Security: max-age=315360000
21
+
22
+ {"email_forward":{"id":1,"domain_id":1111,"from":"sender@dnsimple-sandbox.com","to":"receiver@example.com","created_at":"2014-12-16T12:55:13.697Z","updated_at":"2014-12-16T12:55:13.697Z"}}
@@ -0,0 +1,17 @@
1
+ HTTP/1.1 204 No Content
2
+ Server: nginx
3
+ Date: Tue, 16 Dec 2014 12:58:36 GMT
4
+ Connection: close
5
+ Status: 204 No Content
6
+ Strict-Transport-Security: max-age=631138519
7
+ X-Frame-Options: SAMEORIGIN
8
+ X-XSS-Protection: 1
9
+ X-Content-Type-Options: nosniff
10
+ Access-Control-Allow-Origin: *
11
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
12
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
13
+ Cache-Control: no-cache
14
+ X-Request-Id: edba9357-649d-4bc3-a5aa-236123e53667
15
+ X-Runtime: 0.503655
16
+ Strict-Transport-Security: max-age=315360000
17
+
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Tue, 16 Dec 2014 12:56:40 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "7670de32e65494845f00f86f07ffd905"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 15f8966b-ea0a-4ae8-931a-c8971fe697a6
18
+ X-Runtime: 0.044249
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"email_forward":{"id":1,"domain_id":1111,"from":"sender@dnsimple-sandbox.com","to":"receiver@example.com","created_at":"2014-12-16T12:55:13.697Z","updated_at":"2014-12-16T12:55:13.697Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Tue, 16 Dec 2014 12:56:40 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "7670de32e65494845f00f86f07ffd905"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 15f8966b-ea0a-4ae8-931a-c8971fe697a6
18
+ X-Runtime: 0.044249
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ [{"email_forward":{"id":1,"domain_id":1111,"from":"sender@dnsimple-sandbox.com","to":"receiver@example.com","created_at":"2014-12-16T12:55:13.697Z","updated_at":"2014-12-16T12:55:13.697Z"}},{"email_forward":{"id":2,"domain_id":1111,"from":"sender@dnsimple-sandbox.com","to":"receiver@example.com","created_at":"2014-12-16T12:56:10.123Z","updated_at":"2014-12-16T12:56:10.123Z"}}]
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Sun, 21 Dec 2014 19:25:07 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: 35965625-5a4d-40cb-be29-1c49f8d207b6
17
+ X-Runtime: 0.059820
18
+
19
+ {"message":"Domain `0' not found"}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Sun, 21 Dec 2014 19:27:29 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: 3b3e7db6-2a7e-40d7-976d-a990ac646a0b
17
+ X-Runtime: 0.020945
18
+
19
+ {"message":"Not Found"}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 201 Created
2
+ Server: nginx
3
+ Date: Sun, 14 Dec 2014 16:11:02 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 201 Created
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "45fbc90e793bde6153366ce961c88e73"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: a34ae657-4810-4b1f-9f4c-39714aac7507
18
+ X-Runtime: 0.234750
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"record":{"id":3554751,"domain_id":41571,"parent_id":null,"name":"0001","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"A","system_record":null,"created_at":"2014-12-14T16:11:02.771Z","updated_at":"2014-12-14T16:11:02.771Z"}}
@@ -0,0 +1,18 @@
1
+ HTTP/1.1 204 No Content
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 19:03:37 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 204 No Content
8
+ X-Dnsimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-Dnsimple-Token,X-Dnsimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "3f9496912d04f422c7f083b93bd6e9e3"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: eec6552de5a2aa5ae570139b388ffb9b
16
+ X-Runtime: 0.046892
17
+ Strict-Transport-Security: max-age=315360000
18
+
@@ -1,17 +1,19 @@
1
- HTTP/1.1 404 Not Found
1
+ HTTP/1.1 200 OK
2
2
  Server: nginx/1.4.4
3
- Date: Tue, 14 Jan 2014 18:03:42 GMT
3
+ Date: Tue, 14 Jan 2014 19:03:37 GMT
4
4
  Content-Type: application/json; charset=utf-8
5
5
  Transfer-Encoding: chunked
6
6
  Connection: close
7
- Status: 404 Not Found
7
+ Status: 200 OK
8
8
  X-Dnsimple-API-Version: 1.0.0
9
9
  Access-Control-Allow-Origin: *
10
10
  Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-Dnsimple-Token,X-Dnsimple-Domain-Token,X-CSRF-Token,x-requested-with
11
11
  Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
12
  X-UA-Compatible: IE=Edge,chrome=1
13
- Cache-Control: no-cache
14
- X-Request-Id: 06b719043c001f90932f8984c0b5d301
15
- X-Runtime: 0.035035
13
+ ETag: "3f9496912d04f422c7f083b93bd6e9e3"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: eec6552de5a2aa5ae570139b388ffb9b
16
+ X-Runtime: 0.046892
17
+ Strict-Transport-Security: max-age=315360000
16
18
 
17
- {"error":"Couldn't find Contact with id=20 [WHERE (user_id = 2 or organization_id in (NULL))]"}
19
+ {}
@@ -14,4 +14,4 @@ Cache-Control: no-cache
14
14
  X-Request-Id: b7af596690cb83c7a7167f4d47aa50c3
15
15
  X-Runtime: 0.044234
16
16
 
17
- {"error":"Couldn't find Record with id=14395 [WHERE \"records\".\"domain_id\" = 6]"}
17
+ {"message":"Couldn't find Record with id=14395 [WHERE \"records\".\"domain_id\" = 6]"}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Sun, 14 Dec 2014 16:19:53 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "45fbc90e793bde6153366ce961c88e73"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: e44cd2a2-5010-42c6-bdec-8e12c339e8c9
18
+ X-Runtime: 0.036717
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"record":{"id":3554751,"domain_id":41571,"parent_id":null,"name":"0001","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"A","system_record":null,"created_at":"2014-12-14T16:11:02.771Z","updated_at":"2014-12-14T16:11:02.771Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 201 Created
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 15:41:06 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 201 Created
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "68a79533ae7de9375f2393a71f958b5f"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: fe4517ca-69fd-4afe-b3f8-daab765314f4
18
+ X-Runtime: 0.055286
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"membership":{"id":155,"domain_id":1744,"user_id":19,"created_at":"2014-12-22T15:41:06.505Z","updated_at":"2014-12-22T15:41:06.505Z"}}
@@ -0,0 +1,17 @@
1
+ HTTP/1.1 204 No Content
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 15:45:43 GMT
4
+ Connection: close
5
+ Status: 204 No Content
6
+ Strict-Transport-Security: max-age=631138519
7
+ X-Frame-Options: SAMEORIGIN
8
+ X-XSS-Protection: 1
9
+ X-Content-Type-Options: nosniff
10
+ Access-Control-Allow-Origin: *
11
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
12
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
13
+ Cache-Control: no-cache
14
+ X-Request-Id: 4d6a3dec-6e12-4335-aaf6-378bafa4eb73
15
+ X-Runtime: 0.037958
16
+ Strict-Transport-Security: max-age=315360000
17
+
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 15:45:22 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "7dbe556effb089cdf9585c79812b75d5"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: a3bd2361-6b4d-4f78-b250-08401c62092e
18
+ X-Runtime: 0.038244
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ [{"membership":{"id":155,"domain_id":1744,"user_id":19,"created_at":"2014-12-22T15:41:06.505Z","updated_at":"2014-12-22T15:41:06.505Z"}},{"membership":{"id":156,"domain_id":1744,"user_id":2,"created_at":"2014-12-22T15:44:30.833Z","updated_at":"2014-12-22T15:44:30.833Z"}}]
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 14:57:25 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: 08692c71-bd9d-411a-b9e2-c557c25c7727
17
+ X-Runtime: 0.039402
18
+
19
+ {"message":"Domain `0' not found"}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 15:44:49 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: ed40bffb-0bfe-4602-ae1a-54464b213104
17
+ X-Runtime: 0.041833
18
+
19
+ {"message":"Couldn't find Membership with 'id'=158 [WHERE \"memberships\".\"domain_id\" = $1]"}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 22 Dec 2014 14:35:41 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "d1f31d26c6ffb7c15a8b8b7660fee8c2"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 262e95da-b783-4328-973a-b71ee9d03552
18
+ X-Runtime: 2.595319
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"whois_privacy":{"id":30,"domain_id":1744,"enabled":false,"expires_on":"2015-12-22"}}