- 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
-
- 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>, Collection<RequestCookie>) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
- 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
-
Creates a new PropertyPlaceholderHelper.PlaceholderResolver
using the given context
.
- 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.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(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(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(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() - 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
-
- CurlRequestSnippet(CommandFormatter) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new CurlRequestSnippet
that will use the given
commandFormatter
to format the curl command.
- CurlRequestSnippet(Map<String, Object>) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
- CurlRequestSnippet(Map<String, Object>, CommandFormatter) - 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
-