Add next page navigation for RDAP entity searches

A couple methods were moved to new locations so they are accessible to all types of search queries, not just nameservers like they originally were.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=179089014
This commit is contained in:
mountford 2017-12-14 13:40:02 -08:00 committed by Ben McIlwain
parent c8059d4d8a
commit e619ea1bff
12 changed files with 398 additions and 111 deletions

View file

@ -3,14 +3,14 @@
[
{
"objectClassName" : "entity",
"handle" : "9-ROID",
"handle" : "0001-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/9-ROID",
"value" : "https://example.com/rdap/entity/0001-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/9-ROID",
"href": "https://example.com/rdap/entity/0001-ROID",
"type" : "application/rdap+json"
}
],
@ -49,14 +49,14 @@
},
{
"objectClassName" : "entity",
"handle" : "A-ROID",
"handle" : "0002-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/A-ROID",
"value" : "https://example.com/rdap/entity/0002-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/A-ROID",
"href": "https://example.com/rdap/entity/0002-ROID",
"type" : "application/rdap+json"
}
],
@ -95,14 +95,14 @@
},
{
"objectClassName" : "entity",
"handle" : "B-ROID",
"handle" : "0003-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/B-ROID",
"value" : "https://example.com/rdap/entity/0003-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/B-ROID",
"href": "https://example.com/rdap/entity/0003-ROID",
"type" : "application/rdap+json"
}
],
@ -141,14 +141,14 @@
},
{
"objectClassName" : "entity",
"handle" : "C-ROID",
"handle" : "0004-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/C-ROID",
"value" : "https://example.com/rdap/entity/0004-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/C-ROID",
"href": "https://example.com/rdap/entity/0004-ROID",
"type" : "application/rdap+json"
}
],

View file

@ -3,14 +3,14 @@
[
{
"objectClassName" : "entity",
"handle" : "9-ROID",
"handle" : "0001-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/9-ROID",
"value" : "https://example.com/rdap/entity/0001-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/9-ROID",
"href": "https://example.com/rdap/entity/0001-ROID",
"type" : "application/rdap+json"
}
],
@ -49,14 +49,14 @@
},
{
"objectClassName" : "entity",
"handle" : "A-ROID",
"handle" : "0002-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/A-ROID",
"value" : "https://example.com/rdap/entity/0002-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/A-ROID",
"href": "https://example.com/rdap/entity/0002-ROID",
"type" : "application/rdap+json"
}
],
@ -95,14 +95,14 @@
},
{
"objectClassName" : "entity",
"handle" : "B-ROID",
"handle" : "0003-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/B-ROID",
"value" : "https://example.com/rdap/entity/0003-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/B-ROID",
"href": "https://example.com/rdap/entity/0003-ROID",
"type" : "application/rdap+json"
}
],
@ -141,14 +141,14 @@
},
{
"objectClassName" : "entity",
"handle" : "C-ROID",
"handle" : "0004-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/C-ROID",
"value" : "https://example.com/rdap/entity/0004-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/C-ROID",
"href": "https://example.com/rdap/entity/0004-ROID",
"type" : "application/rdap+json"
}
],
@ -197,6 +197,18 @@
"Search results per query are limited."
]
},
{
"title" : "Navigation Links",
"links" :
[
{
"type" : "application/rdap+json",
"href" : "https://example.com/rdap/entities?%NAME%",
"rel" : "next"
}
],
"description" : [ "Links to related pages." ],
},
{
"title" : "RDAP Terms of Service",
"description" :

View file

@ -3,14 +3,14 @@
[
{
"objectClassName" : "entity",
"handle" : "9-ROID",
"handle" : "0001-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/9-ROID",
"value" : "https://example.com/rdap/entity/0001-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/9-ROID",
"href": "https://example.com/rdap/entity/0001-ROID",
"type" : "application/rdap+json"
}
],
@ -49,14 +49,14 @@
},
{
"objectClassName" : "entity",
"handle" : "A-ROID",
"handle" : "0002-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/A-ROID",
"value" : "https://example.com/rdap/entity/0002-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/A-ROID",
"href": "https://example.com/rdap/entity/0002-ROID",
"type" : "application/rdap+json"
}
],
@ -95,14 +95,14 @@
},
{
"objectClassName" : "entity",
"handle" : "B-ROID",
"handle" : "0003-ROID",
"status" : ["active"],
"links" :
[
{
"value" : "https://example.com/rdap/entity/B-ROID",
"value" : "https://example.com/rdap/entity/0003-ROID",
"rel" : "self",
"href": "https://example.com/rdap/entity/B-ROID",
"href": "https://example.com/rdap/entity/0003-ROID",
"type" : "application/rdap+json"
}
],
@ -204,6 +204,18 @@
"Search results per query are limited."
]
},
{
"title" : "Navigation Links",
"links" :
[
{
"type" : "application/rdap+json",
"href" : "https://example.com/rdap/entities?%NAME%",
"rel" : "next"
}
],
"description" : [ "Links to related pages." ],
},
{
"title" : "RDAP Terms of Service",
"description" :

View file

@ -225,6 +225,18 @@
"Search results per query are limited."
]
},
{
"title" : "Navigation Links",
"links" :
[
{
"type" : "application/rdap+json",
"href" : "https://example.com/rdap/entities?%NAME%",
"rel" : "next"
}
],
"description" : [ "Links to related pages." ],
},
{
"title" : "RDAP Terms of Service",
"description" :