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 ParameterDescriptorParameterDescriptor.optional()Marks the parameter as optional.static ParameterDescriptorRequestDocumentation.parameterWithName(String name) Creates aParameterDescriptorthat 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 aMapofParameterDescriptorsthat 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 newFormParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final PathParametersSnippetPathParametersSnippet.and(ParameterDescriptor... additionalDescriptors) Returns a newPathParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.QueryParametersSnippet.and(ParameterDescriptor... additionalDescriptors) Returns a newQueryParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.AbstractParametersSnippet.createModelForDescriptor(ParameterDescriptor descriptor) Returns a model for the givendescriptor.static FormParametersSnippetRequestDocumentation.formParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.formParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.pathParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.pathParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.queryParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.queryParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.relaxedFormParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.relaxedFormParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.relaxedPathParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.relaxedPathParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.relaxedQueryParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.relaxedQueryParameters(ParameterDescriptor... descriptors) Returns aSnippetthat 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 newFormParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final PathParametersSnippetPathParametersSnippet.and(List<ParameterDescriptor> additionalDescriptors) Returns a newPathParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.QueryParametersSnippet.and(List<ParameterDescriptor> additionalDescriptors) Returns a newQueryParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.static FormParametersSnippetRequestDocumentation.formParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.formParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.pathParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.pathParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.queryParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.queryParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.relaxedFormParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static FormParametersSnippetRequestDocumentation.relaxedFormParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the form parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.relaxedPathParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static PathParametersSnippetRequestDocumentation.relaxedPathParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the path parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.relaxedQueryParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.static QueryParametersSnippetRequestDocumentation.relaxedQueryParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the query parameters from the API operation's request.Constructor parameters in org.springframework.restdocs.request with type arguments of type ParameterDescriptorModifierConstructorDescriptionprotectedAbstractParametersSnippet(String snippetName, List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newAbstractParametersSnippetthat will produce a snippet with the givensnippetNamethat will document parameters using the givendescriptors.protectedFormParametersSnippet(List<ParameterDescriptor> descriptors) Creates a newFormParametersSnippetthat will document the request's form parameters using the givendescriptors.protectedFormParametersSnippet(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newFormParametersSnippetthat will document the request's form parameters using the givendescriptors.protectedFormParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newFormParametersSnippetthat will document the request's form parameters using the givendescriptors.protectedFormParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newFormParametersSnippetthat will document the request's form parameters using the givendescriptors.protectedPathParametersSnippet(List<ParameterDescriptor> descriptors) Creates a newPathParametersSnippetthat will document the request's path parameters using the givendescriptors.protectedPathParametersSnippet(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newPathParametersSnippetthat will document the request's path parameters using the givendescriptors.protectedPathParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newPathParametersSnippetthat will document the request's path parameters using the givendescriptors.protectedPathParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newPathParametersSnippetthat will document the request's path parameters using the givendescriptors.protectedQueryParametersSnippet(List<ParameterDescriptor> descriptors) Creates a newQueryParametersSnippetthat will document the request's query parameters using the givendescriptors.protectedQueryParametersSnippet(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newQueryParametersSnippetthat will document the request's query parameters using the givendescriptors.protectedQueryParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newQueryParametersSnippetthat will document the request's query parameters using the givendescriptors.protectedQueryParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newQueryParametersSnippetthat will document the request's query parameters using the givendescriptors.