dnsimple 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -8
- data/lib/dnsimple/client/certificates.rb +7 -7
- data/lib/dnsimple/client/collaborators.rb +3 -3
- data/lib/dnsimple/client/contacts.rb +6 -6
- data/lib/dnsimple/client/domains.rb +6 -6
- data/lib/dnsimple/client/domains_email_forwards.rb +5 -5
- data/lib/dnsimple/client/domains_pushes.rb +6 -6
- data/lib/dnsimple/client/registrar.rb +37 -11
- data/lib/dnsimple/client/registrar_auto_renewal.rb +2 -2
- data/lib/dnsimple/client/registrar_delegation.rb +4 -4
- data/lib/dnsimple/client/registrar_whois_privacy.rb +3 -3
- data/lib/dnsimple/client/services_domains.rb +3 -3
- data/lib/dnsimple/client/templates.rb +6 -6
- data/lib/dnsimple/client/templates_domains.rb +1 -1
- data/lib/dnsimple/client/templates_records.rb +7 -7
- data/lib/dnsimple/client/vanity_name_servers.rb +2 -2
- data/lib/dnsimple/client/webhooks.rb +4 -4
- data/lib/dnsimple/client/zones.rb +4 -4
- data/lib/dnsimple/client/zones_records.rb +9 -9
- data/lib/dnsimple/response.rb +7 -7
- data/lib/dnsimple/struct.rb +4 -0
- data/lib/dnsimple/struct/account.rb +1 -1
- data/lib/dnsimple/struct/certificate.rb +3 -3
- data/lib/dnsimple/struct/collaborator.rb +3 -3
- data/lib/dnsimple/struct/contact.rb +2 -2
- data/lib/dnsimple/struct/domain.rb +3 -3
- data/lib/dnsimple/struct/domain_premium_price.rb +13 -0
- data/lib/dnsimple/struct/domain_push.rb +4 -4
- data/lib/dnsimple/struct/domain_registration.rb +37 -0
- data/lib/dnsimple/struct/domain_renewal.rb +28 -0
- data/lib/dnsimple/struct/domain_transfer.rb +34 -0
- data/lib/dnsimple/struct/email_forward.rb +2 -2
- data/lib/dnsimple/struct/oauth_token.rb +1 -1
- data/lib/dnsimple/struct/service.rb +3 -3
- data/lib/dnsimple/struct/template.rb +4 -4
- data/lib/dnsimple/struct/template_record.rb +4 -4
- data/lib/dnsimple/struct/tld.rb +2 -2
- data/lib/dnsimple/struct/user.rb +1 -1
- data/lib/dnsimple/struct/webhook.rb +1 -1
- data/lib/dnsimple/struct/whois_privacy.rb +1 -1
- data/lib/dnsimple/struct/zone.rb +2 -2
- data/lib/dnsimple/struct/zone_record.rb +4 -4
- data/lib/dnsimple/version.rb +1 -1
- data/spec/dnsimple/client/certificates_spec.rb +2 -2
- data/spec/dnsimple/client/contacts_spec.rb +2 -2
- data/spec/dnsimple/client/domains_email_forwards_spec.rb +2 -2
- data/spec/dnsimple/client/domains_spec.rb +2 -2
- data/spec/dnsimple/client/identity_spec.rb +2 -2
- data/spec/dnsimple/client/registrar_auto_renewal_spec.rb +2 -2
- data/spec/dnsimple/client/registrar_spec.rb +57 -7
- data/spec/dnsimple/client/services_domains_spec.rb +2 -2
- data/spec/dnsimple/client/services_spec.rb +8 -4
- data/spec/dnsimple/client/templates_records_spec.rb +4 -4
- data/spec/dnsimple/client/templates_spec.rb +4 -4
- data/spec/dnsimple/client/zones_records_spec.rb +4 -4
- data/spec/dnsimple/client/zones_spec.rb +2 -2
- data/spec/fixtures.http/accounts/success-account.http +21 -0
- data/spec/fixtures.http/accounts/success-user.http +21 -0
- data/spec/fixtures.http/addCollaborator/invite-success.http +1 -1
- data/spec/fixtures.http/addCollaborator/success.http +1 -1
- data/spec/fixtures.http/appliedServices/success.http +1 -1
- data/spec/fixtures.http/applyService/{created.http → success.http} +0 -0
- data/spec/fixtures.http/changeDomainDelegationToVanity/success.http +1 -1
- data/spec/fixtures.http/checkDomain/success.http +17 -17
- data/spec/fixtures.http/createContact/created.http +17 -17
- data/spec/fixtures.http/createDomain/created.http +1 -1
- data/spec/fixtures.http/createEmailForward/created.http +1 -1
- data/spec/fixtures.http/createTemplate/created.http +1 -1
- data/spec/fixtures.http/createTemplateRecord/created.http +1 -1
- data/spec/fixtures.http/createWebhook/created.http +17 -17
- data/spec/fixtures.http/createZoneRecord/created-apex.http +17 -0
- data/spec/fixtures.http/createZoneRecord/created.http +9 -13
- data/spec/fixtures.http/deleteContact/success.http +13 -13
- data/spec/fixtures.http/deleteEmailForward/success.http +13 -12
- data/spec/fixtures.http/deleteWebhook/success.http +13 -13
- data/spec/fixtures.http/disableDomainAutoRenewal/success.http +13 -0
- data/spec/fixtures.http/disableWhoisPrivacy/success.http +1 -1
- data/spec/fixtures.http/enableDomainAutoRenewal/success.http +13 -0
- data/spec/fixtures.http/enableVanityNameServers/success.http +1 -1
- data/spec/fixtures.http/enableWhoisPrivacy/created.http +1 -1
- data/spec/fixtures.http/enableWhoisPrivacy/success.http +1 -1
- data/spec/fixtures.http/getCertificate/success.http +1 -1
- data/spec/fixtures.http/getContact/success.http +17 -17
- data/spec/fixtures.http/getDomain/success.http +16 -16
- data/spec/fixtures.http/getDomainPremiumPrice/failure.http +16 -0
- data/spec/fixtures.http/getDomainPremiumPrice/success.http +21 -0
- data/spec/fixtures.http/getEmailForward/success.http +17 -17
- data/spec/fixtures.http/getService/success.http +1 -1
- data/spec/fixtures.http/getTemplate/success.http +1 -1
- data/spec/fixtures.http/getTemplateRecord/success.http +1 -1
- data/spec/fixtures.http/getTldExtendedAttributes/success-attributes.http +17 -0
- data/spec/fixtures.http/getWebhook/success.http +17 -17
- data/spec/fixtures.http/getWhoisPrivacy/success.http +1 -1
- data/spec/fixtures.http/getZone/success.http +17 -17
- data/spec/fixtures.http/getZoneRecord/success.http +1 -1
- data/spec/fixtures.http/initiatePush/success.http +1 -1
- data/spec/fixtures.http/listAccounts/success-account.http +1 -1
- data/spec/fixtures.http/listAccounts/success-user.http +1 -1
- data/spec/fixtures.http/listCertificates/success.http +1 -1
- data/spec/fixtures.http/listCollaborators/success.http +1 -1
- data/spec/fixtures.http/listContacts/success.http +17 -17
- data/spec/fixtures.http/listDomains/success.http +1 -1
- data/spec/fixtures.http/listEmailForwards/success.http +1 -1
- data/spec/fixtures.http/listPushes/success.http +1 -1
- data/spec/fixtures.http/listServices/success.http +12 -8
- data/spec/fixtures.http/listTemplateRecords/success.http +1 -1
- data/spec/fixtures.http/listTemplates/success.http +1 -1
- data/spec/fixtures.http/listWebhooks/success.http +17 -17
- data/spec/fixtures.http/listZoneRecords/success.http +1 -1
- data/spec/fixtures.http/listZones/success.http +17 -17
- data/spec/fixtures.http/method-not-allowed.http +11 -11
- data/spec/fixtures.http/notfound-contact.http +12 -12
- data/spec/fixtures.http/notfound-record.http +11 -11
- data/spec/fixtures.http/notfound-whoisprivacy.http +12 -0
- data/spec/fixtures.http/notfound-zone.http +11 -11
- data/spec/fixtures.http/oauthAccessToken/error-invalid-request.http +16 -0
- data/spec/fixtures.http/oauthAccessToken/success.http +17 -17
- data/spec/fixtures.http/registerDomain/success.http +21 -17
- data/spec/fixtures.http/renewDomain/success.http +13 -9
- data/spec/fixtures.http/resetDomainToken/success.http +1 -1
- data/spec/fixtures.http/success-with-malformed-json.http +13 -0
- data/spec/fixtures.http/transferDomain/success.http +13 -9
- data/spec/fixtures.http/updateContact/success.http +17 -17
- data/spec/fixtures.http/updateTemplate/success.http +1 -1
- data/spec/fixtures.http/updateZoneRecord/success.http +1 -1
- data/spec/fixtures.http/validation-error.http +19 -0
- data/spec/fixtures.http/whoami/{success_account.http → success-account.http} +15 -15
- data/spec/fixtures.http/whoami/{success_user.http → success-user.http} +15 -15
- data/spec/fixtures.http/whoami/success.http +15 -15
- metadata +37 -14
- data/.ruby-version +0 -1
- data/spec/fixtures.http/disableAutoRenewal/success.http +0 -12
- data/spec/fixtures.http/enableAutoRenewal/success.http +0 -12
@@ -47,7 +47,7 @@ describe Dnsimple::Client, ".services" do
|
|
47
47
|
expect(service).to be_a(Dnsimple::Struct::Service)
|
48
48
|
expect(service.id).to be_a(Integer)
|
49
49
|
expect(service.name).to be_a(String)
|
50
|
-
expect(service.
|
50
|
+
expect(service.sid).to be_a(String)
|
51
51
|
expect(service.description).to be_a(String)
|
52
52
|
|
53
53
|
service.settings.each do |service_setting|
|
@@ -64,7 +64,7 @@ describe Dnsimple::Client, ".services" do
|
|
64
64
|
|
65
65
|
before do
|
66
66
|
stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/services/#{service_id}$}).
|
67
|
-
to_return(read_http_fixture("applyService/
|
67
|
+
to_return(read_http_fixture("applyService/success.http"))
|
68
68
|
end
|
69
69
|
|
70
70
|
let(:settings) { { app: "foo" } }
|
@@ -44,7 +44,7 @@ describe Dnsimple::Client, ".services" do
|
|
44
44
|
expect(service).to be_a(Dnsimple::Struct::Service)
|
45
45
|
expect(service.id).to be_a(Integer)
|
46
46
|
expect(service.name).to be_a(String)
|
47
|
-
expect(service.
|
47
|
+
expect(service.sid).to be_a(String)
|
48
48
|
expect(service.description).to be_a(String)
|
49
49
|
|
50
50
|
service.settings.each do |service_setting|
|
@@ -95,12 +95,16 @@ describe Dnsimple::Client, ".services" do
|
|
95
95
|
expect(service).to be_a(Dnsimple::Struct::Service)
|
96
96
|
expect(service.id).to eq(1)
|
97
97
|
expect(service.name).to eq("Service 1")
|
98
|
-
expect(service.
|
98
|
+
expect(service.sid).to eq("service1")
|
99
99
|
expect(service.description).to eq("First service example.")
|
100
100
|
expect(service.setup_description).to be_nil
|
101
|
-
expect(service.requires_setup).to
|
101
|
+
expect(service.requires_setup).to eq(true)
|
102
102
|
expect(service.default_subdomain).to be_nil
|
103
|
-
|
103
|
+
|
104
|
+
settings = service.settings
|
105
|
+
expect(settings).to be_a(Array)
|
106
|
+
expect(settings.size).to eq(1)
|
107
|
+
expect(settings[0].name).to eq("username")
|
104
108
|
end
|
105
109
|
end
|
106
110
|
|
@@ -106,8 +106,8 @@ describe Dnsimple::Client, ".templates" do
|
|
106
106
|
expect(result.content).to eq("mx.example.com")
|
107
107
|
expect(result.ttl).to eq(600)
|
108
108
|
expect(result.priority).to eq(10)
|
109
|
-
expect(result.created_at).to eq("2016-05-03T07:51:
|
110
|
-
expect(result.updated_at).to eq("2016-05-03T07:51:
|
109
|
+
expect(result.created_at).to eq("2016-05-03T07:51:33Z")
|
110
|
+
expect(result.updated_at).to eq("2016-05-03T07:51:33Z")
|
111
111
|
end
|
112
112
|
|
113
113
|
context "with missing data" do
|
@@ -171,8 +171,8 @@ describe Dnsimple::Client, ".templates" do
|
|
171
171
|
expect(result.content).to eq("mx.example.com")
|
172
172
|
expect(result.ttl).to eq(600)
|
173
173
|
expect(result.priority).to eq(10)
|
174
|
-
expect(result.created_at).to eq("2016-05-03T08:03:
|
175
|
-
expect(result.updated_at).to eq("2016-05-03T08:03:
|
174
|
+
expect(result.created_at).to eq("2016-05-03T08:03:26Z")
|
175
|
+
expect(result.updated_at).to eq("2016-05-03T08:03:26Z")
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
@@ -47,7 +47,7 @@ describe Dnsimple::Client, ".templates" do
|
|
47
47
|
expect(result.id).to be_a(Numeric)
|
48
48
|
expect(result.account_id).to be_a(Numeric)
|
49
49
|
expect(result.name).to be_a(String)
|
50
|
-
expect(result.
|
50
|
+
expect(result.sid).to be_a(String)
|
51
51
|
expect(result.description).to be_a(String)
|
52
52
|
end
|
53
53
|
end
|
@@ -99,7 +99,7 @@ describe Dnsimple::Client, ".templates" do
|
|
99
99
|
expect(template.id).to eq(1)
|
100
100
|
expect(template.account_id).to eq(1010)
|
101
101
|
expect(template.name).to eq("Beta")
|
102
|
-
expect(template.
|
102
|
+
expect(template.sid).to eq("beta")
|
103
103
|
expect(template.description).to eq("A beta template.")
|
104
104
|
end
|
105
105
|
end
|
@@ -129,7 +129,7 @@ describe Dnsimple::Client, ".templates" do
|
|
129
129
|
expect(template.id).to eq(1)
|
130
130
|
expect(template.account_id).to eq(1010)
|
131
131
|
expect(template.name).to eq("Alpha")
|
132
|
-
expect(template.
|
132
|
+
expect(template.sid).to eq("alpha")
|
133
133
|
expect(template.description).to eq("An alpha template.")
|
134
134
|
end
|
135
135
|
end
|
@@ -161,7 +161,7 @@ describe Dnsimple::Client, ".templates" do
|
|
161
161
|
expect(template.id).to eq(1)
|
162
162
|
expect(template.account_id).to eq(1010)
|
163
163
|
expect(template.name).to eq("Alpha")
|
164
|
-
expect(template.
|
164
|
+
expect(template.sid).to eq("alpha")
|
165
165
|
expect(template.description).to eq("An alpha template.")
|
166
166
|
end
|
167
167
|
end
|
@@ -117,7 +117,7 @@ describe Dnsimple::Client, ".zones" do
|
|
117
117
|
to_return(read_http_fixture("createZoneRecord/created.http"))
|
118
118
|
end
|
119
119
|
|
120
|
-
let(:attributes) { { type: "
|
120
|
+
let(:attributes) { { type: "A", name: "www", content: "127.0.0.1", regions: %w(global) } }
|
121
121
|
|
122
122
|
it "builds the correct request" do
|
123
123
|
subject.create_record(account_id, zone_id, attributes)
|
@@ -133,7 +133,7 @@ describe Dnsimple::Client, ".zones" do
|
|
133
133
|
|
134
134
|
result = response.data
|
135
135
|
expect(result).to be_a(Dnsimple::Struct::ZoneRecord)
|
136
|
-
expect(result.id).to eq(
|
136
|
+
expect(result.id).to eq(1)
|
137
137
|
expect(result.type).to eq(attributes.fetch(:type))
|
138
138
|
expect(result.name).to eq(attributes.fetch(:name))
|
139
139
|
expect(result.content).to eq(attributes.fetch(:content))
|
@@ -185,8 +185,8 @@ describe Dnsimple::Client, ".zones" do
|
|
185
185
|
expect(result.priority).to eq(10)
|
186
186
|
expect(result.system_record).to eq(false)
|
187
187
|
expect(result.regions).to eq(%w(SV1 IAD))
|
188
|
-
expect(result.created_at).to eq("2016-10-05T09:51:
|
189
|
-
expect(result.updated_at).to eq("2016-10-05T09:51:
|
188
|
+
expect(result.created_at).to eq("2016-10-05T09:51:35Z")
|
189
|
+
expect(result.updated_at).to eq("2016-10-05T09:51:35Z")
|
190
190
|
end
|
191
191
|
|
192
192
|
context "when the zone does not exist" do
|
@@ -119,8 +119,8 @@ describe Dnsimple::Client, ".zones" do
|
|
119
119
|
expect(result.account_id).to eq(1010)
|
120
120
|
expect(result.name).to eq("example-alpha.com")
|
121
121
|
expect(result.reverse).to eq(false)
|
122
|
-
expect(result.created_at).to eq("2015-04-23T07:40:
|
123
|
-
expect(result.updated_at).to eq("2015-04-23T07:40:
|
122
|
+
expect(result.created_at).to eq("2015-04-23T07:40:03Z")
|
123
|
+
expect(result.updated_at).to eq("2015-04-23T07:40:03Z")
|
124
124
|
end
|
125
125
|
|
126
126
|
context "when the zone does not exist" do
|
@@ -0,0 +1,21 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Tue, 14 Jun 2016 12:02:58 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2391
|
9
|
+
X-RateLimit-Reset: 1465908577
|
10
|
+
ETag: W/"9ef3b4bf1f441a9b1cd6d7041bc181aa"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: f705b65b-3589-43ad-97ca-3b2821d49d81
|
13
|
+
X-Runtime: 0.012661
|
14
|
+
X-Content-Type-Options: nosniff
|
15
|
+
X-Download-Options: noopen
|
16
|
+
X-Frame-Options: DENY
|
17
|
+
X-Permitted-Cross-Domain-Policies: none
|
18
|
+
X-XSS-Protection: 1; mode=block
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"}]}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Tue, 14 Jun 2016 12:05:38 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2390
|
9
|
+
X-RateLimit-Reset: 1465908577
|
10
|
+
ETag: W/"b8dc5b6e94652da599d15d4668b723b5"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: 745455ba-3871-440d-b703-1448b9708c14
|
13
|
+
X-Runtime: 0.014727
|
14
|
+
X-Content-Type-Options: nosniff
|
15
|
+
X-Download-Options: noopen
|
16
|
+
X-Frame-Options: DENY
|
17
|
+
X-Permitted-Cross-Domain-Policies: none
|
18
|
+
X-XSS-Protection: 1; mode=block
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"},{"id":456,"email":"ops@company.com","plan_identifier":"dnsimple-professional","created_at":"2012-03-16T16:02:54Z","updated_at":"2016-06-14T11:23:16Z"}]}
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":101,"domain_id":1,"domain_name":"example.com","user_id":null,"user_email":"invited-user@example.com","invitation":true,"created_at":"2016-10-07T08:51:
|
21
|
+
{"data":{"id":101,"domain_id":1,"domain_name":"example.com","user_id":null,"user_email":"invited-user@example.com","invitation":true,"created_at":"2016-10-07T08:51:12Z","updated_at":"2016-10-07T08:51:12Z","accepted_at":null}}
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":100,"domain_id":1,"domain_name":"example.com","user_id":999,"user_email":"existing-user@example.com","invitation":false,"created_at":"2016-10-07T08:53:
|
21
|
+
{"data":{"id":100,"domain_id":1,"domain_name":"example.com","user_id":999,"user_email":"existing-user@example.com","invitation":false,"created_at":"2016-10-07T08:53:41Z","updated_at":"2016-10-07T08:53:41Z","accepted_at":"2016-10-07T08:53:41Z"}}
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":[{"id":1,"name":"WordPress","
|
21
|
+
{"data":[{"id":1,"name":"WordPress","sid":"wordpress","description":"Share with the world, your community, or your closest friends.","setup_description":null,"requires_setup":true,"default_subdomain":"blog","created_at":"2013-11-05T18:06:50Z","updated_at":"2016-03-04T09:23:27Z","settings":[{"name":"site","label":"Site","append":null,"description":"Your Wordpress.com subdomain","example":null,"password":false}]}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}
|
File without changes
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":[{"id":1,"name":"ns1.example.com","ipv4":"127.0.0.1","ipv6":"::1","created_at":"2016-07-11T09:40:
|
21
|
+
{"data":[{"id":1,"name":"ns1.example.com","ipv4":"127.0.0.1","ipv6":"::1","created_at":"2016-07-11T09:40:19Z","updated_at":"2016-07-11T09:40:19Z"},{"id":2,"name":"ns2.example.com","ipv4":"127.0.0.1","ipv6":"::1","created_at":"2016-07-11T09:40:19Z","updated_at":"2016-07-11T09:40:19Z"}]}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx
|
3
|
-
Date: Fri, 26 Feb 2016 16:04:05 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 200 OK
|
8
|
-
X-RateLimit-Limit: 4000
|
9
|
-
X-RateLimit-Remaining: 3999
|
10
|
-
X-RateLimit-Reset: 1456506245
|
11
|
-
ETag: W/"f3cf8499e935e48401aae26842f712c4"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: e3c6fac1-a36d-42c3-8a04-d68f127add18
|
14
|
-
X-Runtime: 0.605907
|
15
|
-
Strict-Transport-Security: max-age=31536000
|
16
|
-
|
17
|
-
{"data":{"domain":"
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Fri, 26 Feb 2016 16:04:05 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
Status: 200 OK
|
8
|
+
X-RateLimit-Limit: 4000
|
9
|
+
X-RateLimit-Remaining: 3999
|
10
|
+
X-RateLimit-Reset: 1456506245
|
11
|
+
ETag: W/"f3cf8499e935e48401aae26842f712c4"
|
12
|
+
Cache-Control: max-age=0, private, must-revalidate
|
13
|
+
X-Request-Id: e3c6fac1-a36d-42c3-8a04-d68f127add18
|
14
|
+
X-Runtime: 0.605907
|
15
|
+
Strict-Transport-Security: max-age=31536000
|
16
|
+
|
17
|
+
{"data":{"domain":"ruby.codes","available":true,"premium":true}}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date: Tue, 19 Jan 2016 20:50:26 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 201 Created
|
8
|
-
X-RateLimit-Limit: 4000
|
9
|
-
X-RateLimit-Remaining: 3997
|
10
|
-
X-RateLimit-Reset: 1453239045
|
11
|
-
ETag: W/"165299b0ea3e5c1c80f1ae622146626f"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: 9f577b9e-5bc4-4a8f-adfb-09dbb1992b0e
|
14
|
-
X-Runtime: 0.061482
|
15
|
-
Strict-Transport-Security: max-age=31536000
|
16
|
-
|
17
|
-
{"data":{"id":1,"account_id":1010,"label":"Default","first_name":"First","last_name":"User","job_title":"CEO","organization_name":"Awesome Company","email":"first@example.com","phone":"+18001234567","fax":"+18011234567","address1":"Italian Street, 10","address2":"","city":"Roma","state_province":"RM","postal_code":"00100","country":"IT","created_at":"2016-01-19T20:50:
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Tue, 19 Jan 2016 20:50:26 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
Status: 201 Created
|
8
|
+
X-RateLimit-Limit: 4000
|
9
|
+
X-RateLimit-Remaining: 3997
|
10
|
+
X-RateLimit-Reset: 1453239045
|
11
|
+
ETag: W/"165299b0ea3e5c1c80f1ae622146626f"
|
12
|
+
Cache-Control: max-age=0, private, must-revalidate
|
13
|
+
X-Request-Id: 9f577b9e-5bc4-4a8f-adfb-09dbb1992b0e
|
14
|
+
X-Runtime: 0.061482
|
15
|
+
Strict-Transport-Security: max-age=31536000
|
16
|
+
|
17
|
+
{"data":{"id":1,"account_id":1010,"label":"Default","first_name":"First","last_name":"User","job_title":"CEO","organization_name":"Awesome Company","email":"first@example.com","phone":"+18001234567","fax":"+18011234567","address1":"Italian Street, 10","address2":"","city":"Roma","state_province":"RM","postal_code":"00100","country":"IT","created_at":"2016-01-19T20:50:26Z","updated_at":"2016-01-19T20:50:26Z"}}
|
@@ -13,4 +13,4 @@ X-Request-Id: 0d6f1ea7-f702-4317-85f0-04874b69315d
|
|
13
13
|
X-Runtime: 0.257489
|
14
14
|
Strict-Transport-Security: max-age=31536000
|
15
15
|
|
16
|
-
{"data":{"id":1,"account_id":1010,"registrant_id":null,"name":"example-alpha.com","unicode_name":"example-alpha.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2014-12-06T15:56:
|
16
|
+
{"data":{"id":1,"account_id":1010,"registrant_id":null,"name":"example-alpha.com","unicode_name":"example-alpha.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2014-12-06T15:56:55Z","updated_at":"2015-12-09T00:20:56Z"}}
|
@@ -14,4 +14,4 @@ X-Request-Id: fca523a2-aad9-49e6-a828-a0e7711a8501
|
|
14
14
|
X-Runtime: 1.711621
|
15
15
|
Strict-Transport-Security: max-age=31536000
|
16
16
|
|
17
|
-
{"data":{"id":17706,"domain_id":228963,"from":"jim@a-domain.com","to":"jim@another.com","created_at":"2016-02-04T14:26:
|
17
|
+
{"data":{"id":17706,"domain_id":228963,"from":"jim@a-domain.com","to":"jim@another.com","created_at":"2016-02-04T14:26:50Z","updated_at":"2016-02-04T14:26:50Z"}}
|
@@ -14,4 +14,4 @@ X-Request-Id: c4ab6dd9-87d4-4244-8ec8-9187a511b89c
|
|
14
14
|
X-Runtime: 0.115316
|
15
15
|
Strict-Transport-Security: max-age=31536000
|
16
16
|
|
17
|
-
{"data":{"id":1,"account_id":1010,"name":"Beta","
|
17
|
+
{"data":{"id":1,"account_id":1010,"name":"Beta","sid":"beta","description":"A beta template.","created_at":"2016-03-24T11:09:16Z","updated_at":"2016-03-24T11:09:16Z"}}
|
@@ -14,4 +14,4 @@ X-Request-Id: b2d51e79-b3d2-4abe-9184-155fb5546617
|
|
14
14
|
X-Runtime: 0.190813
|
15
15
|
Strict-Transport-Security: max-age=31536000
|
16
16
|
|
17
|
-
{"data":{"id":300,"template_id":268,"name":"","content":"mx.example.com","ttl":600,"priority":10,"type":"MX","created_at":"2016-05-03T07:51:
|
17
|
+
{"data":{"id":300,"template_id":268,"name":"","content":"mx.example.com","ttl":600,"priority":10,"type":"MX","created_at":"2016-05-03T07:51:33Z","updated_at":"2016-05-03T07:51:33Z"}}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date: Mon, 15 Feb 2016 17:04:38 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 201 Created
|
8
|
-
X-RateLimit-Limit: 4000
|
9
|
-
X-RateLimit-Remaining: 3996
|
10
|
-
X-RateLimit-Reset: 1455559348
|
11
|
-
ETag: W/"a4b43ee926d18d0839f1eae08e78c66b"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: dca89281-416a-4766-9428-d0295f58586e
|
14
|
-
X-Runtime: 0.175179
|
15
|
-
Strict-Transport-Security: max-age=31536000
|
16
|
-
|
17
|
-
{"data":{"id":1,"url":"https://webhook.test"}}
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Mon, 15 Feb 2016 17:04:38 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
Status: 201 Created
|
8
|
+
X-RateLimit-Limit: 4000
|
9
|
+
X-RateLimit-Remaining: 3996
|
10
|
+
X-RateLimit-Reset: 1455559348
|
11
|
+
ETag: W/"a4b43ee926d18d0839f1eae08e78c66b"
|
12
|
+
Cache-Control: max-age=0, private, must-revalidate
|
13
|
+
X-Request-Id: dca89281-416a-4766-9428-d0295f58586e
|
14
|
+
X-Runtime: 0.175179
|
15
|
+
Strict-Transport-Security: max-age=31536000
|
16
|
+
|
17
|
+
{"data":{"id":1,"url":"https://webhook.test"}}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 07 Jan 2016 17:45:13 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: keep-alive
|
7
|
+
Status: 201 Created
|
8
|
+
X-RateLimit-Limit: 4000
|
9
|
+
X-RateLimit-Remaining: 3990
|
10
|
+
X-RateLimit-Reset: 1452188712
|
11
|
+
ETag: W/"a7ddff4ee5dc28bbebf3d416e8bd0f04"
|
12
|
+
Cache-Control: max-age=0, private, must-revalidate
|
13
|
+
X-Request-Id: f96f5034-bf0c-4201-9564-493c162e3cb4
|
14
|
+
X-Runtime: 0.099095
|
15
|
+
Strict-Transport-Security: max-age=31536000
|
16
|
+
|
17
|
+
{"data":{"id":1,"zone_id":"example.com","parent_id":null,"name":"","content":"127.0.0.1","ttl":600,"priority":null,"type":"A","system_record":false,"regions":["global"],"created_at":"2016-01-07T17:45:13Z","updated_at":"2016-01-07T17:45:13Z"}}
|
@@ -1,21 +1,17 @@
|
|
1
1
|
HTTP/1.1 201 Created
|
2
2
|
Server: nginx
|
3
|
-
Date:
|
3
|
+
Date: Thu, 07 Jan 2016 17:45:13 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Transfer-Encoding: chunked
|
6
6
|
Connection: keep-alive
|
7
|
-
|
8
|
-
X-RateLimit-
|
9
|
-
X-RateLimit-
|
10
|
-
|
7
|
+
Status: 201 Created
|
8
|
+
X-RateLimit-Limit: 4000
|
9
|
+
X-RateLimit-Remaining: 3990
|
10
|
+
X-RateLimit-Reset: 1452188712
|
11
|
+
ETag: W/"a7ddff4ee5dc28bbebf3d416e8bd0f04"
|
11
12
|
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
14
|
-
X-Content-Type-Options: nosniff
|
15
|
-
X-Download-Options: noopen
|
16
|
-
X-Frame-Options: DENY
|
17
|
-
X-Permitted-Cross-Domain-Policies: none
|
18
|
-
X-XSS-Protection: 1; mode=block
|
13
|
+
X-Request-Id: f96f5034-bf0c-4201-9564-493c162e3cb4
|
14
|
+
X-Runtime: 0.099095
|
19
15
|
Strict-Transport-Security: max-age=31536000
|
20
16
|
|
21
|
-
{"data":{"id":
|
17
|
+
{"data":{"id":1,"zone_id":"example.com","parent_id":null,"name":"www","content":"127.0.0.1","ttl":600,"priority":null,"type":"A","system_record":false,"regions":["global"],"created_at":"2016-01-07T17:45:13Z","updated_at":"2016-01-07T17:45:13Z"}}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
HTTP/1.1 204 No Content
|
2
|
-
Server: nginx
|
3
|
-
Date: Tue, 19 Jan 2016 21:49:42 GMT
|
4
|
-
Connection: keep-alive
|
5
|
-
Status: 204 No Content
|
6
|
-
X-RateLimit-Limit: 4000
|
7
|
-
X-RateLimit-Remaining: 3999
|
8
|
-
X-RateLimit-Reset: 1453243782
|
9
|
-
Cache-Control: no-cache
|
10
|
-
X-Request-Id: 10c8528b-569b-4152-a89c-fc9c5f94afe9
|
11
|
-
X-Runtime: 0.029858
|
12
|
-
Strict-Transport-Security: max-age=31536000
|
13
|
-
|
1
|
+
HTTP/1.1 204 No Content
|
2
|
+
Server: nginx
|
3
|
+
Date: Tue, 19 Jan 2016 21:49:42 GMT
|
4
|
+
Connection: keep-alive
|
5
|
+
Status: 204 No Content
|
6
|
+
X-RateLimit-Limit: 4000
|
7
|
+
X-RateLimit-Remaining: 3999
|
8
|
+
X-RateLimit-Reset: 1453243782
|
9
|
+
Cache-Control: no-cache
|
10
|
+
X-Request-Id: 10c8528b-569b-4152-a89c-fc9c5f94afe9
|
11
|
+
X-Runtime: 0.029858
|
12
|
+
Strict-Transport-Security: max-age=31536000
|
13
|
+
|
@@ -1,12 +1,13 @@
|
|
1
|
-
HTTP/1.1 204 No Content
|
2
|
-
Server: nginx
|
3
|
-
Date: Thu, 04 Feb 2016 17:14:52 GMT
|
4
|
-
Connection: keep-alive
|
5
|
-
Status: 204 No Content
|
6
|
-
X-RateLimit-Limit: 4000
|
7
|
-
X-RateLimit-Remaining: 3999
|
8
|
-
X-RateLimit-Reset: 1454609692
|
9
|
-
Cache-Control: no-cache
|
10
|
-
X-Request-Id: 716d181c-495d-47ab-ab79-391a70e8abe1
|
11
|
-
X-Runtime: 0.145208
|
12
|
-
Strict-Transport-Security: max-age=31536000
|
1
|
+
HTTP/1.1 204 No Content
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 04 Feb 2016 17:14:52 GMT
|
4
|
+
Connection: keep-alive
|
5
|
+
Status: 204 No Content
|
6
|
+
X-RateLimit-Limit: 4000
|
7
|
+
X-RateLimit-Remaining: 3999
|
8
|
+
X-RateLimit-Reset: 1454609692
|
9
|
+
Cache-Control: no-cache
|
10
|
+
X-Request-Id: 716d181c-495d-47ab-ab79-391a70e8abe1
|
11
|
+
X-Runtime: 0.145208
|
12
|
+
Strict-Transport-Security: max-age=31536000
|
13
|
+
|