Uses of Class
org.springframework.restdocs.request.RequestPartDescriptor
Packages that use RequestPartDescriptor
Package
Description
Documenting query and path parameters of requests sent to a RESTful API.
-
Uses of RequestPartDescriptor in org.springframework.restdocs.request
Methods in org.springframework.restdocs.request that return RequestPartDescriptorModifier 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
.Methods in org.springframework.restdocs.request with parameters of type RequestPartDescriptorModifier 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.Method parameters in org.springframework.restdocs.request with type arguments of type RequestPartDescriptorModifier 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.Constructor parameters in org.springframework.restdocs.request with type arguments of type RequestPartDescriptorModifierConstructorDescriptionprotected
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
.