Uses of Class
org.springframework.restdocs.request.ParameterDescriptor
Packages that use ParameterDescriptor
Package
Description
Documenting query and path parameters of requests sent to a RESTful API.
-
Uses of ParameterDescriptor in org.springframework.restdocs.request
Methods in org.springframework.restdocs.request that return ParameterDescriptorModifier and TypeMethodDescriptionfinal ParameterDescriptor
ParameterDescriptor.optional()
Marks the parameter as optional.static ParameterDescriptor
RequestDocumentation.parameterWithName
(String name) Creates aParameterDescriptor
that describes a request or path parameter with the givenname
.Methods in org.springframework.restdocs.request that return types with arguments of type ParameterDescriptorModifier and TypeMethodDescriptionprotected final Map<String,
ParameterDescriptor> AbstractParametersSnippet.getParameterDescriptors()
Returns aMap
ofParameterDescriptors
that will be used to generate the documentation key by theirgetName()
.Methods in org.springframework.restdocs.request with parameters of type ParameterDescriptorModifier and TypeMethodDescriptionFormParametersSnippet.and
(ParameterDescriptor... additionalDescriptors) Returns a newFormParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.final PathParametersSnippet
PathParametersSnippet.and
(ParameterDescriptor... additionalDescriptors) Returns a newPathParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.QueryParametersSnippet.and
(ParameterDescriptor... additionalDescriptors) Returns a newQueryParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.AbstractParametersSnippet.createModelForDescriptor
(ParameterDescriptor descriptor) Returns a model for the givendescriptor
.static FormParametersSnippet
RequestDocumentation.formParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.formParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.pathParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.pathParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.queryParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.queryParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.relaxedFormParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.relaxedFormParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.relaxedPathParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.relaxedPathParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.relaxedQueryParameters
(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.relaxedQueryParameters
(ParameterDescriptor... descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.Method parameters in org.springframework.restdocs.request with type arguments of type ParameterDescriptorModifier and TypeMethodDescriptionFormParametersSnippet.and
(List<ParameterDescriptor> additionalDescriptors) Returns a newFormParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.final PathParametersSnippet
PathParametersSnippet.and
(List<ParameterDescriptor> additionalDescriptors) Returns a newPathParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.QueryParametersSnippet.and
(List<ParameterDescriptor> additionalDescriptors) Returns a newQueryParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.static FormParametersSnippet
RequestDocumentation.formParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.formParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.pathParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.pathParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.queryParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.queryParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.relaxedFormParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static FormParametersSnippet
RequestDocumentation.relaxedFormParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the form parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.relaxedPathParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static PathParametersSnippet
RequestDocumentation.relaxedPathParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the path parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.relaxedQueryParameters
(List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.static QueryParametersSnippet
RequestDocumentation.relaxedQueryParameters
(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippet
that will document the query parameters from the API operation's request.Constructor parameters in org.springframework.restdocs.request with type arguments of type ParameterDescriptorModifierConstructorDescriptionprotected
AbstractParametersSnippet
(String snippetName, List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newAbstractParametersSnippet
that will produce a snippet with the givensnippetName
that will document parameters using the givendescriptors
.protected
FormParametersSnippet
(List<ParameterDescriptor> descriptors) Creates a newFormParametersSnippet
that will document the request's form parameters using the givendescriptors
.protected
FormParametersSnippet
(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newFormParametersSnippet
that will document the request's form parameters using the givendescriptors
.protected
FormParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newFormParametersSnippet
that will document the request's form parameters using the givendescriptors
.protected
FormParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newFormParametersSnippet
that will document the request's form parameters using the givendescriptors
.protected
PathParametersSnippet
(List<ParameterDescriptor> descriptors) Creates a newPathParametersSnippet
that will document the request's path parameters using the givendescriptors
.protected
PathParametersSnippet
(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newPathParametersSnippet
that will document the request's path parameters using the givendescriptors
.protected
PathParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newPathParametersSnippet
that will document the request's path parameters using the givendescriptors
.protected
PathParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newPathParametersSnippet
that will document the request's path parameters using the givendescriptors
.protected
QueryParametersSnippet
(List<ParameterDescriptor> descriptors) Creates a newQueryParametersSnippet
that will document the request's query parameters using the givendescriptors
.protected
QueryParametersSnippet
(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newQueryParametersSnippet
that will document the request's query parameters using the givendescriptors
.protected
QueryParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newQueryParametersSnippet
that will document the request's query parameters using the givendescriptors
.protected
QueryParametersSnippet
(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newQueryParametersSnippet
that will document the request's query parameters using the givendescriptors
.