Uses of Class
org.springframework.restdocs.request.ParameterDescriptor
Package
Description
Documenting query and path parameters of requests sent to a RESTful API.
-
Uses of ParameterDescriptor in org.springframework.restdocs.request
Modifier 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
.Modifier and TypeMethodDescriptionprotected final Map<String,
ParameterDescriptor> AbstractParametersSnippet.getParameterDescriptors()
Returns aMap
ofParameterDescriptors
that will be used to generate the documentation key by theirgetName()
.Modifier 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.Modifier 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.ModifierConstructorDescriptionprotected
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
.