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 TypeMethodDescriptionfinal PathParametersSnippetPathParametersSnippet.and(ParameterDescriptor... additionalDescriptors) Returns a newPathParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.RequestParametersSnippet.and(ParameterDescriptor... additionalDescriptors) Returns a newRequestParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.AbstractParametersSnippet.createModelForDescriptor(ParameterDescriptor descriptor) Returns a model for the givendescriptor.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 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 RequestParametersSnippetRequestDocumentation.relaxedRequestParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.relaxedRequestParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.requestParameters(Map<String, Object> attributes, ParameterDescriptor... descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.requestParameters(ParameterDescriptor... descriptors) Returns aSnippetthat will document the parameters from the API operation's request.Method parameters in org.springframework.restdocs.request with type arguments of type ParameterDescriptorModifier and TypeMethodDescriptionfinal PathParametersSnippetPathParametersSnippet.and(List<ParameterDescriptor> additionalDescriptors) Returns a newPathParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.RequestParametersSnippet.and(List<ParameterDescriptor> additionalDescriptors) Returns a newRequestParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.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 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 RequestParametersSnippetRequestDocumentation.relaxedRequestParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.relaxedRequestParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.requestParameters(List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the parameters from the API operation's request.static RequestParametersSnippetRequestDocumentation.requestParameters(Map<String, Object> attributes, List<ParameterDescriptor> descriptors) Returns aSnippetthat will document the 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.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.protectedRequestParametersSnippet(List<ParameterDescriptor> descriptors) Creates a newRequestParametersSnippetthat will document the request's parameters using the givendescriptors.protectedRequestParametersSnippet(List<ParameterDescriptor> descriptors, boolean ignoreUndocumentedParameters) Creates a newRequestParametersSnippetthat will document the request's parameters using the givendescriptors.protectedRequestParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestParametersSnippetthat will document the request's parameters using the givendescriptors.protectedRequestParametersSnippet(List<ParameterDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedParameters) Creates a newRequestParametersSnippetthat will document the request's parameters using the givendescriptors.