- 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
-
- 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, List<FieldDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
- 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.
- 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 given parent.
- 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>) - Constructor for class org.springframework.restdocs.request.AbstractParametersSnippet
-
- 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 given snippetName that will document parameters using the given
descriptors.
- add(String, String) - Method in class org.springframework.restdocs.operation.preprocess.ParametersModifyingOperationPreprocessor
-
Adds a parameter with the given name and value.
- addSnippets(Snippet...) - Method in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
- afterTest() - Method in class org.springframework.restdocs.ManualRestDocumentation
-
Notification that a test has completed.
- and() - Method in class org.springframework.restdocs.config.AbstractNestedConfigurer
-
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- and(ParameterDescriptor...) - Method in class org.springframework.restdocs.request.RequestParametersSnippet
-
Returns a new RequestParametersSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors.
- and(List<ParameterDescriptor>) - Method in class org.springframework.restdocs.request.RequestParametersSnippet
-
Returns a new RequestParametersSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors.
- 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 given additionalDescriptors.
- 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 given additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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 given
additionalDescriptors.
- 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.RestDocumentationConfigurer
-
Applies this configurer to the given configuration within the given
context.
- apply(Map<String, Object>, RestDocumentationContext) - Method in class org.springframework.restdocs.config.SnippetConfigurer
-
- apply(Statement, Description) - Method in class org.springframework.restdocs.JUnitRestDocumentation
-
- apply(Statement, Description) - Method in class org.springframework.restdocs.RestDocumentation
-
Deprecated.
- applyPathPrefix(String, List<FieldDescriptor>) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a copy of the given descriptors with the given pathPrefix
applied to their paths.
- asciidoctor() - Static method in class org.springframework.restdocs.templates.TemplateFormats
-
Returns the Asciidoctor template format with the ID asciidoctor and the
file extension adoc.
- 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 named links.
- Attribute(String, Object) - Constructor for class org.springframework.restdocs.snippet.Attributes.Attribute
-
Creates a new attribute with the given key and value.
- 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 - Class in org.springframework.restdocs.snippet
-
A fluent API for building a map of attributes.
- attributes(Attributes.Attribute...) - Static method in class org.springframework.restdocs.snippet.Attributes
-
Creates a Map of the given 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).
- 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.
- 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 given name and
configuration.
- ConstraintDescriptionResolver - Interface in org.springframework.restdocs.constraints
-
- 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 given clazz.
- ConstraintDescriptions(Class<?>, ConstraintResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new ConstraintDescriptions for the given clazz.
- ConstraintDescriptions(Class<?>, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new ConstraintDescriptions for the given clazz.
- ConstraintDescriptions(Class<?>, ConstraintResolver, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new ConstraintDescriptions for the given clazz.
- ConstraintResolver - Interface in org.springframework.restdocs.constraints
-
An abstraction for resolving a class's constraints.
- ContentModifier - Interface in org.springframework.restdocs.operation.preprocess
-
- ContentModifyingOperationPreprocessor - Class in org.springframework.restdocs.operation.preprocess
-
- ContentModifyingOperationPreprocessor(ContentModifier) - Constructor for class org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor
-
Create a new ContentModifyingOperationPreprocessor that will apply the
given contentModifier to the operation's request or response.
- ConversionException - Exception in org.springframework.restdocs.operation
-
- ConversionException(Throwable) - Constructor for exception org.springframework.restdocs.operation.ConversionException
-
Creates a new ConversionException with the given cause.
- ConversionException(String, Throwable) - Constructor for exception org.springframework.restdocs.operation.ConversionException
-
Creates a new ConversionException with the given message and
cause.
- convert(R) - Method in interface org.springframework.restdocs.operation.RequestConverter
-
Converts the given request into an OperationRequest.
- convert(R) - Method in interface org.springframework.restdocs.operation.ResponseConverter
-
Converts the given response into an OperationResponse.
- create(URI, HttpMethod, byte[], HttpHeaders, Parameters, Collection<OperationRequestPart>) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
- create(String, String, byte[], HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationRequestPartFactory
-
- create(HttpStatus, HttpHeaders, byte[]) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
- create(RestDocumentationContext) - Method in interface org.springframework.restdocs.snippet.PlaceholderResolverFactory
-
- 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 given original but with
the given newContent.
- createFrom(OperationRequest, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new OperationRequest based on the given original but with
the given newHeaders.
- createFrom(OperationRequest, Parameters) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new OperationRequest based on the given original but with
the given newParameters.
- createFrom(OperationResponse, byte[]) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new OperationResponse based on the given original but
with the given newContent.
- createFrom(OperationResponse, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new OperationResponse based on the given original but
with the given newHeaders.
- 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.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.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(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.
- CurlDocumentation - Class in org.springframework.restdocs.curl
-
- 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() - Static method in class org.springframework.restdocs.curl.CurlDocumentation
-
- curlRequest(Map<String, Object>) - Static method in class org.springframework.restdocs.curl.CurlDocumentation
-
- CurlRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippet that documents the curl command for a request.
- CurlRequestSnippet() - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new CurlRequestSnippet with no additional attributes.
- CurlRequestSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new CurlRequestSnippet with the given additional
attributes that will be included in the model during template rendering.
- CurlRequestSnippet - Class in org.springframework.restdocs.curl
-
- CurlRequestSnippet() - Constructor for class org.springframework.restdocs.curl.CurlRequestSnippet
-
- CurlRequestSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.curl.CurlRequestSnippet
-
- 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.AbstractFieldsSnippet
-
Returns the content of the request or response extracted form the given
operation.
- getContent(Operation) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
- 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.AbstractFieldsSnippet
-
Returns the content type of the request or response extracted from the given
operation.
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
- getContentType(Operation) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
- getContext() - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
- 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.
- getFieldDescriptors() - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
- 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.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.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 class org.springframework.restdocs.RestDocumentationContext
-
Returns the output directory to which generated snippets should be written.
- getParameterDescriptors() - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
- getParameters() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the request's parameters.
- 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 class 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.
- getTemplateResourceResolver() - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
- getTestClass() - Method in class org.springframework.restdocs.RestDocumentationContext
-
Returns the class whose tests are currently executing.
- getTestMethodName() - Method in class 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, or null 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.
- getUniqueParameters(URI) - Method in class org.springframework.restdocs.operation.Parameters
-
Returns a new Parameters containing only the parameters that do no appear
in the query string of the given uri.
- getUri() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the request's URI.
- getValue() - Method in class org.springframework.restdocs.snippet.Attributes.Attribute
-
Returns the attribute's value.
- 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 and response, producing documentation
snippets for them using the given configuration.
- 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 given
name.
- HeaderDocumentation - Class in org.springframework.restdocs.headers
-
Static factory methods for documenting a RESTful API's request and response headers.
- headerWithName(String) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Creates a HeaderDescriptor that describes a header with the given
name.
- 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.
- HttpieRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippet that documents the HTTPie command for a request.
- HttpieRequestSnippet() - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new HttpieRequestSnippet with no additional attributes.
- HttpieRequestSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new HttpieRequestSnippet with the given additional
attributes that will be included in the model during template rendering.
- 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 additional
attributes 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 additional
attributes 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.
- Operation - Interface in org.springframework.restdocs.operation
-
Describes an operation performed on a RESTful service.
- OperationPreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
- OperationPreprocessorAdapter - Class in org.springframework.restdocs.operation.preprocess
-
- OperationPreprocessorAdapter() - Constructor for class org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
-
- 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
-
- 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
-
- OperationRequestPartFactory() - Constructor for class org.springframework.restdocs.operation.OperationRequestPartFactory
-
- OperationRequestPreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
An OperationRequestPreprocessor is used to modify an OperationRequest
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
-
- OperationResponseFactory() - Constructor for class org.springframework.restdocs.operation.OperationResponseFactory
-
- OperationResponsePreprocessor - Interface in org.springframework.restdocs.operation.preprocess
-
An OperationRequestPreprocessor is used to modify an OperationRequest
prior to it being documented.
- 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.curl - package org.springframework.restdocs.curl
-
Documenting the curl command required to make a request to a RESTful API.
- 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.
- 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(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>, 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>, 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(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.
- 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>, 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.
- 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.
- 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>, 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.
- 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(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>, 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>, 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.
- relaxedRequestParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- relaxedRequestParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- relaxedRequestParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- relaxedRequestParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters 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.
- 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>, 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.
- 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(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(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.
- remove(String) - Method in class org.springframework.restdocs.operation.preprocess.ParametersModifyingOperationPreprocessor
-
Removes the parameter with the given name.
- remove(String, String) - Method in class org.springframework.restdocs.operation.preprocess.ParametersModifyingOperationPreprocessor
-
Removes the given value from the parameter with the given name.
- removeHeaders(String...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an OperationPreprocessor that will remove any header from the
request or response with a name that is equal to one of the given
headersToRemove.
- removeMatchingHeaders(String...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an OperationPreprocessor that will remove any headers from the
request or response with a name that matches one of the given
headerNamePatterns regular expressions.
- 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 given
context 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 given pattern with the
given replacement.
- RequestConverter<R> - Interface in org.springframework.restdocs.operation
-
A
RequestConverter is used to convert an implementation-specific request into
an
OperationRequest.
- RequestDocumentation - Class in org.springframework.restdocs.request
-
Static factory methods for documenting aspects of a request sent to a RESTful API.
- 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(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>, 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>, 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.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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.
- 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>, 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>, 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.
- 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 given descriptors.
- 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 given descriptors.
- requestParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- requestParameters(List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- requestParameters(Map<String, Object>, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- requestParameters(Map<String, Object>, List<ParameterDescriptor>) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a Snippet that will document the parameters from the API
operation's request.
- RequestParametersSnippet - Class in org.springframework.restdocs.request
-
A
Snippet that documents the request parameters supported by a RESTful
resource.
- RequestParametersSnippet(List<ParameterDescriptor>) - Constructor for class org.springframework.restdocs.request.RequestParametersSnippet
-
Creates a new RequestParametersSnippet that will document the request's
parameters using the given descriptors.
- RequestParametersSnippet(List<ParameterDescriptor>, boolean) - Constructor for class org.springframework.restdocs.request.RequestParametersSnippet
-
Creates a new RequestParametersSnippet that will document the request's
parameters using the given descriptors.
- RequestParametersSnippet(List<ParameterDescriptor>, Map<String, Object>) - Constructor for class org.springframework.restdocs.request.RequestParametersSnippet
-
Creates a new RequestParametersSnippet that will document the request's
parameters using the given descriptors.
- RequestParametersSnippet(List<ParameterDescriptor>, Map<String, Object>, boolean) - Constructor for class org.springframework.restdocs.request.RequestParametersSnippet
-
Creates a new RequestParametersSnippet that will document the request's
parameters using the given descriptors.
- 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
given name.
- 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.
- 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>, 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.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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
-
- resolveForProperty(String, Class<?>) - Method in interface org.springframework.restdocs.constraints.ConstraintResolver
-
Resolves and returns the constraints for the given property on the given
clazz.
- resolveForProperty(String, Class<?>) - Method in class org.springframework.restdocs.constraints.ValidatorConstraintResolver
-
- 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 given
name.
- ResourceBundleConstraintDescriptionResolver - Class in org.springframework.restdocs.constraints
-
- 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 name
org.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 given resourceBundle.
- ResponseConverter<R> - Interface in org.springframework.restdocs.operation
-
A
ResponseConverter is used to convert an implementation-specific response into
an
OperationResponse.
- 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(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(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.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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 given descriptors.
- 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.
- 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>, 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>, 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.
- 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 given descriptors.
- 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 given descriptors.
- RestDocumentation - Class in org.springframework.restdocs
-
- RestDocumentation(String) - Constructor for class org.springframework.restdocs.RestDocumentation
-
Deprecated.
Creates a new RestDocumentation instance that will generate snippets to the
given outputDirectory.
- RestDocumentationConfigurer<S 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 - Class in org.springframework.restdocs
-
RestDocumentationContext encapsulates the context in which the documentation of
a RESTful API is being performed.
- RestDocumentationContext(Class<?>, String, File) - Constructor for class org.springframework.restdocs.RestDocumentationContext
-
- RestDocumentationContextPlaceholderResolver - Class in org.springframework.restdocs.snippet
-
- 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
-
- RestDocumentationContextPlaceholderResolverFactory() - Constructor for class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolverFactory
-
- RestDocumentationContextProvider - Interface in org.springframework.restdocs
-
- RestDocumentationGenerationException - Exception in org.springframework.restdocs.generate
-
An exception that can be thrown when a failure occurs during REST documentation
generation.
- RestDocumentationGenerationException(Throwable) - Constructor for exception org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new RestDocumentationException with the given cause.
- RestDocumentationGenerationException(String, Throwable) - Constructor for exception org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new RestDocumentationException with the given message and
cause.
- 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>, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new RestDocumentationGenerator for the operation identified by
the given identifier.
- 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 given identifier.
- 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 given identifier.
- 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 given identifier.