Uses of Interface
org.springframework.restdocs.hypermedia.LinkExtractor
Package
Description
Documenting a RESTful API that uses hypermedia.
-
Uses of LinkExtractor in org.springframework.restdocs.hypermedia
Modifier and TypeMethodDescriptionstatic LinkExtractor
HypermediaDocumentation.atomLinks()
Returns aLinkExtractor
capable of extracting links in Atom format where the links are found in an array namedlinks
.static LinkExtractor
HypermediaDocumentation.halLinks()
Returns aLinkExtractor
capable of extracting links in Hypermedia Application Language (HAL) format where the links are found in a map named_links
.Modifier and TypeMethodDescriptionstatic LinksSnippet
HypermediaDocumentation.links
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.links
(LinkExtractor linkExtractor, Map<String, Object> attributes, List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.links
(LinkExtractor linkExtractor, Map<String, Object> attributes, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.links
(LinkExtractor linkExtractor, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(LinkExtractor linkExtractor, Map<String, Object> attributes, List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(LinkExtractor linkExtractor, Map<String, Object> attributes, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(LinkExtractor linkExtractor, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API operation's response.ModifierConstructorDescriptionprotected
LinksSnippet
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors) Creates a newLinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
.protected
LinksSnippet
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors, boolean ignoreUndocumentedLinks) Creates a newLinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
.protected
LinksSnippet
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors, Map<String, Object> attributes) Creates a newLinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
.protected
LinksSnippet
(LinkExtractor linkExtractor, List<LinkDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedLinks) Creates a newLinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
.