public abstract class HypermediaDocumentation extends Object
| Modifier and Type | Method and Description |
|---|---|
static LinkSnippetResultHandler |
documentLinks(String outputDir,
LinkExtractor linkExtractor,
LinkDescriptor... descriptors)
Creates a
LinkSnippetResultHandler that will produce a documentation
snippet for a response's links. |
static LinkDescriptor |
linkWithRel(String rel)
Creates a
LinkDescriptor that describes a link with the given rel. |
public static LinkDescriptor linkWithRel(String rel)
LinkDescriptor that describes a link with the given rel.rel - The rel of the linkLinkDescriptor ready for further configurationRestDocumentationResultHandler.withLinks(LinkDescriptor...),
RestDocumentationResultHandler.withLinks(LinkExtractor, LinkDescriptor...)public static LinkSnippetResultHandler documentLinks(String outputDir, LinkExtractor linkExtractor, LinkDescriptor... descriptors)
LinkSnippetResultHandler that will produce a documentation
snippet for a response's links.outputDir - The directory to which the snippet should be writtenlinkExtractor - Used to extract the links from the responsedescriptors - The descriptions of the response's linksRestDocumentationResultHandler.withLinks(LinkDescriptor...),
RestDocumentationResultHandler.withLinks(LinkExtractor, LinkDescriptor...)