Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
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.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form