internetee-registry/doc/repp/v1/domain.md
2015-04-01 17:00:19 +03:00

1.9 KiB

GET /repp/v1/domains

Returns domains of the current registrar.

Parameters

Field name Required Type Allowed values Description
limit false Integer [1..200] How many domains to show
offset false Integer Domain number to start at
details false String ["true", "false"] Whether to include details

Request

GET /repp/v1/domains?limit=1&details=true HTTP/1.1
Accept: application/json
Authorization: Basic Z2l0bGFiOmdoeXQ5ZTRmdQ==
Content-Length: 0
Content-Type: application/json

Response

HTTP/1.1 200
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 506
Content-Type: application/json

{
  "domains": [
    {
      "id": 1,
      "name": "domain0.ee",
      "registrar_id": 1,
      "registered_at": "2015-04-01T13:59:45.874Z",
      "status": null,
      "valid_from": "2015-04-01T00:00:00.000Z",
      "valid_to": "2016-04-01T00:00:00.000Z",
      "owner_contact_id": 1,
      "auth_info": "78d0edcd105c8e1936457c1eef659611",
      "created_at": "2015-04-01T13:59:45.871Z",
      "updated_at": "2015-04-01T13:59:45.871Z",
      "name_dirty": "domain0.ee",
      "name_puny": "domain0.ee",
      "period": 1,
      "period_unit": "y",
      "creator_str": null,
      "updator_str": null,
      "whois_body": null
    }
  ],
  "total_number_of_records": 2
}

GET /repp/v1/domains

Returns domain names with offset.

Request

GET /repp/v1/domains?offset=1 HTTP/1.1
Accept: application/json
Authorization: Basic Z2l0bGFiOmdoeXQ5ZTRmdQ==
Content-Length: 0
Content-Type: application/json

Response

HTTP/1.1 200
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 54
Content-Type: application/json

{
  "domains": [
    "domain1.ee"
  ],
  "total_number_of_records": 2
}