* Return contacts inside domain object
* Return registrant uuid and name inside domain object
This commit is contained in:
Maciej Szlosarczyk 2018-10-04 09:54:52 +03:00
parent b6cc22dbfc
commit f551140a0d
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
6 changed files with 484 additions and 255 deletions

View file

@ -17,58 +17,94 @@ Returns domains of the current registrant.
HTTP/1.1 200
Content-Type: application/json
{
[
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": {
"name": "Best Names",
"website": "example.com"
[
{
"id":"98d1083a-8863-4153-93e4-caee4a013535",
"name":"domain0.ee",
"registrar":{
"name":"Best Names",
"website":"example.com"
},
"valid_to":"2016-09-09T09:11:14.861Z",
"registered_at":"2015-09-09T09:11:14.861Z",
"registrant":{
"name":"John Smith",
"id":"acadf23e-47c4-4606-8f67-76e071a1cca2"
},
"admin_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
"transfer_code": "98oiewslkfkd",
"created_at": "2015-09-09T09:11:14.861Z",
"updated_at": "2015-09-09T09:11:14.860Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,
"period_unit": "y",
"creator_str": null,
"updator_str": null,
"legacy_id": null,
"legacy_registrar_id": null,
"legacy_registrant_id": null,
"outzone_at": "2016-09-24T09:11:14.861Z",
"delete_at": "2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at": null,
"registrant_verification_token": null,
"locked_by_registrant_at": "2015-09-09T09:11:14.861Z",
"pending_json": {},
"force_delete_at": null,
"statuses": [
"ok"
],
"nameservers": [
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},
"statuses_backup": []
}
]
}
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"tech_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"transfer_code":"98oiewslkfkd",
"created_at":"2015-09-09T09:11:14.861Z",
"updated_at":"2015-09-09T09:11:14.860Z",
"name_dirty":"domain0.ee",
"name_puny":"domain0.ee",
"period":1,
"period_unit":"y",
"creator_str":null,
"updator_str":null,
"legacy_id":null,
"legacy_registrar_id":null,
"legacy_registrant_id":null,
"outzone_at":"2016-09-24T09:11:14.861Z",
"delete_at":"2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at":null,
"registrant_verification_token":null,
"locked_by_registrant_at":"2015-09-09T09:11:14.861Z",
"pending_json":{
},
"force_delete_at":null,
"statuses":[
"ok"
],
"nameservers":[
{
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.41"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3a33"
]
},
{
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.51"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3b29"
]
},
],
"reserved":false,
"status_notes":{
},
"statuses_backup":[
]
}
]
```
#### Request
@ -97,58 +133,94 @@ Content-Type: application/json
HTTP/1.1 200
Content-Type: application/json
{
[
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": {
"name": "Best Names",
"website": "example.com"
[
{
"id":"98d1083a-8863-4153-93e4-caee4a013535",
"name":"domain0.ee",
"registrar":{
"name":"Best Names",
"website":"example.com"
},
"valid_to":"2016-09-09T09:11:14.861Z",
"registered_at":"2015-09-09T09:11:14.861Z",
"registrant":{
"name":"John Smith",
"id":"acadf23e-47c4-4606-8f67-76e071a1cca2"
},
"admin_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
"valid_to": "2016-09-09T09:11:14.861Z",
"registered_at": "2015-09-09T09:11:14.861Z",
"registrant_id": 1,
"transfer_code": "98oiewslkfkd",
"created_at": "2015-09-09T09:11:14.861Z",
"updated_at": "2015-09-09T09:11:14.860Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,
"period_unit": "y",
"creator_str": null,
"updator_str": null,
"legacy_id": null,
"legacy_registrar_id": null,
"legacy_registrant_id": null,
"outzone_at": "2016-09-24T09:11:14.861Z",
"delete_at": "2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at": null,
"registrant_verification_token": null,
"locked_by_registrant_at": "2015-09-09T09:11:14.861Z",
"pending_json": {},
"force_delete_at": null,
"statuses": [
"ok"
],
"nameservers": [
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},
"statuses_backup": []
}
]
}
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"tech_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"transfer_code":"98oiewslkfkd",
"created_at":"2015-09-09T09:11:14.861Z",
"updated_at":"2015-09-09T09:11:14.860Z",
"name_dirty":"domain0.ee",
"name_puny":"domain0.ee",
"period":1,
"period_unit":"y",
"creator_str":null,
"updator_str":null,
"legacy_id":null,
"legacy_registrar_id":null,
"legacy_registrant_id":null,
"outzone_at":"2016-09-24T09:11:14.861Z",
"delete_at":"2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at":null,
"registrant_verification_token":null,
"locked_by_registrant_at":"2015-09-09T09:11:14.861Z",
"pending_json":{
},
"force_delete_at":null,
"statuses":[
"ok"
],
"nameservers":[
{
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.41"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3a33"
]
},
{
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.51"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3b29"
]
},
],
"reserved":false,
"status_notes":{
},
"statuses_backup":[
]
}
]
```
## GET api/v1/registrant/domains/$UUID
@ -171,52 +243,89 @@ HTTP/1.1 200
Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": {
"name": "Best Names",
"website": "example.com"
"id":"98d1083a-8863-4153-93e4-caee4a013535",
"name":"domain0.ee",
"registrar":{
"name":"Best Names",
"website":"example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
"transfer_code": "98oiewslkfkd",
"created_at": "2015-09-09T09:11:14.861Z",
"updated_at": "2015-09-09T09:11:14.860Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,
"period_unit": "y",
"creator_str": null,
"updator_str": null,
"legacy_id": null,
"legacy_registrar_id": null,
"legacy_registrant_id": null,
"outzone_at": "2016-09-24T09:11:14.861Z",
"delete_at": "2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at": null,
"registrant_verification_token": null,
"locked_by_registrant_at": "2015-09-09T09:11:14.861Z",
"pending_json": {},
"force_delete_at": null,
"statuses": [
"valid_to":"2016-09-09T09:11:14.861Z",
"registered_at":"2015-09-09T09:11:14.861Z",
"registrant":{
"name":"John Smith",
"id":"acadf23e-47c4-4606-8f67-76e071a1cca2"
},
"admin_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"tech_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"transfer_code":"98oiewslkfkd",
"created_at":"2015-09-09T09:11:14.861Z",
"updated_at":"2015-09-09T09:11:14.860Z",
"name_dirty":"domain0.ee",
"name_puny":"domain0.ee",
"period":1,
"period_unit":"y",
"creator_str":null,
"updator_str":null,
"legacy_id":null,
"legacy_registrar_id":null,
"legacy_registrant_id":null,
"outzone_at":"2016-09-24T09:11:14.861Z",
"delete_at":"2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at":null,
"registrant_verification_token":null,
"locked_by_registrant_at":"2015-09-09T09:11:14.861Z",
"pending_json":{
},
"force_delete_at":null,
"statuses":[
"ok"
],
"nameservers": [
"nameservers":[
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.41"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3a33"
]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.51"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3b29"
]
}
],
"reserved": false,
"status_notes": {},
"statuses_backup": []
"reserved":false,
"status_notes":{
},
"statuses_backup":[
]
}
```

View file

@ -19,54 +19,91 @@ HTTP/1.1 200
Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": {
"name": "Best Names",
"website": "example.com"
"id":"98d1083a-8863-4153-93e4-caee4a013535",
"name":"domain0.ee",
"registrar":{
"name":"Best Names",
"website":"example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
"transfer_code": "98oiewslkfkd",
"created_at": "2015-09-09T09:11:14.861Z",
"updated_at": "2015-09-09T09:11:14.860Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,
"period_unit": "y",
"creator_str": null,
"updator_str": null,
"legacy_id": null,
"legacy_registrar_id": null,
"legacy_registrant_id": null,
"outzone_at": "2016-09-24T09:11:14.861Z",
"delete_at": "2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at": null,
"registrant_verification_token": null,
"locked_by_registrant_at": "2015-09-09T09:11:14.861Z",
"pending_json": {},
"force_delete_at": null,
"statuses": [
"registrant":{
"name":"John Smith",
"id":"acadf23e-47c4-4606-8f67-76e071a1cca2"
},
"admin_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"tech_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"registered_at":"2015-09-09T09:11:14.861Z",
"valid_to":"2016-09-09T09:11:14.861Z",
"transfer_code":"98oiewslkfkd",
"created_at":"2015-09-09T09:11:14.861Z",
"updated_at":"2015-09-09T09:11:14.860Z",
"name_dirty":"domain0.ee",
"name_puny":"domain0.ee",
"period":1,
"period_unit":"y",
"creator_str":null,
"updator_str":null,
"legacy_id":null,
"legacy_registrar_id":null,
"legacy_registrant_id":null,
"outzone_at":"2016-09-24T09:11:14.861Z",
"delete_at":"2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at":null,
"registrant_verification_token":null,
"locked_by_registrant_at":"2015-09-09T09:11:14.861Z",
"pending_json":{
},
"force_delete_at":null,
"statuses":[
"serverUpdateProhibited",
"serverDeleteProhibited",
"serverTransferProhibited"
],
"nameservers": [
"nameservers":[
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.41"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3a33"
]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.51"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3b29"
]
}
],
"reserved": false,
"status_notes": {},
"statuses_backup": []
"reserved":false,
"status_notes":{
},
"statuses_backup":[
]
}
```
@ -127,52 +164,89 @@ HTTP/1.1 200
Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": {
"name": "Best Names",
"website": "example.com"
"id":"98d1083a-8863-4153-93e4-caee4a013535",
"name":"domain0.ee",
"registrar":{
"name":"Best Names",
"website":"example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
"transfer_code": "98oiewslkfkd",
"created_at": "2015-09-09T09:11:14.861Z",
"updated_at": "2015-09-09T09:11:14.860Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,
"period_unit": "y",
"creator_str": null,
"updator_str": null,
"legacy_id": null,
"legacy_registrar_id": null,
"legacy_registrant_id": null,
"outzone_at": "2016-09-24T09:11:14.861Z",
"delete_at": "2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at": null,
"registrant_verification_token": null,
"locked_by_registrant_at": null,
"pending_json": {},
"force_delete_at": null,
"statuses": [
"registered_at":"2015-09-09T09:11:14.861Z",
"valid_to":"2016-09-09T09:11:14.861Z",
"registrant":{
"name":"John Smith",
"id":"acadf23e-47c4-4606-8f67-76e071a1cca2"
},
"admin_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"tech_contacts":[
{
"name":"John Smith",
"id":"62015e7d-42c8-4d68-8164-e9b71680fd95"
},
{
"name":"William Smith",
"id":"a041c5b6-7772-4fac-83cd-fbce3b2c8867"
}
],
"transfer_code":"98oiewslkfkd",
"created_at":"2015-09-09T09:11:14.861Z",
"updated_at":"2015-09-09T09:11:14.860Z",
"name_dirty":"domain0.ee",
"name_puny":"domain0.ee",
"period":1,
"period_unit":"y",
"creator_str":null,
"updator_str":null,
"legacy_id":null,
"legacy_registrar_id":null,
"legacy_registrant_id":null,
"outzone_at":"2016-09-24T09:11:14.861Z",
"delete_at":"2016-10-24T09:11:14.861Z",
"registrant_verification_asked_at":null,
"registrant_verification_token":null,
"locked_by_registrant_at":null,
"pending_json":{
},
"force_delete_at":null,
"statuses":[
"ok"
],
"nameservers": [
"nameservers":[
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.41"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3a33"
]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
"hostname":"ns1.bestnames.test",
"ipv4":[
"173.245.58.51"
],
"ipv6":[
"2400:cb00:2049:1::adf5:3b29"
]
}
],
"reserved": false,
"status_notes": {},
"statuses_backup": []
"reserved":false,
"status_notes":{
},
"statuses_backup":[
]
}
```