Uses of Class
org.springframework.restdocs.hypermedia.LinkDescriptor
Package
Description
Documenting a RESTful API that uses hypermedia.
-
Uses of LinkDescriptor in org.springframework.restdocs.hypermedia
Modifier and TypeMethodDescriptionstatic LinkDescriptor
HypermediaDocumentation.linkWithRel
(String rel) Creates aLinkDescriptor
that describes a link with the givenrel
.final LinkDescriptor
LinkDescriptor.optional()
Marks the link as optional.Modifier and TypeMethodDescriptionprotected final Map<String,
LinkDescriptor> LinksSnippet.getDescriptorsByRel()
Modifier and TypeMethodDescriptionfinal LinksSnippet
LinksSnippet.and
(LinkDescriptor... additionalDescriptors) Returns a newLinksSnippet
configured with this snippet's link extractor and attributes, and its descriptors combined with the givenadditionalDescriptors
.LinksSnippet.createModelForDescriptor
(LinkDescriptor descriptor) Returns a model for the givendescriptor
.static LinksSnippet
HypermediaDocumentation.links
(Map<String, Object> attributes, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API call's response.static LinksSnippet
HypermediaDocumentation.links
(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
(Map<String, Object> attributes, LinkDescriptor... descriptors) Returns a newSnippet
that will document the links in the API call's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(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.Modifier and TypeMethodDescriptionfinal LinksSnippet
LinksSnippet.and
(List<LinkDescriptor> additionalDescriptors) Returns a newLinksSnippet
configured with this snippet's link extractor and attributes, and its descriptors combined with the givenadditionalDescriptors
.static LinksSnippet
HypermediaDocumentation.links
(List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
Returns a newSnippet
that will document the links in the API call's response.static 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.relaxedLinks
(List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API operation's response.static LinksSnippet
HypermediaDocumentation.relaxedLinks
(Map<String, Object> attributes, List<LinkDescriptor> descriptors) Returns a newSnippet
that will document the links in the API call'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.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
.