mirror of
https://github.com/google/nomulus.git
synced 2025-08-08 10:45:12 +02:00
This CL adds the functionality for contact and registrar searches. A future CL will handle domains and entities. Support is also added for filtering results by registrar. Deleted items can only be seen by admins, and by registrars viewing their own deleted items. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=170734664
90 lines
2.1 KiB
JSON
90 lines
2.1 KiB
JSON
{
|
|
"objectClassName" : "entity",
|
|
"handle" : "%NAME%",
|
|
"status" : ["%STATUS%"],
|
|
"roles" : ["registrar"],
|
|
"links" :
|
|
[
|
|
{
|
|
"value" : "https://example.com/rdap/entity/%NAME%",
|
|
"rel" : "self",
|
|
"href": "https://example.com/rdap/entity/%NAME%",
|
|
"type" : "application/rdap+json"
|
|
}
|
|
],
|
|
"publicIds" :
|
|
[
|
|
{
|
|
"type" : "IANA Registrar ID",
|
|
"identifier" : "%NAME%"
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"eventAction": "registration",
|
|
"eventActor": "%NAME%",
|
|
"eventDate": "2000-01-01T00:00:00.000Z"
|
|
},
|
|
{
|
|
"eventAction": "last update of RDAP database",
|
|
"eventDate": "2000-01-01T00:00:00.000Z"
|
|
}
|
|
],
|
|
"vcardArray" :
|
|
[
|
|
"vcard",
|
|
[
|
|
["version", {}, "text", "4.0"],
|
|
["fn", {}, "text", "%FULLNAME%"],
|
|
["adr", {}, "text",
|
|
[
|
|
"",
|
|
"",
|
|
"123 Example Boulevard <script>"
|
|
"Williamsburg <script>",
|
|
"NY",
|
|
"11211",
|
|
"United States"
|
|
]
|
|
],
|
|
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
|
|
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
|
|
["email", {}, "text", "contact-us@example.com"]
|
|
]
|
|
],
|
|
"entities" :
|
|
[
|
|
{
|
|
"objectClassName" : "entity",
|
|
"status" : ["active"],
|
|
"roles" : ["administrative"],
|
|
"vcardArray" :
|
|
[
|
|
"vcard",
|
|
[
|
|
["version", {}, "text", "4.0"],
|
|
["fn", {}, "text", "Jane Doe"],
|
|
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551215"],
|
|
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551216"],
|
|
["email", {}, "text", "janedoe@example.com"]
|
|
]
|
|
],
|
|
},
|
|
{
|
|
"objectClassName" : "entity",
|
|
"status" : ["active"],
|
|
"roles" : ["technical"],
|
|
"vcardArray" :
|
|
[
|
|
"vcard",
|
|
[
|
|
["version", {}, "text", "4.0"],
|
|
["fn", {}, "text", "John Doe"],
|
|
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551213"],
|
|
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
|
|
["email", {}, "text", "johndoe@example.com"]
|
|
]
|
|
],
|
|
}
|
|
]
|
|
}
|