mirror of
https://github.com/google/nomulus
synced 2026-01-06 21:47:31 +00:00
Put help information on the main page
It turns out that the RDAP spec does not envision multiple help pages. We can still support them (for the TOS, for instance), but we shouldn't expect users to go searching for help other than the main page. Therefore, consolidate the useful information on the main page, and get rid of some of the others. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=178792548
This commit is contained in:
@@ -1086,22 +1086,6 @@ public final class RegistryConfig {
|
||||
return new ImmutableMap.Builder<String, RdapNoticeDescriptor>()
|
||||
.put("/", RdapNoticeDescriptor.builder()
|
||||
.setTitle("RDAP Help")
|
||||
.setDescription(ImmutableList.of(
|
||||
"RDAP Help Topics (use /help/index for information)",
|
||||
"syntax",
|
||||
"tos (Terms of Service)"))
|
||||
.setLinkValueSuffix("help/")
|
||||
.build())
|
||||
.put("/index", RdapNoticeDescriptor.builder()
|
||||
.setTitle("RDAP Help")
|
||||
.setDescription(ImmutableList.of(
|
||||
"RDAP Help Topics (use /help/index for information)",
|
||||
"syntax",
|
||||
"tos (Terms of Service)"))
|
||||
.setLinkValueSuffix("help/index")
|
||||
.build())
|
||||
.put("/syntax", RdapNoticeDescriptor.builder()
|
||||
.setTitle("RDAP Command Syntax")
|
||||
.setDescription(ImmutableList.of(
|
||||
"domain/XXXX",
|
||||
"nameserver/XXXX",
|
||||
@@ -1114,7 +1098,7 @@ public final class RegistryConfig {
|
||||
"entities?fn=XXXX",
|
||||
"entities?handle=XXXX",
|
||||
"help/XXXX"))
|
||||
.setLinkValueSuffix("help/syntax")
|
||||
.setLinkValueSuffix("help/")
|
||||
.setLinkHrefUrlString("https://github.com/google/nomulus/blob/master/docs/rdap.md")
|
||||
.build())
|
||||
.put("/tos", RdapNoticeDescriptor.builder()
|
||||
|
||||
Reference in New Issue
Block a user