Uses of Class
org.springframework.restdocs.hypermedia.LinkDescriptor
Packages that use LinkDescriptor
Package
Description
Documenting a RESTful API that uses hypermedia.
-
Uses of LinkDescriptor in org.springframework.restdocs.hypermedia
Methods in org.springframework.restdocs.hypermedia that return LinkDescriptorModifier 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.Methods in org.springframework.restdocs.hypermedia that return types with arguments of type LinkDescriptorModifier and TypeMethodDescriptionprotected final Map<String,
LinkDescriptor> LinksSnippet.getDescriptorsByRel()
Methods in org.springframework.restdocs.hypermedia with parameters of type LinkDescriptorModifier 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.Method parameters in org.springframework.restdocs.hypermedia with type arguments of type LinkDescriptorModifier 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.Constructor parameters in org.springframework.restdocs.hypermedia with type arguments of type LinkDescriptorModifierConstructorDescriptionprotected
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
.