mirror of
https://github.com/google/nomulus
synced 2026-01-09 07:33:42 +00:00
Add RDAP search support for only contacts or only registrars
By default, RDAP entity searches return both contacts and registrars. This CL adds a new query parameter to request only one or the other. Among other benefits, this will allow a future CL to permit wildcard searches that return all registrars. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181605990
This commit is contained in:
@@ -67,6 +67,12 @@ public final class RdapModule {
|
||||
return RequestParameters.extractOptionalParameter(req, "registrar");
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter("subtype")
|
||||
static Optional<String> provideSubtype(HttpServletRequest req) {
|
||||
return RequestParameters.extractOptionalParameter(req, "subtype");
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter("includeDeleted")
|
||||
static Optional<Boolean> provideIncludeDeleted(HttpServletRequest req) {
|
||||
|
||||
Reference in New Issue
Block a user