Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractBodySnippet - Class in org.springframework.restdocs.payload
-
Abstract
TemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response body. - AbstractBodySnippet(String, String, PayloadSubsectionExtractor<?>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.AbstractBodySnippet
-
Creates a new
AbstractBodySnippet
that will produce a snippet named<name>-body
using a template named<type>-body
. - AbstractBodySnippet(String, PayloadSubsectionExtractor<?>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.AbstractBodySnippet
-
Creates a new
AbstractBodySnippet
that will produce a snippet named<type>-body
using a template named<type>-body
. - AbstractConfigurer - Class in org.springframework.restdocs.config
-
Abstract configurer that declares methods that are internal to the documentation configuration implementation.
- AbstractConfigurer() - Constructor for class org.springframework.restdocs.config.AbstractConfigurer
- AbstractCookiesSnippet - Class in org.springframework.restdocs.cookies
-
Abstract
TemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response cookies. - AbstractCookiesSnippet(String, List<CookieDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Creates a new
AbstractCookiesSnippet
that will produce a snippet named<type>-cookies
. - AbstractDescriptor<T extends AbstractDescriptor<T>> - Class in org.springframework.restdocs.snippet
-
Base class for descriptors.
- AbstractDescriptor() - Constructor for class org.springframework.restdocs.snippet.AbstractDescriptor
- AbstractFieldsSnippet - Class in org.springframework.restdocs.payload
-
Abstract
TemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response fields. - AbstractFieldsSnippet(String, String, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippet
that will produce a snippet named<name>-fields
using a template named<type>-fields
. - AbstractFieldsSnippet(String, String, List<FieldDescriptor>, Map<String, Object>, boolean, PayloadSubsectionExtractor<?>) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippet
that will produce a snippet named<name>-fields
using a template named<type>-fields
. - AbstractFieldsSnippet(String, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippet
that will produce a snippet named<type>-fields
using a template named<type>-fields
. - AbstractFieldsSnippet(String, List<FieldDescriptor>, Map<String, Object>, boolean, PayloadSubsectionExtractor<?>) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippet
that will produce a snippet named<type>-fields
using a template named<type>-fields
. - AbstractHeadersSnippet - Class in org.springframework.restdocs.headers
-
Abstract
TemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response headers. - AbstractHeadersSnippet(String, List<HeaderDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Creates a new
AbstractHeadersSnippet
that will produce a snippet named<type>-headers
. - AbstractNestedConfigurer<PARENT> - Class in org.springframework.restdocs.config
-
Base class for
NestedConfigurer
implementations. - AbstractNestedConfigurer(PARENT) - Constructor for class org.springframework.restdocs.config.AbstractNestedConfigurer
-
Creates a new
AbstractNestedConfigurer
with the givenparent
. - AbstractParametersSnippet - Class in org.springframework.restdocs.request
-
Abstract
TemplatedSnippet
subclass that provides a base for snippets that document parameters from a request sent to a RESTful resource. - AbstractParametersSnippet(String, List<ParameterDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.AbstractParametersSnippet
-
Creates a new
AbstractParametersSnippet
that will produce a snippet with the givensnippetName
that will document parameters using the givendescriptors
. - add(String, String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Adds a header with the given
name
andvalue
. - afterEach(ExtensionContext) - Method in class org.springframework.restdocs.RestDocumentationExtension
- afterTest() - Method in class org.springframework.restdocs.ManualRestDocumentation
-
Notification that a test has completed.
- and() - Method in class org.springframework.restdocs.config.AbstractNestedConfigurer
- and(List<CookieDescriptor>) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Returns a new
RequestCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<CookieDescriptor>) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Returns a new
ResponseCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<HeaderDescriptor>) - Method in class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Returns a new
RequestHeadersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<HeaderDescriptor>) - Method in class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Returns a new
ResponseHeadersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<LinkDescriptor>) - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
-
Returns a new
LinksSnippet
configured with this snippet's link extractor and attributes, and its descriptors combined with the givenadditionalDescriptors
. - and(List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestPartFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<ParameterDescriptor>) - Method in class org.springframework.restdocs.request.FormParametersSnippet
-
Returns a new
FormParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<ParameterDescriptor>) - Method in class org.springframework.restdocs.request.PathParametersSnippet
-
Returns a new
PathParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<ParameterDescriptor>) - Method in class org.springframework.restdocs.request.QueryParametersSnippet
-
Returns a new
QueryParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(List<RequestPartDescriptor>) - Method in class org.springframework.restdocs.request.RequestPartsSnippet
-
Returns a new
RequestPartsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(CookieDescriptor...) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Returns a new
RequestCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(CookieDescriptor...) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Returns a new
ResponseCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(HeaderDescriptor...) - Method in class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Returns a new
RequestHeadersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(HeaderDescriptor...) - Method in class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Returns a new
ResponseHeadersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(LinkDescriptor...) - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
-
Returns a new
LinksSnippet
configured with this snippet's link extractor and attributes, and its descriptors combined with the givenadditionalDescriptors
. - and(FieldDescriptor...) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(FieldDescriptor...) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestPartFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(FieldDescriptor...) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(ParameterDescriptor...) - Method in class org.springframework.restdocs.request.FormParametersSnippet
-
Returns a new
FormParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(ParameterDescriptor...) - Method in class org.springframework.restdocs.request.PathParametersSnippet
-
Returns a new
PathParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(ParameterDescriptor...) - Method in class org.springframework.restdocs.request.QueryParametersSnippet
-
Returns a new
QueryParametersSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - and(RequestPartDescriptor...) - Method in class org.springframework.restdocs.request.RequestPartsSnippet
-
Returns a new
RequestPartsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, FieldDescriptor...) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, FieldDescriptor...) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - andWithPrefix(String, FieldDescriptor...) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
. - apply(Map<String, Object>, RestDocumentationContext) - Method in class org.springframework.restdocs.config.AbstractConfigurer
-
Applies the configurer to the given
configuration
. - apply(Map<String, Object>, RestDocumentationContext) - Method in class org.springframework.restdocs.config.OperationPreprocessorsConfigurer
- apply(Map<String, Object>, RestDocumentationContext) - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Applies this configurer to the given
configuration
within the givencontext
. - apply(Map<String, Object>, RestDocumentationContext) - Method in class org.springframework.restdocs.config.SnippetConfigurer
- apply(Statement, Description) - Method in class org.springframework.restdocs.JUnitRestDocumentation
- applyPathPrefix(String, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a copy of the given
descriptors
with the givenpathPrefix
applied to their paths. - ARRAY - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
An array.
- asciidoctor() - Static method in class org.springframework.restdocs.templates.TemplateFormats
-
Returns the Asciidoctor template format with the ID
asciidoctor
and the file extensionadoc
. - AsciidoctorTableCellContentLambda - Class in org.springframework.restdocs.templates.mustache
-
A
Mustache.Lambda
that escapes|
characters so that the do not break the table's formatting. - AsciidoctorTableCellContentLambda() - Constructor for class org.springframework.restdocs.templates.mustache.AsciidoctorTableCellContentLambda
- atomLinks() - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a
LinkExtractor
capable of extracting links in Atom format where the links are found in an array namedlinks
. - Attribute(String, Object) - Constructor for class org.springframework.restdocs.snippet.Attributes.Attribute
-
Creates a new attribute with the given
key
andvalue
. - ATTRIBUTE_NAME_DEFAULT_OPERATION_REQUEST_PREPROCESSOR - Static variable in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Name of the operation attribute used to hold the default operation request preprocessor.
- ATTRIBUTE_NAME_DEFAULT_OPERATION_RESPONSE_PREPROCESSOR - Static variable in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Name of the operation attribute used to hold the default operation response preprocessor.
- ATTRIBUTE_NAME_DEFAULT_SNIPPETS - Static variable in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Name of the operation attribute used to hold the
List
of default snippets. - ATTRIBUTE_NAME_URL_TEMPLATE - Static variable in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Name of the operation attribute used to hold the request's URL template.
- attributes(Attributes.Attribute...) - Method in class org.springframework.restdocs.snippet.AbstractDescriptor
-
Adds the given
attributes
to the descriptor. - attributes(Attributes.Attribute...) - Static method in class org.springframework.restdocs.snippet.Attributes
-
Creates a
Map
of the givenattributes
. - Attributes - Class in org.springframework.restdocs.snippet
-
A fluent API for building a map of attributes.
- Attributes.Attribute - Class in org.springframework.restdocs.snippet
-
An attribute (key-value pair).
- Attributes.AttributeBuilder - Class in org.springframework.restdocs.snippet
-
A simple builder for an attribute (key-value pair).
B
- beforeEach(ExtensionContext) - Method in class org.springframework.restdocs.RestDocumentationExtension
- beforeOperation() - Method in class org.springframework.restdocs.JUnitRestDocumentation
- beforeOperation() - Method in class org.springframework.restdocs.ManualRestDocumentation
- beforeOperation() - Method in interface org.springframework.restdocs.RestDocumentationContextProvider
-
Returns a
RestDocumentationContext
for the operation that is about to be performed. - beforeTest(Class<?>, String) - Method in class org.springframework.restdocs.ManualRestDocumentation
-
Notification that a test is about to begin.
- beneathPath(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
PayloadSubsectionExtractor
that will extract the subsection of the JSON payload found beneath the givenpath
. - BOOLEAN - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
A boolean value.
C
- camelCaseToKebabCase(String) - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
Converts the given
string
from camelCase to kebab-case. - camelCaseToSnakeCase(String) - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
Converts the given
string
from camelCase to snake_case. - CliDocumentation - Class in org.springframework.restdocs.cli
-
Static factory methods for documenting a RESTful API as if it were being driven using a command-line utility such as curl or HTTPie.
- CommandFormatter - Interface in org.springframework.restdocs.cli
-
Formatter for CLI commands such as those included in
CurlRequestSnippet
andHttpieRequestSnippet
. - compileTemplate(String) - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
- compileTemplate(String) - Method in interface org.springframework.restdocs.templates.TemplateEngine
-
Compiles the template at the given
path
. - Constraint - Class in org.springframework.restdocs.constraints
-
A constraint.
- Constraint(String, Map<String, Object>) - Constructor for class org.springframework.restdocs.constraints.Constraint
-
Creates a new
Constraint
with the givenname
andconfiguration
. - ConstraintDescriptionResolver - Interface in org.springframework.restdocs.constraints
-
Resolves a description for a
Constraint
. - ConstraintDescriptions - Class in org.springframework.restdocs.constraints
-
Provides access to descriptions of a class's constraints.
- ConstraintDescriptions(Class<?>) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptions
for the givenclazz
. - ConstraintDescriptions(Class<?>, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptions
for the givenclazz
. - ConstraintDescriptions(Class<?>, ConstraintResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptions
for the givenclazz
. - ConstraintDescriptions(Class<?>, ConstraintResolver, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptions
for the givenclazz
. - ConstraintResolver - Interface in org.springframework.restdocs.constraints
-
An abstraction for resolving a class's constraints.
- ContentModifier - Interface in org.springframework.restdocs.operation.preprocess
-
A
ContentModifier
modifies the content of anOperationRequest
orOperationResponse
during the preprocessing that is performed prior to documentation generation. - ContentModifyingOperationPreprocessor - Class in org.springframework.restdocs.operation.preprocess
-
An
OperationPreprocessor
that applies aContentModifier
to the content of the request or response. - ContentModifyingOperationPreprocessor(ContentModifier) - Constructor for class org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor
-
Create a new
ContentModifyingOperationPreprocessor
that will apply the givencontentModifier
to the operation's request or response. - ConversionException - Exception in org.springframework.restdocs.operation
-
An exception that can be thrown by
RequestConverter
andResponseConverter
implementations to indicate that a failure has occurred during conversion. - ConversionException(String, Throwable) - Constructor for exception org.springframework.restdocs.operation.ConversionException
-
Creates a new
ConversionException
with the givenmessage
andcause
. - ConversionException(Throwable) - Constructor for exception org.springframework.restdocs.operation.ConversionException
-
Creates a new
ConversionException
with the givencause
. - convert(R) - Method in interface org.springframework.restdocs.operation.RequestConverter
-
Converts the given
request
into anOperationRequest
. - convert(R) - Method in interface org.springframework.restdocs.operation.ResponseConverter
-
Converts the given
response
into anOperationResponse
. - CookieDescriptor - Class in org.springframework.restdocs.cookies
-
A description of a cookie found in a request or response.
- CookieDescriptor(String) - Constructor for class org.springframework.restdocs.cookies.CookieDescriptor
-
Creates a new
CookieDescriptor
describing the cookie with the givenname
. - CookieDocumentation - Class in org.springframework.restdocs.cookies
-
Static factory methods for documenting a RESTful API's request and response cookies.
- cookieWithName(String) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Creates a
CookieDescriptor
that describes a cookie with the givenname
. - create(String, String, byte[], HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationRequestPartFactory
-
Creates a new
OperationRequestPart
. - create(URI, HttpMethod, byte[], HttpHeaders, Collection<OperationRequestPart>) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequest
. - create(URI, HttpMethod, byte[], HttpHeaders, Collection<OperationRequestPart>, Collection<RequestCookie>) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequest
. - create(HttpStatusCode, HttpHeaders, byte[]) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponse
without cookies. - create(HttpStatusCode, HttpHeaders, byte[], Collection<ResponseCookie>) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponse
. - create(RestDocumentationContext) - Method in interface org.springframework.restdocs.snippet.PlaceholderResolverFactory
-
Creates a new
PropertyPlaceholderHelper.PlaceholderResolver
using the givencontext
. - create(RestDocumentationContext) - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolverFactory
- createFrom(OperationRequest, byte[]) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequest
based on the givenoriginal
but with the givennewContent
. - createFrom(OperationRequest, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequest
based on the givenoriginal
but with the givennewHeaders
. - createFrom(OperationResponse, byte[]) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponse
based on the givenoriginal
but with the givennewContent
. - createFrom(OperationResponse, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponse
based on the givenoriginal
but with the givennewHeaders
. - createModel(Operation) - Method in class org.springframework.restdocs.cli.CurlRequestSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.cli.HttpieRequestSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.headers.AbstractHeadersSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.http.HttpRequestSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.http.HttpResponseSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.payload.AbstractBodySnippet
- createModel(Operation) - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.request.PathParametersSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.request.RequestPartsSnippet
- createModel(Operation) - Method in class org.springframework.restdocs.snippet.TemplatedSnippet
-
Create the model that should be used during template rendering to document the given
operation
. - createModelForDescriptor(CookieDescriptor) - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Returns a model for the given
descriptor
. - createModelForDescriptor(HeaderDescriptor) - Method in class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Returns a model for the given
descriptor
. - createModelForDescriptor(LinkDescriptor) - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
-
Returns a model for the given
descriptor
. - createModelForDescriptor(FieldDescriptor) - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns a model for the given
descriptor
. - createModelForDescriptor(ParameterDescriptor) - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Returns a model for the given
descriptor
. - curlRequest() - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the curl request for the API operation. - curlRequest(Map<String, Object>) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the curl request for the API operation. - curlRequest(Map<String, Object>, CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the curl request for the API operation. - curlRequest(CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the curl request for the API operation. - CurlRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippet
that documents the curl command for a request. - CurlRequestSnippet(Map<String, Object>, CommandFormatter) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new
CurlRequestSnippet
with the given additionalattributes
that will be included in the model during template rendering. - CurlRequestSnippet(CommandFormatter) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new
CurlRequestSnippet
that will use the givencommandFormatter
to format the curl command.
D
- DEFAULT_SNIPPET_ENCODING - Static variable in class org.springframework.restdocs.config.SnippetConfigurer
-
The default encoding for documentation snippets.
- DEFAULT_TEMPLATE_FORMAT - Static variable in class org.springframework.restdocs.config.SnippetConfigurer
-
The default format for documentation snippets.
- description(Object) - Method in class org.springframework.restdocs.snippet.AbstractDescriptor
-
Specifies the description.
- descriptionsForProperty(String) - Method in class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Returns a list of the descriptions for the constraints on the given property.
- document(Operation) - Method in interface org.springframework.restdocs.snippet.Snippet
-
Documents the call to the RESTful API described by the given
operation
. - document(Operation) - Method in class org.springframework.restdocs.snippet.TemplatedSnippet
E
- equals(Object) - Method in class org.springframework.restdocs.hypermedia.Link
- execute(Template.Fragment, Writer) - Method in class org.springframework.restdocs.templates.mustache.AsciidoctorTableCellContentLambda
- extractActualCookies(Operation) - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Extracts the names of the cookies from the request or response of the given
operation
. - extractActualCookies(Operation) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
- extractActualCookies(Operation) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
- extractActualHeaders(Operation) - Method in class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Extracts the names of the headers from the request or response of the given
operation
. - extractActualHeaders(Operation) - Method in class org.springframework.restdocs.headers.RequestHeadersSnippet
- extractActualHeaders(Operation) - Method in class org.springframework.restdocs.headers.ResponseHeadersSnippet
- extractActualParameters(Operation) - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Extracts the names of the parameters that were present in the given
operation
. - extractActualParameters(Operation) - Method in class org.springframework.restdocs.request.FormParametersSnippet
- extractActualParameters(Operation) - Method in class org.springframework.restdocs.request.PathParametersSnippet
- extractActualParameters(Operation) - Method in class org.springframework.restdocs.request.QueryParametersSnippet
- extractLinks(OperationResponse) - Method in interface org.springframework.restdocs.hypermedia.LinkExtractor
-
Extract the links from the given
response
, returning aMap
of links where the keys are the link rels. - extractSubsection(byte[], MediaType) - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
- extractSubsection(byte[], MediaType) - Method in interface org.springframework.restdocs.payload.PayloadSubsectionExtractor
-
Extracts a subsection of the given
payload
that has the givencontentType
. - extractSubsection(byte[], MediaType, List<FieldDescriptor>) - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
- extractSubsection(byte[], MediaType, List<FieldDescriptor>) - Method in interface org.springframework.restdocs.payload.PayloadSubsectionExtractor
-
Extracts a subsection of the given
payload
that has the givencontentType
and that is described by the givendescriptors
.
F
- FieldDescriptor - Class in org.springframework.restdocs.payload
-
A description of a field found in a request or response payload.
- FieldDescriptor(String) - Constructor for class org.springframework.restdocs.payload.FieldDescriptor
-
Creates a new
FieldDescriptor
describing the field with the givenpath
. - FieldDoesNotExistException - Exception in org.springframework.restdocs.payload
-
A
FieldDoesNotExistException
is thrown when a requested field does not exist in a payload. - FieldDoesNotExistException(String) - Constructor for exception org.springframework.restdocs.payload.FieldDoesNotExistException
-
Creates a new
FieldDoesNotExistException
that indicates that the field with the givenfieldPath
does not exist. - FieldPathPayloadSubsectionExtractor - Class in org.springframework.restdocs.payload
-
A
PayloadSubsectionExtractor
that extracts the subsection of the JSON payload identified by a field path. - FieldPathPayloadSubsectionExtractor(String) - Constructor for class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
-
Creates a new
FieldPathPayloadSubsectionExtractor
that will extract the subsection of the JSON payload beneath the givenfieldPath
. - FieldPathPayloadSubsectionExtractor(String, String) - Constructor for class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
-
Creates a new
FieldPathPayloadSubsectionExtractor
that will extract the subsection of the JSON payload beneath the givenfieldPath
and that will use the givensubsectionId
to identify the subsection. - FieldTypeRequiredException - Exception in org.springframework.restdocs.payload
-
A
FieldTypeRequiredException
is thrown when a field's type cannot be determined automatically and, therefore, must be explicitly provided. - FieldTypeRequiredException(String) - Constructor for exception org.springframework.restdocs.payload.FieldTypeRequiredException
-
Creates a new
FieldTypeRequiredException
indicating that a type is required for the reason described in the givenmessage
. - FieldTypeResolver - Interface in org.springframework.restdocs.payload
-
Resolves the type of a field in a request or response payload.
- fieldWithPath(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a
FieldDescriptor
that describes a field with the givenpath
. - findMissingHeaders(Operation) - Method in class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Finds the headers that are missing from the operation.
- forContentWithDescriptors(byte[], MediaType, List<FieldDescriptor>) - Static method in interface org.springframework.restdocs.payload.FieldTypeResolver
-
Create a
FieldTypeResolver
for the givencontent
andcontentType
, described by the givendescriptors
. - format(List<String>) - Method in interface org.springframework.restdocs.cli.CommandFormatter
-
Formats a list of
elements
into a singleString
. - formParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - formParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - formParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - formParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - FormParameters - Class in org.springframework.restdocs.operation
-
A request's form parameters, derived from its form URL encoded body content.
- FormParametersSnippet - Class in org.springframework.restdocs.request
-
A
Snippet
that documents the form parameters supported by a RESTful resource. - FormParametersSnippet(List<ParameterDescriptor>) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippet
that will document the request's form parameters using the givendescriptors
. - FormParametersSnippet(List<ParameterDescriptor>, boolean) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippet
that will document the request's form parameters using the givendescriptors
. - FormParametersSnippet(List<ParameterDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippet
that will document the request's form parameters using the givendescriptors
. - FormParametersSnippet(List<ParameterDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippet
that will document the request's form parameters using the givendescriptors
. - from(OperationRequest) - Static method in class org.springframework.restdocs.operation.FormParameters
-
Extracts the form parameters from the body of the given
request
. - from(OperationRequest) - Static method in class org.springframework.restdocs.operation.QueryParameters
-
Extracts the query parameters from the query string of the given
request
.
G
- getAttributes() - Method in interface org.springframework.restdocs.operation.Operation
-
Returns a
Map
of attributes associated with the operation. - getAttributes() - Method in class org.springframework.restdocs.operation.StandardOperation
- getAttributes() - Method in class org.springframework.restdocs.snippet.AbstractDescriptor
-
Returns the descriptor's attributes.
- getAttributes() - Method in class org.springframework.restdocs.snippet.TemplatedSnippet
-
Returns the additional attributes that will be included in the model during template rendering.
- getCompiler() - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Returns the
Mustache.Compiler
used to compile Mustache templates. - getConfiguration() - Method in class org.springframework.restdocs.constraints.Constraint
-
Returns the configuration of the constraint.
- getContent() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the content of the request.
- getContent() - Method in interface org.springframework.restdocs.operation.OperationRequestPart
-
Returns the contents of the part.
- getContent() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the content of the response.
- getContent(Operation) - Method in class org.springframework.restdocs.payload.AbstractBodySnippet
-
Returns the content of the request or response extracted from the given
operation
. - getContent(Operation) - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns the content of the request or response extracted form the given
operation
. - getContent(Operation) - Method in class org.springframework.restdocs.payload.RequestBodySnippet
- getContent(Operation) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
- getContent(Operation) - Method in class org.springframework.restdocs.payload.RequestPartBodySnippet
- getContent(Operation) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
- getContent(Operation) - Method in class org.springframework.restdocs.payload.ResponseBodySnippet
- getContent(Operation) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
- getContentAsString() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the content of the request as a
String
. - getContentAsString() - Method in interface org.springframework.restdocs.operation.OperationRequestPart
-
Returns the content of the part as a
String
. - getContentAsString() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the content of the response as a
String
. - getContentType(Operation) - Method in class org.springframework.restdocs.payload.AbstractBodySnippet
-
Returns the content type of the request or response extracted from the given
operation
. - getContentType(Operation) - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns the content type of the request or response extracted from the given
operation
. - getContentType(Operation) - Method in class org.springframework.restdocs.payload.RequestBodySnippet
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.RequestPartBodySnippet
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.ResponseBodySnippet
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
- getContext() - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
Returns the
RestDocumentationContext
that should be used during placeholder resolution. - getCookieDescriptors() - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Returns the list of
CookieDescriptors
that will be used to generate the documentation. - getCookies() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the
cookies
sent with the request. - getCookies() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the
cookies
returned with the response. - getDescription() - Method in class org.springframework.restdocs.snippet.AbstractDescriptor
-
Returns the description.
- getDescriptorsByRel() - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
- getFieldDescriptors() - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns the list of
FieldDescriptors
that will be used to generate the documentation. - getFieldPath() - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
-
Returns the path of the field that will be extracted.
- getFileExtension() - Method in interface org.springframework.restdocs.templates.TemplateFormat
-
Returns the file extension to use for files generated from templates in this format.
- getHeaderDescriptors() - Method in class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Returns the list of
HeaderDescriptors
that will be used to generate the documentation. - getHeaders() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the headers that were included in the request.
- getHeaders() - Method in interface org.springframework.restdocs.operation.OperationRequestPart
-
Returns the part's headers.
- getHeaders() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the headers in the response.
- getHref() - Method in class org.springframework.restdocs.hypermedia.Link
-
Returns the link's
href
. - getId() - Method in interface org.springframework.restdocs.templates.TemplateFormat
-
Returns the id of this template format.
- getKey() - Method in class org.springframework.restdocs.snippet.Attributes.Attribute
-
Returns the attribute's key.
- getMethod() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the HTTP method of the request.
- getName() - Method in class org.springframework.restdocs.constraints.Constraint
-
Returns the name of the constraint.
- getName() - Method in class org.springframework.restdocs.cookies.CookieDescriptor
-
Returns the name for the cookie.
- getName() - Method in class org.springframework.restdocs.headers.HeaderDescriptor
-
Returns the name for the header.
- getName() - Method in interface org.springframework.restdocs.operation.Operation
-
Returns the name of the operation.
- getName() - Method in interface org.springframework.restdocs.operation.OperationRequestPart
-
Returns the name of the part.
- getName() - Method in class org.springframework.restdocs.operation.RequestCookie
-
Returns the name of the cookie.
- getName() - Method in class org.springframework.restdocs.operation.ResponseCookie
-
Returns the name of the cookie.
- getName() - Method in class org.springframework.restdocs.operation.StandardOperation
- getName() - Method in class org.springframework.restdocs.request.ParameterDescriptor
-
Returns the name of the parameter being described by this descriptor.
- getName() - Method in class org.springframework.restdocs.request.RequestPartDescriptor
-
Returns the name of the request part being described by this descriptor.
- getOutputDirectory() - Method in interface org.springframework.restdocs.RestDocumentationContext
-
Returns the output directory to which generated snippets should be written.
- getParameterDescriptors() - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Returns a
Map
ofParameterDescriptors
that will be used to generate the documentation key by theirParameterDescriptor.getName()
. - getParts() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the request's parts, provided that it is a multipart request.
- getPath() - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Returns the path of the field described by this descriptor.
- getRel() - Method in class org.springframework.restdocs.hypermedia.Link
-
Returns the link's
rel
. - getRel() - Method in class org.springframework.restdocs.hypermedia.LinkDescriptor
-
Returns the rel of the link described by this descriptor.
- getRequest() - Method in interface org.springframework.restdocs.operation.Operation
-
Returns the request that was sent.
- getRequest() - Method in class org.springframework.restdocs.operation.StandardOperation
- getResponse() - Method in interface org.springframework.restdocs.operation.Operation
-
Returns the response that was received.
- getResponse() - Method in class org.springframework.restdocs.operation.StandardOperation
- getSnippetName() - Method in class org.springframework.restdocs.snippet.TemplatedSnippet
-
Returns the name of the snippet that will be created.
- getStatus() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the status of the response.
- getStepCount() - Method in interface org.springframework.restdocs.RestDocumentationContext
-
Returns the current step count.
- getSubmittedFileName() - Method in interface org.springframework.restdocs.operation.OperationRequestPart
-
Returns the name of the file that is being uploaded in this part.
- getSubsectionExtractor() - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns the
PayloadSubsectionExtractor
, if any, used by this snippet. - getSubsectionId() - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
- getSubsectionId() - Method in interface org.springframework.restdocs.payload.PayloadSubsectionExtractor
-
Returns an identifier for the subsection that this extractor will extract.
- getTemplateResourceResolver() - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Returns the
TemplateResourceResolver
used to resolve the template resources prior to compilation. - getTestClass() - Method in interface org.springframework.restdocs.RestDocumentationContext
-
Returns the class whose tests are currently executing.
- getTestMethodName() - Method in interface org.springframework.restdocs.RestDocumentationContext
-
Returns the name of the test method that is currently executing.
- getTitle() - Method in class org.springframework.restdocs.hypermedia.Link
-
Returns the link's
title
, ornull
if it does not have a title. - getType() - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Returns the type of the field described by this descriptor.
- getUri() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the request's URI.
- getValue() - Method in class org.springframework.restdocs.operation.RequestCookie
-
Returns the value of the cookie.
- getValue() - Method in class org.springframework.restdocs.operation.ResponseCookie
-
Returns the value of the cookie.
- getValue() - Method in class org.springframework.restdocs.snippet.Attributes.Attribute
-
Returns the attribute's value.
H
- halLinks() - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a
LinkExtractor
capable of extracting links in Hypermedia Application Language (HAL) format where the links are found in a map named_links
. - handle(REQ, RESP, Map<String, Object>) - Method in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Handles the given
request
andresponse
, producing documentation snippets for them using the givenconfiguration
. - hashCode() - Method in class org.springframework.restdocs.hypermedia.Link
- HeaderDescriptor - Class in org.springframework.restdocs.headers
-
A description of a header found in a request or response.
- HeaderDescriptor(String) - Constructor for class org.springframework.restdocs.headers.HeaderDescriptor
-
Creates a new
HeaderDescriptor
describing the header with the givenname
. - HeaderDocumentation - Class in org.springframework.restdocs.headers
-
Static factory methods for documenting a RESTful API's request and response headers.
- HeadersModifyingOperationPreprocessor - Class in org.springframework.restdocs.operation.preprocess
-
An
OperationPreprocessor
that modifies a request or response by adding, setting, or removing headers. - HeadersModifyingOperationPreprocessor() - Constructor for class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
- headerWithName(String) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Creates a
HeaderDescriptor
that describes a header with the givenname
. - host(String) - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
-
Modifies the URI to use the given
host
. - HttpDocumentation - Class in org.springframework.restdocs.http
-
Static factory methods for documenting a RESTful API's HTTP requests.
- httpieRequest() - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the HTTPie request for the API operation. - httpieRequest(Map<String, Object>) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the HTTPie request for the API operation. - httpieRequest(Map<String, Object>, CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the HTTPie request for the API operation. - httpieRequest(CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippet
that will document the HTTPie request for the API operation. - HttpieRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippet
that documents the HTTPie command for a request. - HttpieRequestSnippet(Map<String, Object>, CommandFormatter) - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new
HttpieRequestSnippet
with the given additionalattributes
that will be included in the model during template rendering. - HttpieRequestSnippet(CommandFormatter) - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new
HttpieRequestSnippet
that will use the givencommandFormatter
to format the HTTPie command. - httpRequest() - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a new
Snippet
that will document the HTTP request for the API operation. - httpRequest(Map<String, Object>) - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a new
Snippet
that will document the HTTP request for the API operation. - HttpRequestSnippet - Class in org.springframework.restdocs.http
-
A
Snippet
that documents an HTTP request. - HttpRequestSnippet() - Constructor for class org.springframework.restdocs.http.HttpRequestSnippet
-
Creates a new
HttpRequestSnippet
with no additional attributes. - HttpRequestSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.http.HttpRequestSnippet
-
Creates a new
HttpRequestSnippet
with the given additionalattributes
that will be included in the model during template rendering. - httpResponse() - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a
Snippet
that will document the HTTP response for the API operation. - httpResponse(Map<String, Object>) - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a
Snippet
that will document the HTTP response for the API operation. - HttpResponseSnippet - Class in org.springframework.restdocs.http
-
A
Snippet
that documents an HTTP response. - HttpResponseSnippet() - Constructor for class org.springframework.restdocs.http.HttpResponseSnippet
-
Creates a new
HttpResponseSnippet
with no additional attributes. - HttpResponseSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.http.HttpResponseSnippet
-
Creates a new
HttpResponseSnippet
with the given additionalattributes
that will be included in the model during template rendering. - HypermediaDocumentation - Class in org.springframework.restdocs.hypermedia
-
Static factory methods for documenting a RESTful API that utilizes Hypermedia.
I
- IgnorableDescriptor<T extends IgnorableDescriptor<T>> - Class in org.springframework.restdocs.snippet
-
Base class for descriptors for items that can be ignored.
- IgnorableDescriptor() - Constructor for class org.springframework.restdocs.snippet.IgnorableDescriptor
- ignored() - Method in class org.springframework.restdocs.snippet.IgnorableDescriptor
-
Marks the described item as being ignored.
- isIgnored() - Method in class org.springframework.restdocs.snippet.IgnorableDescriptor
-
Returns whether or not the item being described should be ignored and, therefore, should not be included in the documentation.
- isIgnoredUndocumentedFields() - Method in class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Returns whether or not this snippet ignores undocumented fields.
- isIgnoreUndocumentedCookies() - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Returns whether or not this snippet ignores undocumented cookies.
- isIgnoreUndocumentedParameters() - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Returns whether to ignore undocumented parameters.
- isOptional() - Method in class org.springframework.restdocs.cookies.CookieDescriptor
-
Returns
true
if the described cookie is optional, otherwisefalse
. - isOptional() - Method in class org.springframework.restdocs.headers.HeaderDescriptor
-
Returns
true
if the described header is optional, otherwisefalse
. - isOptional() - Method in class org.springframework.restdocs.hypermedia.LinkDescriptor
-
Returns
true
if the described link is optional, otherwisefalse
. - isOptional() - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Returns
true
if the described field is optional, otherwisefalse
. - isOptional() - Method in class org.springframework.restdocs.request.ParameterDescriptor
-
Returns
true
if the described parameter is optional, otherwisefalse
. - isOptional() - Method in class org.springframework.restdocs.request.RequestPartDescriptor
-
Returns
true
if the described request part is optional, otherwisefalse
.
J
- JsonFieldType - Enum Class in org.springframework.restdocs.payload
-
An enumeration of the possible types for a field in a JSON request or response payload.
- JUnitRestDocumentation - Class in org.springframework.restdocs
-
A JUnit
TestRule
used to automatically manage theRestDocumentationContext
. - JUnitRestDocumentation() - Constructor for class org.springframework.restdocs.JUnitRestDocumentation
-
Creates a new
JUnitRestDocumentation
instance that will generate snippets to <gradle/maven build path>/generated-snippet. - JUnitRestDocumentation(String) - Constructor for class org.springframework.restdocs.JUnitRestDocumentation
-
Creates a new
JUnitRestDocumentation
instance that will generate snippets to the givenoutputDirectory
.
K
- key(String) - Static method in class org.springframework.restdocs.snippet.Attributes
-
Creates an attribute with the given
key
.
L
- Link - Class in org.springframework.restdocs.hypermedia
-
Representation of a link used in a Hypermedia-based API.
- Link(String, String) - Constructor for class org.springframework.restdocs.hypermedia.Link
-
Creates a new
Link
with the givenrel
andhref
. - Link(String, String, String) - Constructor for class org.springframework.restdocs.hypermedia.Link
-
Creates a new
Link
with the givenrel
,href
, andtitle
. - LinkDescriptor - Class in org.springframework.restdocs.hypermedia
-
A description of a link found in a hypermedia API.
- LinkDescriptor(String) - Constructor for class org.springframework.restdocs.hypermedia.LinkDescriptor
-
Creates a new
LinkDescriptor
describing a link with the givenrel
. - LinkExtractor - Interface in org.springframework.restdocs.hypermedia
-
A
LinkExtractor
is used to extractlinks
from a JSON response. - links(List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - links(Map<String, Object>, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API call's response. - links(Map<String, Object>, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API call's response. - links(LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - links(LinkExtractor, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - links(LinkExtractor, Map<String, Object>, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - links(LinkExtractor, Map<String, Object>, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - links(LinkExtractor, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - LinksSnippet - Class in org.springframework.restdocs.hypermedia
-
A
Snippet
that documents a RESTful resource's links. - LinksSnippet(LinkExtractor, List<LinkDescriptor>) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
. - LinksSnippet(LinkExtractor, List<LinkDescriptor>, boolean) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
. - LinksSnippet(LinkExtractor, List<LinkDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
. - LinksSnippet(LinkExtractor, List<LinkDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippet
that will extract links using the givenlinkExtractor
and document them using the givendescriptors
. - linkWithRel(String) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Creates a
LinkDescriptor
that describes a link with the givenrel
.
M
- ManualRestDocumentation - Class in org.springframework.restdocs
-
ManualRestDocumentation
is used to manually manage theRestDocumentationContext
. - ManualRestDocumentation() - Constructor for class org.springframework.restdocs.ManualRestDocumentation
-
Creates a new
ManualRestDocumentation
instance that will generate snippets to <gradle/maven build path>/generated-snippets. - ManualRestDocumentation(String) - Constructor for class org.springframework.restdocs.ManualRestDocumentation
-
Creates a new
ManualRestDocumentation
instance that will generate snippets to the givenoutputDirectory
. - markdown() - Static method in class org.springframework.restdocs.templates.TemplateFormats
-
Returns the Markdown template format with the ID
markdown
and the file extensionmd
. - maskLinks() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessor
that will mask the href of hypermedia links in the request or response. - maskLinks(String) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessor
that will mask the href of hypermedia links in the request or response. - ModelCreationException - Exception in org.springframework.restdocs.snippet
-
An exception that can be thrown by a
TemplatedSnippet
to indicate that a failure has occurred during model creation. - ModelCreationException(String, Throwable) - Constructor for exception org.springframework.restdocs.snippet.ModelCreationException
-
Creates a new
ModelCreationException
with the givenmessage
andcause
. - ModelCreationException(Throwable) - Constructor for exception org.springframework.restdocs.snippet.ModelCreationException
-
Creates a new
ModelCreationException
with the givencause
. - modifyContent(byte[], MediaType) - Method in interface org.springframework.restdocs.operation.preprocess.ContentModifier
-
Returns modified content based on the given
originalContent
. - modifyContent(byte[], MediaType) - Method in class org.springframework.restdocs.operation.preprocess.PrettyPrintingContentModifier
- modifyHeaders() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns a
HeadersModifyingOperationPreprocessor
that can then be configured to modify the headers of the request or response. - modifyUris() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns a
UriModifyingOperationPreprocessor
that will modify URIs in the request or response by changing one or more of their host, scheme, and port. - multiLineFormat() - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Creates a new
CommandFormatter
that produces multi-line output. - MustacheTemplate - Class in org.springframework.restdocs.templates.mustache
- MustacheTemplate(Template) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplate
-
Creates a new
MustacheTemplate
that adapts the givendelegate
. - MustacheTemplate(Template, Map<String, Object>) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplate
-
Creates a new
MustacheTemplate
that adapts the givendelegate
. - MustacheTemplateEngine - Class in org.springframework.restdocs.templates.mustache
- MustacheTemplateEngine(TemplateResourceResolver) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve template paths. - MustacheTemplateEngine(TemplateResourceResolver, Charset) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve template paths, reading them using the giventemplateEncoding
. - MustacheTemplateEngine(TemplateResourceResolver, Charset, Mustache.Compiler) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve templates and the givencompiler
to compile them. - MustacheTemplateEngine(TemplateResourceResolver, Charset, Mustache.Compiler, Map<String, Object>) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve templates. - MustacheTemplateEngine(TemplateResourceResolver, Mustache.Compiler) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve templates and the givencompiler
to compile them. - MustacheTemplateEngine(TemplateResourceResolver, Mustache.Compiler, Map<String, Object>) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEngine
that will use the giventemplateResourceResolver
to resolve templates.
N
- NULL - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
null
. - NUMBER - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
A number.
O
- OBJECT - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
An object (map).
- Operation - Interface in org.springframework.restdocs.operation
-
Describes an operation performed on a RESTful service.
- OperationPreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
An
OperationPreprocessor
processes theOperationRequest
andOperationResponse
of anOperation
prior to it being documented. - OperationPreprocessorAdapter - Class in org.springframework.restdocs.operation.preprocess
-
An implementation of
OperationPreprocessor
that returns the request and response as-is. - OperationPreprocessorAdapter() - Constructor for class org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
- operationPreprocessors() - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Returns an
OperationPreprocessorsConfigurer
that can be used to configure the operation request and response preprocessors that will be used. - OperationPreprocessorsConfigurer<PARENT,
TYPE> - Class in org.springframework.restdocs.config -
A configurer that can be used to configure the default operation preprocessors.
- OperationPreprocessorsConfigurer(PARENT) - Constructor for class org.springframework.restdocs.config.OperationPreprocessorsConfigurer
-
Creates a new
OperationPreprocessorConfigurer
with the givenparent
. - OperationRequest - Interface in org.springframework.restdocs.operation
-
The request that was sent as part of performing an operation on a RESTful service.
- OperationRequestFactory - Class in org.springframework.restdocs.operation
-
A factory for creating
OperationRequests
. - OperationRequestFactory() - Constructor for class org.springframework.restdocs.operation.OperationRequestFactory
- OperationRequestPart - Interface in org.springframework.restdocs.operation
-
A part of a multipart request.
- OperationRequestPartFactory - Class in org.springframework.restdocs.operation
-
A factory for creating
OperationRequestParts
. - OperationRequestPartFactory() - Constructor for class org.springframework.restdocs.operation.OperationRequestPartFactory
- OperationRequestPreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
An
OperationRequestPreprocessor
is used to modify anOperationRequest
prior to it being documented. - OperationResponse - Interface in org.springframework.restdocs.operation
-
The response that was received as part of performing an operation on a RESTful service.
- OperationResponseFactory - Class in org.springframework.restdocs.operation
-
A factory for creating
OperationResponses
. - OperationResponseFactory() - Constructor for class org.springframework.restdocs.operation.OperationResponseFactory
- OperationResponsePreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
An
OperationResponsePreprocessor
is used to modify anOperationResponse
prior to it being documented. - optional() - Method in class org.springframework.restdocs.cookies.CookieDescriptor
-
Marks the cookie as optional.
- optional() - Method in class org.springframework.restdocs.headers.HeaderDescriptor
-
Marks the header as optional.
- optional() - Method in class org.springframework.restdocs.hypermedia.LinkDescriptor
-
Marks the link as optional.
- optional() - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Marks the field as optional.
- optional() - Method in class org.springframework.restdocs.request.ParameterDescriptor
-
Marks the parameter as optional.
- optional() - Method in class org.springframework.restdocs.request.RequestPartDescriptor
-
Marks the request part as optional.
- org.springframework.restdocs - package org.springframework.restdocs
-
Core Spring REST Docs classes.
- org.springframework.restdocs.cli - package org.springframework.restdocs.cli
-
Documenting CLI commands required to make a request to a RESTful API.
- org.springframework.restdocs.config - package org.springframework.restdocs.config
-
Classes for configuring Spring REST Docs.
- org.springframework.restdocs.constraints - package org.springframework.restdocs.constraints
-
Documenting a RESTful API's constraints.
- org.springframework.restdocs.cookies - package org.springframework.restdocs.cookies
-
Documenting the cookies of a RESTful API's requests and responses.
- org.springframework.restdocs.generate - package org.springframework.restdocs.generate
-
Classes that drive the generation of the documentation snippets.
- org.springframework.restdocs.headers - package org.springframework.restdocs.headers
-
Documenting the headers of a RESTful API's requests and responses.
- org.springframework.restdocs.http - package org.springframework.restdocs.http
-
Documenting the HTTP request sent to a RESTful API and the HTTP response that is returned.
- org.springframework.restdocs.hypermedia - package org.springframework.restdocs.hypermedia
-
Documenting a RESTful API that uses hypermedia.
- org.springframework.restdocs.operation - package org.springframework.restdocs.operation
-
Operation API that describes a request that was sent and the response that was received when calling a RESTful API.
- org.springframework.restdocs.operation.preprocess - package org.springframework.restdocs.operation.preprocess
-
Support for preprocessing an operation prior to it being documented.
- org.springframework.restdocs.payload - package org.springframework.restdocs.payload
-
Documenting the payload of a RESTful API's requests and responses.
- org.springframework.restdocs.request - package org.springframework.restdocs.request
-
Documenting query and path parameters of requests sent to a RESTful API.
- org.springframework.restdocs.snippet - package org.springframework.restdocs.snippet
-
Snippet generation.
- org.springframework.restdocs.templates - package org.springframework.restdocs.templates
-
Template API used to render documentation snippets.
- org.springframework.restdocs.templates.mustache - package org.springframework.restdocs.templates.mustache
-
JMustache-based implementation of the template API.
P
- ParameterDescriptor - Class in org.springframework.restdocs.request
-
A descriptor of a request or path parameter.
- ParameterDescriptor(String) - Constructor for class org.springframework.restdocs.request.ParameterDescriptor
-
Creates a new
ParameterDescriptor
describing the parameter with the givenname
. - parameterWithName(String) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Creates a
ParameterDescriptor
that describes a request or path parameter with the givenname
. - partWithName(String) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Creates a
RequestPartDescriptor
that describes a request part with the givenname
. - pathParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - pathParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - pathParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - pathParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - PathParametersSnippet - Class in org.springframework.restdocs.request
-
A
Snippet
that documents the path parameters supported by a RESTful resource. - PathParametersSnippet(List<ParameterDescriptor>) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippet
that will document the request's path parameters using the givendescriptors
. - PathParametersSnippet(List<ParameterDescriptor>, boolean) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippet
that will document the request's path parameters using the givendescriptors
. - PathParametersSnippet(List<ParameterDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippet
that will document the request's path parameters using the givendescriptors
. - PathParametersSnippet(List<ParameterDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippet
that will document the request's path parameters using the givendescriptors
. - PayloadDocumentation - Class in org.springframework.restdocs.payload
-
Static factory methods for documenting a RESTful API's request and response payloads.
- PayloadSubsectionExtractor<T extends PayloadSubsectionExtractor<T>> - Interface in org.springframework.restdocs.payload
-
Strategy interface for extracting a subsection of a payload.
- PlaceholderResolverFactory - Interface in org.springframework.restdocs.snippet
-
A factory for creating
PropertyPlaceholderHelper.PlaceholderResolver
instances. - port(int) - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
-
Modifies the URI to use the given
port
. - preprocess(OperationRequest) - Method in class org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor
- preprocess(OperationRequest) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
- preprocess(OperationRequest) - Method in interface org.springframework.restdocs.operation.preprocess.OperationPreprocessor
-
Processes the given
request
. - preprocess(OperationRequest) - Method in class org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
-
Returns the given
request
as-is. - preprocess(OperationRequest) - Method in interface org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor
-
Processes and potentially modifies the given
request
before it is documented. - preprocess(OperationRequest) - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
- preprocess(OperationResponse) - Method in class org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor
- preprocess(OperationResponse) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
- preprocess(OperationResponse) - Method in interface org.springframework.restdocs.operation.preprocess.OperationPreprocessor
-
Processes the given
response
. - preprocess(OperationResponse) - Method in class org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
-
Returns the given
response
as-is. - preprocess(OperationResponse) - Method in interface org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor
-
Processes and potentially modifies the given
response
before it is documented. - preprocess(OperationResponse) - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
- Preprocessors - Class in org.springframework.restdocs.operation.preprocess
-
Static factory methods for creating
OperationPreprocessors
that can be applied to anOperation's
request
orresponse
before it is documented. - preprocessRequest(OperationPreprocessor...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationRequestPreprocessor
that will preprocess the request by applying the givenpreprocessors
to it. - preprocessResponse(OperationPreprocessor...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationResponsePreprocessor
that will preprocess the response by applying the givenpreprocessors
to it. - prettyPrint() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessor
that will pretty print the content of the request or response. - PrettyPrintingContentModifier - Class in org.springframework.restdocs.operation.preprocess
-
A
ContentModifier
that modifies the content by pretty printing it. - PrettyPrintingContentModifier() - Constructor for class org.springframework.restdocs.operation.preprocess.PrettyPrintingContentModifier
Q
- queryParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - queryParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - queryParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - queryParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - QueryParameters - Class in org.springframework.restdocs.operation
-
A request's query parameters, derived from its URI's query string.
- QueryParametersSnippet - Class in org.springframework.restdocs.request
-
A
Snippet
that documents the query parameters supported by a RESTful resource. - QueryParametersSnippet(List<ParameterDescriptor>) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippet
that will document the request's query parameters using the givendescriptors
. - QueryParametersSnippet(List<ParameterDescriptor>, boolean) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippet
that will document the request's query parameters using the givendescriptors
. - QueryParametersSnippet(List<ParameterDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippet
that will document the request's query parameters using the givendescriptors
. - QueryParametersSnippet(List<ParameterDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippet
that will document the request's query parameters using the givendescriptors
.
R
- relaxedFormParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - relaxedFormParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - relaxedFormParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - relaxedFormParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the form parameters from the API operation's request. - relaxedLinks(List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedLinks(Map<String, Object>, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API call's response. - relaxedLinks(Map<String, Object>, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API call's response. - relaxedLinks(LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedLinks(LinkExtractor, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedLinks(LinkExtractor, Map<String, Object>, List<LinkDescriptor>) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedLinks(LinkExtractor, Map<String, Object>, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedLinks(LinkExtractor, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippet
that will document the links in the API operation's response. - relaxedPathParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - relaxedPathParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - relaxedPathParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - relaxedPathParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the path parameters from the API operation's request. - relaxedQueryParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - relaxedQueryParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - relaxedQueryParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - relaxedQueryParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the query parameters from the API operation's request. - relaxedRequestCookies(List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's request. - relaxedRequestCookies(Map<String, Object>, List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's request. - relaxedRequestCookies(Map<String, Object>, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's request. - relaxedRequestCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's request. - relaxedRequestFields(List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operations's request payload. - relaxedRequestFields(Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's request payload. - relaxedRequestFields(Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's request payload. - relaxedRequestFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operations's request payload. - relaxedRequestFields(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor
. - relaxedRequestFields(PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
. - relaxedRequestFields(PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
. - relaxedRequestFields(PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor
. - relaxedRequestPartFields(String, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - relaxedRequestParts(List<RequestPartDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - relaxedRequestParts(Map<String, Object>, List<RequestPartDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - relaxedRequestParts(Map<String, Object>, RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - relaxedRequestParts(RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - relaxedResponseCookies(List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's response. - relaxedResponseCookies(Map<String, Object>, List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's response. - relaxedResponseCookies(Map<String, Object>, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's response. - relaxedResponseCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's response. - relaxedResponseFields(List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - relaxedResponseFields(Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - relaxedResponseFields(Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - relaxedResponseFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - remove(String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Removes the header with the given
name
. - remove(String, String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Removes the given
value
from the header with the givenname
. - removeHeaders(String...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Deprecated.
- removeMatching(String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Remove headers that match the given
namePattern
regular expression. - removeMatchingHeaders(String...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Deprecated.since 3.0.0 in favor of
Preprocessors.modifyHeaders()
andHeadersModifyingOperationPreprocessor.removeMatching(String)
- removePort() - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
-
Removes the port from the URI.
- render(Map<String, Object>) - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplate
- render(Map<String, Object>) - Method in interface org.springframework.restdocs.templates.Template
-
Renders the template to a
String
using the givencontext
for variable/property resolution. - replacePattern(Pattern, String) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessor
that will modify the content of the request or response by replacing occurrences of the givenpattern
with the givenreplacement
. - requestBody() - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of the API operation's request payload. - requestBody(Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of the API operation's request payload. - requestBody(PayloadSubsectionExtractor<?>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of the API operation's request payload. - requestBody(PayloadSubsectionExtractor<?>, Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of the API operation's request payload. - RequestBodySnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the body of a request. - RequestBodySnippet() - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippet
. - RequestBodySnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippet
with the given additionalattributes
that will be included in the model during template rendering. - RequestBodySnippet(PayloadSubsectionExtractor<?>) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippet
that will document the subsection of the request body extracted by the givensubsectionExtractor
. - RequestBodySnippet(PayloadSubsectionExtractor<?>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippet
that will document the subsection of the request body extracted by the givensubsectionExtractor
. - RequestConverter<R> - Interface in org.springframework.restdocs.operation
-
A
RequestConverter
is used to convert an implementation-specific request into anOperationRequest
. - RequestCookie - Class in org.springframework.restdocs.operation
-
A representation of a Cookie received in a request.
- RequestCookie(String, String) - Constructor for class org.springframework.restdocs.operation.RequestCookie
-
Creates a new
RequestCookie
with the givenname
andvalue
. - requestCookies(List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's request. - requestCookies(Map<String, Object>, List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's request. - requestCookies(Map<String, Object>, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's request. - requestCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's request. - RequestCookiesSnippet - Class in org.springframework.restdocs.cookies
-
A
Snippet
that documents the cookies in a request. - RequestCookiesSnippet(List<CookieDescriptor>) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
. - RequestCookiesSnippet(List<CookieDescriptor>, boolean) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
. - RequestCookiesSnippet(List<CookieDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
. - RequestCookiesSnippet(List<CookieDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
. - RequestDocumentation - Class in org.springframework.restdocs.request
-
Static factory methods for documenting aspects of a request sent to a RESTful API.
- requestFields(List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operations's request payload. - requestFields(Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's request payload. - requestFields(Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's request payload. - requestFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operations's request payload. - requestFields(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields in the subsection of the API operations's request payload extracted by the givensubsectionExtractor
. - requestFields(PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
. - requestFields(PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
. - requestFields(PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the subsection of API operations's request payload extracted by the givensubsectionExtractor
. - RequestFieldsSnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the fields in a request. - RequestFieldsSnippet(List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestFieldsSnippet(List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestFieldsSnippet(List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestFieldsSnippet(List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
. - RequestFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
. - RequestFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
. - RequestFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
. - requestHeaders(List<HeaderDescriptor>) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operation's request. - requestHeaders(Map<String, Object>, List<HeaderDescriptor>) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operations's request. - requestHeaders(Map<String, Object>, HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operations's request. - requestHeaders(HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operation's request. - RequestHeadersSnippet - Class in org.springframework.restdocs.headers
-
A
Snippet
that documents the headers in a request. - RequestHeadersSnippet(List<HeaderDescriptor>) - Constructor for class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Creates a new
RequestHeadersSnippet
that will document the headers in the request using the givendescriptors
. - RequestHeadersSnippet(List<HeaderDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Creates a new
RequestHeadersSnippet
that will document the headers in the request using the givendescriptors
. - requestPartBody(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of specified part of the API operation's request payload. - requestPartBody(String, Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of specified part of the API operation's request payload. - requestPartBody(String, PayloadSubsectionExtractor<?>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of specified part of the API operation's request payload. - requestPartBody(String, PayloadSubsectionExtractor<?>, Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of specified part of the API operation's request payload. - RequestPartBodySnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the body of a request part. - RequestPartBodySnippet(String) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippet
that will document the body of the request part with the givenpartName
. - RequestPartBodySnippet(String, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippet
that will document the body of the request part with the givenpartName
. - RequestPartBodySnippet(String, PayloadSubsectionExtractor<?>) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippet
that will document the subsection of the body of the request part with the givenpartName
extracted by the givensubsectionExtractor
. - RequestPartBodySnippet(String, PayloadSubsectionExtractor<?>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippet
that will document the body of the request part with the givenpartName
. - RequestPartDescriptor - Class in org.springframework.restdocs.request
-
A descriptor of a request part.
- RequestPartDescriptor(String) - Constructor for class org.springframework.restdocs.request.RequestPartDescriptor
-
Creates a new
RequestPartDescriptor
describing the request part with the givenname
. - requestPartFields(String, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - requestPartFields(String, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - requestPartFields(String, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - requestPartFields(String, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the specifiedpart
of the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload. - RequestPartFieldsSnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the fields in a request part. - RequestPartFieldsSnippet(String, List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in the request part using the givendescriptors
. - RequestPartFieldsSnippet(String, List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in the request part using the givendescriptors
. - RequestPartFieldsSnippet(String, List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestPartFieldsSnippet(String, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestFieldsSnippet
that will document the fields in the request using the givendescriptors
. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in a subsection the request part using the givendescriptors
. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
. - requestParts(List<RequestPartDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - requestParts(Map<String, Object>, List<RequestPartDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - requestParts(Map<String, Object>, RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - requestParts(RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippet
that will document the parts from the API operation's request. - RequestPartsSnippet - Class in org.springframework.restdocs.request
-
A
Snippet
that documents the request parts supported by a RESTful resource. - RequestPartsSnippet(List<RequestPartDescriptor>) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippet
that will document the request's parts using the givendescriptors
. - RequestPartsSnippet(List<RequestPartDescriptor>, boolean) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippet
that will document the request's parts using the givendescriptors
. - RequestPartsSnippet(List<RequestPartDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippet
that will document the request's parts using the givendescriptors
. - RequestPartsSnippet(List<RequestPartDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippet
that will document the request's parts using the givendescriptors
. - resolve(String, String, RestDocumentationContext) - Method in class org.springframework.restdocs.snippet.StandardWriterResolver
- resolve(String, String, RestDocumentationContext) - Method in interface org.springframework.restdocs.snippet.WriterResolver
-
Returns a writer that can be used to write the snippet with the given name for the operation with the given name.
- resolveDescription(Constraint) - Method in interface org.springframework.restdocs.constraints.ConstraintDescriptionResolver
-
Resolves the description for the given
constraint
. - resolveDescription(Constraint) - Method in class org.springframework.restdocs.constraints.ResourceBundleConstraintDescriptionResolver
- resolveFieldType(FieldDescriptor) - Method in interface org.springframework.restdocs.payload.FieldTypeResolver
-
Resolves the type of the field that is described by the given
fieldDescriptor
based on the content of the payload. - resolveForProperty(String, Class<?>) - Method in interface org.springframework.restdocs.constraints.ConstraintResolver
-
Resolves and returns the constraints for the given
property
on the givenclazz
. - resolveForProperty(String, Class<?>) - Method in class org.springframework.restdocs.constraints.ValidatorConstraintResolver
- resolveParameter(ParameterContext, ExtensionContext) - Method in class org.springframework.restdocs.RestDocumentationExtension
- resolvePlaceholder(String) - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
- resolveTemplateResource(String) - Method in class org.springframework.restdocs.templates.StandardTemplateResourceResolver
- resolveTemplateResource(String) - Method in interface org.springframework.restdocs.templates.TemplateResourceResolver
-
Resolves a
Resource
for the template with the givenname
. - ResourceBundleConstraintDescriptionResolver - Class in org.springframework.restdocs.constraints
-
A
ConstraintDescriptionResolver
that resolves constraint descriptions from aResourceBundle
. - ResourceBundleConstraintDescriptionResolver() - Constructor for class org.springframework.restdocs.constraints.ResourceBundleConstraintDescriptionResolver
-
Creates a new
ResourceBundleConstraintDescriptionResolver
that will resolve descriptions by looking them up in a resource bundle with the base nameorg.springframework.restdocs.constraints.ConstraintDescriptions
in the default locale loaded using the thread context class loader. - ResourceBundleConstraintDescriptionResolver(ResourceBundle) - Constructor for class org.springframework.restdocs.constraints.ResourceBundleConstraintDescriptionResolver
-
Creates a new
ResourceBundleConstraintDescriptionResolver
that will resolve descriptions by looking them up in the givenresourceBundle
. - responseBody() - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of the API operation's response payload. - responseBody(Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the body of the API operation's response payload. - responseBody(PayloadSubsectionExtractor<?>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of the API operation's response payload. - responseBody(PayloadSubsectionExtractor<?>, Map<String, Object>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document a subsection of the body of the API operation's response payload. - ResponseBodySnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the body of a response. - ResponseBodySnippet() - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippet
. - ResponseBodySnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippet
with the given additionalattributes
that will be included in the model during template rendering. - ResponseBodySnippet(PayloadSubsectionExtractor<?>) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippet
that will document the subsection of the response body extracted by the givensubsectionExtractor
. - ResponseBodySnippet(PayloadSubsectionExtractor<?>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippet
that will document the subsection of the response body extracted by the givensubsectionExtractor
. - ResponseConverter<R> - Interface in org.springframework.restdocs.operation
-
A
ResponseConverter
is used to convert an implementation-specific response into anOperationResponse
. - ResponseCookie - Class in org.springframework.restdocs.operation
-
A representation of a Cookie returned in a response.
- ResponseCookie(String, String) - Constructor for class org.springframework.restdocs.operation.ResponseCookie
-
Creates a new
ResponseCookie
with the givenname
andvalue
. - responseCookies(List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's response. - responseCookies(Map<String, Object>, List<CookieDescriptor>) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's response. - responseCookies(Map<String, Object>, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operations's response. - responseCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippet
that will document the cookies of the API operation's response. - ResponseCookiesSnippet - Class in org.springframework.restdocs.cookies
-
A
Snippet
that documents the cookies in a response. - ResponseCookiesSnippet(List<CookieDescriptor>) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
. - ResponseCookiesSnippet(List<CookieDescriptor>, boolean) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
. - ResponseCookiesSnippet(List<CookieDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
. - ResponseCookiesSnippet(List<CookieDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
. - responseFields(List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - responseFields(Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - responseFields(Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - responseFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of the API operation's response payload. - responseFields(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - responseFields(PayloadSubsectionExtractor<?>, Map<String, Object>, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - responseFields(PayloadSubsectionExtractor<?>, Map<String, Object>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - responseFields(PayloadSubsectionExtractor<?>, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippet
that will document the fields of a subsection of the API operation's response payload. - ResponseFieldsSnippet - Class in org.springframework.restdocs.payload
-
A
Snippet
that documents the fields in a response. - ResponseFieldsSnippet(List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in the response using the givendescriptors
. - ResponseFieldsSnippet(List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in the response using the givendescriptors
. - ResponseFieldsSnippet(List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in the response using the givendescriptors
. - ResponseFieldsSnippet(List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in the response using the givendescriptors
. - ResponseFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
. - ResponseFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in the subsection of the response using the givendescriptors
. - ResponseFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
. - ResponseFieldsSnippet(PayloadSubsectionExtractor<?>, List<FieldDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
. - responseHeaders(List<HeaderDescriptor>) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operation's response. - responseHeaders(Map<String, Object>, List<HeaderDescriptor>) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operations's response. - responseHeaders(Map<String, Object>, HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operations's response. - responseHeaders(HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippet
that will document the headers of the API operation's response. - ResponseHeadersSnippet - Class in org.springframework.restdocs.headers
-
A
Snippet
that documents the headers in a response. - ResponseHeadersSnippet(List<HeaderDescriptor>) - Constructor for class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Creates a new
ResponseHeadersSnippet
that will document the headers in the response using the givendescriptors
. - ResponseHeadersSnippet(List<HeaderDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Creates a new
ResponseHeadersSnippet
that will document the headers in the response using the givendescriptors
. - RestDocumentationConfigurer<S extends AbstractConfigurer,
P extends AbstractConfigurer, T> - Class in org.springframework.restdocs.config -
Abstract base class for the configuration of Spring REST Docs.
- RestDocumentationConfigurer() - Constructor for class org.springframework.restdocs.config.RestDocumentationConfigurer
- RestDocumentationContext - Interface in org.springframework.restdocs
-
RestDocumentationContext
encapsulates the context in which the documentation of a RESTful API is being performed. - RestDocumentationContextPlaceholderResolver - Class in org.springframework.restdocs.snippet
-
A
PropertyPlaceholderHelper.PlaceholderResolver
that resolves placeholders using aRestDocumentationContext
. - RestDocumentationContextPlaceholderResolver(RestDocumentationContext) - Constructor for class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
Creates a new placeholder resolver that will resolve placeholders using the given
context
. - RestDocumentationContextPlaceholderResolverFactory - Class in org.springframework.restdocs.snippet
-
A
PlaceholderResolverFactory
that createsRestDocumentationContextPlaceholderResolver
instances. - RestDocumentationContextPlaceholderResolverFactory() - Constructor for class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolverFactory
- RestDocumentationContextProvider - Interface in org.springframework.restdocs
-
A
RestDocumentationContextProvider
is used to provide access to theRestDocumentationContext
. - RestDocumentationExtension - Class in org.springframework.restdocs
-
A JUnit Jupiter
Extension
used to automatically manage theRestDocumentationContext
. - RestDocumentationExtension() - Constructor for class org.springframework.restdocs.RestDocumentationExtension
-
Creates a new
RestDocumentationExtension
that will use the default output directory. - RestDocumentationExtension(String) - Constructor for class org.springframework.restdocs.RestDocumentationExtension
-
Creates a new
RestDocumentationExtension
that will use the givenoutputDirectory
. - RestDocumentationGenerationException - Exception in org.springframework.restdocs.generate
-
An exception that can be thrown when a failure occurs during REST documentation generation.
- RestDocumentationGenerationException(String, Throwable) - Constructor for exception org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new
RestDocumentationException
with the givenmessage
andcause
. - RestDocumentationGenerationException(Throwable) - Constructor for exception org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new
RestDocumentationException
with the givencause
. - RestDocumentationGenerator<REQ,
RESP> - Class in org.springframework.restdocs.generate -
A
RestDocumentationGenerator
is used to generate documentation snippets from the request and response of an operation performed on a service. - RestDocumentationGenerator(String, RequestConverter<REQ>, ResponseConverter<RESP>, OperationRequestPreprocessor, OperationResponsePreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGenerator
for the operation identified by the givenidentifier
. - RestDocumentationGenerator(String, RequestConverter<REQ>, ResponseConverter<RESP>, OperationRequestPreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGenerator
for the operation identified by the givenidentifier
. - RestDocumentationGenerator(String, RequestConverter<REQ>, ResponseConverter<RESP>, OperationResponsePreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGenerator
for the operation identified by the givenidentifier
. - RestDocumentationGenerator(String, RequestConverter<REQ>, ResponseConverter<RESP>, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGenerator
for the operation identified by the givenidentifier
.
S
- scheme(String) - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
-
Modifies the URI to use the given
scheme
. - set(String, String...) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Sets the header with the given
name
to have the givenvalues
. - singleLineFormat() - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Creates a new
CommandFormatter
that produces single-line output. - Snippet - Interface in org.springframework.restdocs.snippet
-
A
Snippet
is used to document aspects of a call to a RESTful API. - SnippetConfigurer<PARENT,
TYPE> - Class in org.springframework.restdocs.config -
A configurer that can be used to configure the generated documentation snippets.
- SnippetConfigurer(PARENT) - Constructor for class org.springframework.restdocs.config.SnippetConfigurer
-
Creates a new
SnippetConfigurer
with the givenparent
. - SnippetException - Exception in org.springframework.restdocs.snippet
-
A
RuntimeException
thrown to indicate a problem with the generation of a documentation snippet. - SnippetException(String) - Constructor for exception org.springframework.restdocs.snippet.SnippetException
-
Creates a new
SnippetException
described by the givenmessage
. - snippets() - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Returns a
SnippetConfigurer
that can be used to configure the snippets that will be generated. - StandardOperation - Class in org.springframework.restdocs.operation
-
Standard implementation of
Operation
. - StandardOperation(String, OperationRequest, OperationResponse, Map<String, Object>) - Constructor for class org.springframework.restdocs.operation.StandardOperation
-
Creates a new
StandardOperation
. - StandardTemplateResourceResolver - Class in org.springframework.restdocs.templates
-
Standard implementation of
TemplateResourceResolver
. - StandardTemplateResourceResolver(TemplateFormat) - Constructor for class org.springframework.restdocs.templates.StandardTemplateResourceResolver
-
Creates a new
StandardTemplateResourceResolver
that will produce default template resources formatted with the giventemplateFormat
. - StandardWriterResolver - Class in org.springframework.restdocs.snippet
-
Standard implementation of
WriterResolver
. - StandardWriterResolver(PlaceholderResolverFactory, String, TemplateFormat) - Constructor for class org.springframework.restdocs.snippet.StandardWriterResolver
-
Creates a new
StandardWriterResolver
that will use aPropertyPlaceholderHelper.PlaceholderResolver
created from the givenplaceholderResolverFactory
to resolve any placeholders in theoperationName
. - STRING - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
A string.
- SubsectionDescriptor - Class in org.springframework.restdocs.payload
-
A description of a subsection, i.e.
- SubsectionDescriptor(String) - Constructor for class org.springframework.restdocs.payload.SubsectionDescriptor
-
Creates a new
SubsectionDescriptor
describing the subsection with the givenpath
. - subsectionWithPath(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a
FieldDescriptor
that describes a subsection, i.e. - supportsParameter(ParameterContext, ExtensionContext) - Method in class org.springframework.restdocs.RestDocumentationExtension
T
- Template - Interface in org.springframework.restdocs.templates
-
A compiled
Template
that can be rendered to aString
. - TemplatedSnippet - Class in org.springframework.restdocs.snippet
- TemplatedSnippet(String, String, Map<String, Object>) - Constructor for class org.springframework.restdocs.snippet.TemplatedSnippet
-
Creates a new
TemplatedSnippet
that will produce a snippet with the givensnippetName
using a template with the giventemplateName
. - TemplatedSnippet(String, Map<String, Object>) - Constructor for class org.springframework.restdocs.snippet.TemplatedSnippet
-
Creates a new
TemplatedSnippet
that will produce a snippet with the givensnippetName
. - templateEngine(TemplateEngine) - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Configures the
TemplateEngine
that will be used for snippet rendering. - TemplateEngine - Interface in org.springframework.restdocs.templates
-
A
TemplateEngine
is used to render documentation snippets. - TemplateFormat - Interface in org.springframework.restdocs.templates
-
A
TemplateFormat
provides information about a particular template format, such as Asciidoctor or Markdown. - TemplateFormats - Class in org.springframework.restdocs.templates
-
An enumeration of the built-in formats for which templates are provided.
- TemplateResourceResolver - Interface in org.springframework.restdocs.templates
-
A
TemplateResourceResolver
is responsible for resolving a name for a template into aResource
from which the template can be read. - toString() - Method in class org.springframework.restdocs.hypermedia.Link
- toString() - Method in enum class org.springframework.restdocs.payload.JsonFieldType
- type(Object) - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Specifies the type of the field.
U
- UriModifyingOperationPreprocessor - Class in org.springframework.restdocs.operation.preprocess
-
An
OperationPreprocessor
that modifies URIs in the request and in the response by changing one or more of their host, scheme, and port. - UriModifyingOperationPreprocessor() - Constructor for class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
V
- ValidatorConstraintResolver - Class in org.springframework.restdocs.constraints
-
A
ConstraintResolver
that uses a Bean ValidationValidator
to resolve constraints. - ValidatorConstraintResolver() - Constructor for class org.springframework.restdocs.constraints.ValidatorConstraintResolver
-
Creates a new
ValidatorConstraintResolver
that will use aValidator
in its default configuration to resolve constraints. - ValidatorConstraintResolver(Validator) - Constructor for class org.springframework.restdocs.constraints.ValidatorConstraintResolver
-
Creates a new
ValidatorConstraintResolver
that will use the givenValidator
to resolve constraints. - value(Object) - Method in class org.springframework.restdocs.snippet.Attributes.AttributeBuilder
-
Configures the value of the attribute.
- valueOf(String) - Static method in enum class org.springframework.restdocs.payload.JsonFieldType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.restdocs.payload.JsonFieldType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARIES - Enum constant in enum class org.springframework.restdocs.payload.JsonFieldType
-
A variety of different types.
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Called when the documented cookies do not match the actual cookies.
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Called when the documented parameters do not match the actual parameters.
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.request.FormParametersSnippet
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.request.PathParametersSnippet
- verificationFailed(Set<String>, Set<String>) - Method in class org.springframework.restdocs.request.QueryParametersSnippet
W
- withAdditionalDefaults(Snippet...) - Method in class org.springframework.restdocs.config.SnippetConfigurer
-
Configures additional documentation snippets that will be produced by default.
- withDefaults(Snippet...) - Method in class org.springframework.restdocs.config.SnippetConfigurer
-
Configures the documentation snippets that will be produced by default.
- withEncoding(String) - Method in class org.springframework.restdocs.config.SnippetConfigurer
-
Configures any documentation snippets to be written using the given
encoding
. - withRequestDefaults(OperationPreprocessor...) - Method in class org.springframework.restdocs.config.OperationPreprocessorsConfigurer
-
Configures the default operation request preprocessors.
- withResponseDefaults(OperationPreprocessor...) - Method in class org.springframework.restdocs.config.OperationPreprocessorsConfigurer
-
Configures the default operation response preprocessors.
- withSnippets(Snippet...) - Method in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGenerator
with the same configuration as this one other than its snippets. - withSubsectionId(String) - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
- withSubsectionId(String) - Method in interface org.springframework.restdocs.payload.PayloadSubsectionExtractor
-
Returns an extractor with the given
subsectionId
. - withTemplateFormat(TemplateFormat) - Method in class org.springframework.restdocs.config.SnippetConfigurer
-
Configures the format of the documentation snippet templates.
- writerResolver(WriterResolver) - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Configures the
WriterResolver
that will be used to resolve a writer for a snippet. - WriterResolver - Interface in org.springframework.restdocs.snippet
-
A
WriterResolver
is used to access theWriter
that should be used to write a snippet for an operation that is being documented.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Preprocessors.modifyHeaders()
andHeadersModifyingOperationPreprocessor.remove(String)