Uses of Class
org.springframework.restdocs.request.RequestPartDescriptor
Package
Description
Documenting query and path parameters of requests sent to a RESTful API.
-
Uses of RequestPartDescriptor in org.springframework.restdocs.request
Modifier and TypeMethodDescriptionfinal RequestPartDescriptor
RequestPartDescriptor.optional()
Marks the request part as optional.static RequestPartDescriptor
RequestDocumentation.partWithName
(String name) Creates aRequestPartDescriptor
that describes a request part with the givenname
.Modifier and TypeMethodDescriptionfinal RequestPartsSnippet
RequestPartsSnippet.and
(RequestPartDescriptor... additionalDescriptors) Returns a newRequestPartsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.static RequestPartsSnippet
RequestDocumentation.relaxedRequestParts
(Map<String, Object> attributes, RequestPartDescriptor... descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.relaxedRequestParts
(RequestPartDescriptor... descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.requestParts
(Map<String, Object> attributes, RequestPartDescriptor... descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.requestParts
(RequestPartDescriptor... descriptors) Returns aSnippet
that will document the parts from the API operation's request.Modifier and TypeMethodDescriptionfinal RequestPartsSnippet
RequestPartsSnippet.and
(List<RequestPartDescriptor> additionalDescriptors) Returns a newRequestPartsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.static RequestPartsSnippet
RequestDocumentation.relaxedRequestParts
(List<RequestPartDescriptor> descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.relaxedRequestParts
(Map<String, Object> attributes, List<RequestPartDescriptor> descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.requestParts
(List<RequestPartDescriptor> descriptors) Returns aSnippet
that will document the parts from the API operation's request.static RequestPartsSnippet
RequestDocumentation.requestParts
(Map<String, Object> attributes, List<RequestPartDescriptor> descriptors) Returns aSnippet
that will document the parts from the API operation's request.ModifierConstructorDescriptionprotected
RequestPartsSnippet
(List<RequestPartDescriptor> descriptors) Creates a newRequestPartsSnippet
that will document the request's parts using the givendescriptors
.protected
RequestPartsSnippet
(List<RequestPartDescriptor> descriptors, boolean ignoreUndocumentedParts) Creates a newRequestPartsSnippet
that will document the request's parts using the givendescriptors
.protected
RequestPartsSnippet
(List<RequestPartDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestPartsSnippet
that will document the request's parts using the givendescriptors
.protected
RequestPartsSnippet
(List<RequestPartDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParts) Creates a newRequestPartsSnippet
that will document the request's parts using the givendescriptors
.