Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractBodySnippet - Class in org.springframework.restdocs.payload
-
Abstract
TemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response body. - AbstractBodySnippet(String, String, PayloadSubsectionExtractor, Map) - Constructor for class org.springframework.restdocs.payload.AbstractBodySnippet
-
Creates a new
AbstractBodySnippetthat will produce a snippet named<name>-bodyusing a template named<type>-body. - AbstractBodySnippet(String, PayloadSubsectionExtractor, Map) - Constructor for class org.springframework.restdocs.payload.AbstractBodySnippet
-
Creates a new
AbstractBodySnippetthat will produce a snippet named<type>-bodyusing 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
TemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response cookies. - AbstractCookiesSnippet(String, List, Map, boolean) - Constructor for class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Creates a new
AbstractCookiesSnippetthat will produce a snippet named<type>-cookies. - 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
TemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response fields. - AbstractFieldsSnippet(String, String, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippetthat will produce a snippet named<name>-fieldsusing a template named<type>-fields. - AbstractFieldsSnippet(String, String, List, Map, boolean, PayloadSubsectionExtractor) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippetthat will produce a snippet named<name>-fieldsusing a template named<type>-fields. - AbstractFieldsSnippet(String, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippetthat will produce a snippet named<type>-fieldsusing a template named<type>-fields. - AbstractFieldsSnippet(String, List, Map, boolean, PayloadSubsectionExtractor) - Constructor for class org.springframework.restdocs.payload.AbstractFieldsSnippet
-
Creates a new
AbstractFieldsSnippetthat will produce a snippet named<type>-fieldsusing a template named<type>-fields. - AbstractHeadersSnippet - Class in org.springframework.restdocs.headers
-
Abstract
TemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response headers. - AbstractHeadersSnippet(String, List, Map) - Constructor for class org.springframework.restdocs.headers.AbstractHeadersSnippet
-
Creates a new
AbstractHeadersSnippetthat will produce a snippet named<type>-headers. - AbstractNestedConfigurer<PARENT> - Class in org.springframework.restdocs.config
-
Base class for
NestedConfigurerimplementations. - AbstractNestedConfigurer(PARENT) - Constructor for class org.springframework.restdocs.config.AbstractNestedConfigurer
-
Creates a new
AbstractNestedConfigurerwith the givenparent. - AbstractParametersSnippet - Class in org.springframework.restdocs.request
-
Abstract
TemplatedSnippetsubclass that provides a base for snippets that document parameters from a request sent to a RESTful resource. - AbstractParametersSnippet(String, List, Map, boolean) - Constructor for class org.springframework.restdocs.request.AbstractParametersSnippet
-
Creates a new
AbstractParametersSnippetthat will produce a snippet with the givensnippetNamethat will document parameters using the givendescriptors. - add(String, String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Adds a header with the given
nameandvalue. - 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) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Returns a new
RequestCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Returns a new
ResponseCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Returns a new
RequestHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Returns a new
ResponseHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.hypermedia.LinksSnippet
-
Returns a new
LinksSnippetconfigured with this snippet's link extractor and attributes, and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestPartFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.request.FormParametersSnippet
-
Returns a new
FormParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.request.PathParametersSnippet
-
Returns a new
PathParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.request.QueryParametersSnippet
-
Returns a new
QueryParametersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - and(List) - Method in class org.springframework.restdocs.request.RequestPartsSnippet
-
Returns a new
RequestPartsSnippetconfigured 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
RequestCookiesSnippetconfigured 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
ResponseCookiesSnippetconfigured 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
RequestHeadersSnippetconfigured 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
ResponseHeadersSnippetconfigured 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
LinksSnippetconfigured 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
RequestFieldsSnippetconfigured 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
RequestPartFieldsSnippetconfigured 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
ResponseFieldsSnippetconfigured 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
FormParametersSnippetconfigured 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
PathParametersSnippetconfigured 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
QueryParametersSnippetconfigured 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
RequestPartsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - andWithPrefix(String, List) - Method in class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Returns a new
RequestFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - andWithPrefix(String, List) - Method in class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Returns a new
RequestFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - andWithPrefix(String, List) - Method in class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Returns a new
ResponseFieldsSnippetconfigured 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
RequestFieldsSnippetconfigured 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
RequestFieldsSnippetconfigured 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
ResponseFieldsSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors. - apply(Map, RestDocumentationContext) - Method in class org.springframework.restdocs.config.AbstractConfigurer
-
Applies the configurer to the given
configuration. - apply(Map, RestDocumentationContext) - Method in class org.springframework.restdocs.config.OperationPreprocessorsConfigurer
- apply(Map, RestDocumentationContext) - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Applies this configurer to the given
configurationwithin the givencontext. - apply(Map, RestDocumentationContext) - Method in class org.springframework.restdocs.config.SnippetConfigurer
- applyPathPrefix(String, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a copy of the given
descriptorswith the givenpathPrefixapplied 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
asciidoctorand the file extensionadoc. - AsciidoctorTableCellContentLambda - Class in org.springframework.restdocs.templates.mustache
-
A
Mustache.Lambdathat 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
LinkExtractorcapable 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
keyandvalue. - 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
Listof 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
attributesto the descriptor. - attributes(Attributes.Attribute...) - Static method in class org.springframework.restdocs.snippet.Attributes
-
Creates a
Mapof 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.ManualRestDocumentation
- beforeOperation() - Method in interface org.springframework.restdocs.RestDocumentationContextProvider
-
Returns a
RestDocumentationContextfor 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
PayloadSubsectionExtractorthat 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
stringfrom camelCase to kebab-case. - camelCaseToSnakeCase(String) - Method in class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolver
-
Converts the given
stringfrom 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
CurlRequestSnippetandHttpieRequestSnippet. - 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) - Constructor for class org.springframework.restdocs.constraints.Constraint
-
Creates a new
Constraintwith the givennameandconfiguration. - 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
ConstraintDescriptionsfor the givenclazz. - ConstraintDescriptions(Class, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptionsfor the givenclazz. - ConstraintDescriptions(Class, ConstraintResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptionsfor the givenclazz. - ConstraintDescriptions(Class, ConstraintResolver, ConstraintDescriptionResolver) - Constructor for class org.springframework.restdocs.constraints.ConstraintDescriptions
-
Create a new
ConstraintDescriptionsfor 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
ContentModifiermodifies the content of anOperationRequestorOperationResponseduring the preprocessing that is performed prior to documentation generation. - ContentModifyingOperationPreprocessor - Class in org.springframework.restdocs.operation.preprocess
-
An
OperationPreprocessorthat applies aContentModifierto the content of the request or response. - ContentModifyingOperationPreprocessor(ContentModifier) - Constructor for class org.springframework.restdocs.operation.preprocess.ContentModifyingOperationPreprocessor
-
Create a new
ContentModifyingOperationPreprocessorthat will apply the givencontentModifierto the operation's request or response. - ConversionException - Exception Class in org.springframework.restdocs.operation
-
An exception that can be thrown by
RequestConverterandResponseConverterimplementations to indicate that a failure has occurred during conversion. - ConversionException(String, Throwable) - Constructor for exception class org.springframework.restdocs.operation.ConversionException
-
Creates a new
ConversionExceptionwith the givenmessageandcause. - ConversionException(Throwable) - Constructor for exception class org.springframework.restdocs.operation.ConversionException
-
Creates a new
ConversionExceptionwith the givencause. - convert(R) - Method in interface org.springframework.restdocs.operation.RequestConverter
-
Converts the given
requestinto anOperationRequest. - convert(R) - Method in interface org.springframework.restdocs.operation.ResponseConverter
-
Converts the given
responseinto 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
CookieDescriptordescribing 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
CookieDescriptorthat 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, Collection) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequest. - create(URI, HttpMethod, byte[], HttpHeaders, Collection) - 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
OperationResponsewithout cookies. - create(HttpStatusCode, HttpHeaders, byte[], Collection) - 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.PlaceholderResolverusing 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
OperationRequestbased on the givenoriginalbut with the givennewContent. - createFrom(OperationRequest, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationRequestFactory
-
Creates a new
OperationRequestbased on the givenoriginalbut with the givennewHeaders. - createFrom(OperationResponse, byte[]) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponsebased on the givenoriginalbut with the givennewContent. - createFrom(OperationResponse, HttpHeaders) - Method in class org.springframework.restdocs.operation.OperationResponseFactory
-
Creates a new
OperationResponsebased on the givenoriginalbut 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
Snippetthat will document the curl request for the API operation. - curlRequest(Map, CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the curl request for the API operation. - curlRequest(Map) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the curl request for the API operation. - curlRequest(CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the curl request for the API operation. - CurlRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippetthat documents the curl command for a request. - CurlRequestSnippet(Map, CommandFormatter) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new
CurlRequestSnippetwith the given additionalattributesthat will be included in the model during template rendering. - CurlRequestSnippet(CommandFormatter) - Constructor for class org.springframework.restdocs.cli.CurlRequestSnippet
-
Creates a new
CurlRequestSnippetthat will use the givencommandFormatterto 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 aMapof 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
payloadthat has the givencontentType. - extractSubsection(byte[], MediaType, List) - Method in class org.springframework.restdocs.payload.FieldPathPayloadSubsectionExtractor
- extractSubsection(byte[], MediaType, List) - Method in interface org.springframework.restdocs.payload.PayloadSubsectionExtractor
-
Extracts a subsection of the given
payloadthat has the givencontentTypeand 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
FieldDescriptordescribing the field with the givenpath. - FieldDoesNotExistException - Exception Class in org.springframework.restdocs.payload
-
A
FieldDoesNotExistExceptionis thrown when a requested field does not exist in a payload. - FieldDoesNotExistException(String) - Constructor for exception class org.springframework.restdocs.payload.FieldDoesNotExistException
-
Creates a new
FieldDoesNotExistExceptionthat indicates that the field with the givenfieldPathdoes not exist. - FieldPathPayloadSubsectionExtractor - Class in org.springframework.restdocs.payload
-
A
PayloadSubsectionExtractorthat 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
FieldPathPayloadSubsectionExtractorthat 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
FieldPathPayloadSubsectionExtractorthat will extract the subsection of the JSON payload beneath the givenfieldPathand that will use the givensubsectionIdto identify the subsection. - FieldTypeRequiredException - Exception Class in org.springframework.restdocs.payload
-
A
FieldTypeRequiredExceptionis thrown when a field's type cannot be determined automatically and, therefore, must be explicitly provided. - FieldTypeRequiredException(String) - Constructor for exception class org.springframework.restdocs.payload.FieldTypeRequiredException
-
Creates a new
FieldTypeRequiredExceptionindicating 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
FieldDescriptorthat 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) - Static method in interface org.springframework.restdocs.payload.FieldTypeResolver
-
Create a
FieldTypeResolverfor the givencontentandcontentType, described by the givendescriptors. - format(List) - Method in interface org.springframework.restdocs.cli.CommandFormatter
-
Formats a list of
elementsinto a singleString. - formParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - formParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - formParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - formParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat 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
Snippetthat documents the form parameters supported by a RESTful resource. - FormParametersSnippet(List) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippetthat will document the request's form parameters using the givendescriptors. - FormParametersSnippet(List, boolean) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippetthat will document the request's form parameters using the givendescriptors. - FormParametersSnippet(List, Map) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippetthat will document the request's form parameters using the givendescriptors. - FormParametersSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.request.FormParametersSnippet
-
Creates a new
FormParametersSnippetthat 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
Mapof 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.Compilerused 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
RestDocumentationContextthat should be used during placeholder resolution. - getCookieDescriptors() - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Returns the list of
CookieDescriptorsthat will be used to generate the documentation. - getCookies() - Method in interface org.springframework.restdocs.operation.OperationRequest
-
Returns the
cookiessent with the request. - getCookies() - Method in interface org.springframework.restdocs.operation.OperationResponse
-
Returns the
cookiesreturned 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
FieldDescriptorsthat 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
HeaderDescriptorsthat 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
MapofParameterDescriptorsthat 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
TemplateResourceResolverused 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, ornullif 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
LinkExtractorcapable of extracting links in Hypermedia Application Language (HAL) format where the links are found in a map named_links. - handle(REQ, RESP, Map) - Method in class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Handles the given
requestandresponse, 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
HeaderDescriptordescribing 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
OperationPreprocessorthat 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
HeaderDescriptorthat 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
Snippetthat will document the HTTPie request for the API operation. - httpieRequest(Map, CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the HTTPie request for the API operation. - httpieRequest(Map) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the HTTPie request for the API operation. - httpieRequest(CommandFormatter) - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Returns a new
Snippetthat will document the HTTPie request for the API operation. - HttpieRequestSnippet - Class in org.springframework.restdocs.cli
-
A
Snippetthat documents the HTTPie command for a request. - HttpieRequestSnippet(Map, CommandFormatter) - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new
HttpieRequestSnippetwith the given additionalattributesthat will be included in the model during template rendering. - HttpieRequestSnippet(CommandFormatter) - Constructor for class org.springframework.restdocs.cli.HttpieRequestSnippet
-
Creates a new
HttpieRequestSnippetthat will use the givencommandFormatterto format the HTTPie command. - httpRequest() - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a new
Snippetthat will document the HTTP request for the API operation. - httpRequest(Map) - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a new
Snippetthat will document the HTTP request for the API operation. - HttpRequestSnippet - Class in org.springframework.restdocs.http
-
A
Snippetthat documents an HTTP request. - HttpRequestSnippet() - Constructor for class org.springframework.restdocs.http.HttpRequestSnippet
-
Creates a new
HttpRequestSnippetwith no additional attributes. - HttpRequestSnippet(Map) - Constructor for class org.springframework.restdocs.http.HttpRequestSnippet
-
Creates a new
HttpRequestSnippetwith the given additionalattributesthat will be included in the model during template rendering. - httpResponse() - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a
Snippetthat will document the HTTP response for the API operation. - httpResponse(Map) - Static method in class org.springframework.restdocs.http.HttpDocumentation
-
Returns a
Snippetthat will document the HTTP response for the API operation. - HttpResponseSnippet - Class in org.springframework.restdocs.http
-
A
Snippetthat documents an HTTP response. - HttpResponseSnippet() - Constructor for class org.springframework.restdocs.http.HttpResponseSnippet
-
Creates a new
HttpResponseSnippetwith no additional attributes. - HttpResponseSnippet(Map) - Constructor for class org.springframework.restdocs.http.HttpResponseSnippet
-
Creates a new
HttpResponseSnippetwith the given additionalattributesthat 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> - 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
trueif the described cookie is optional, otherwisefalse. - isOptional() - Method in class org.springframework.restdocs.headers.HeaderDescriptor
-
Returns
trueif the described header is optional, otherwisefalse. - isOptional() - Method in class org.springframework.restdocs.hypermedia.LinkDescriptor
-
Returns
trueif the described link is optional, otherwisefalse. - isOptional() - Method in class org.springframework.restdocs.payload.FieldDescriptor
-
Returns
trueif the described field is optional, otherwisefalse. - isOptional() - Method in class org.springframework.restdocs.request.ParameterDescriptor
-
Returns
trueif the described parameter is optional, otherwisefalse. - isOptional() - Method in class org.springframework.restdocs.request.RequestPartDescriptor
-
Returns
trueif 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.
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
Linkwith the givenrelandhref. - Link(String, String, String) - Constructor for class org.springframework.restdocs.hypermedia.Link
-
Creates a new
Linkwith 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
LinkDescriptordescribing a link with the givenrel. - LinkExtractor - Interface in org.springframework.restdocs.hypermedia
-
A
LinkExtractoris used to extractlinksfrom a JSON response. - links(List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - links(Map, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API call's response. - links(Map, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API call's response. - links(LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - links(LinkExtractor, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - links(LinkExtractor, Map, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - links(LinkExtractor, Map, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat 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
Snippetthat will document the links in the API operation's response. - LinksSnippet - Class in org.springframework.restdocs.hypermedia
-
A
Snippetthat documents a RESTful resource's links. - LinksSnippet(LinkExtractor, List) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippetthat will extract links using the givenlinkExtractorand document them using the givendescriptors. - LinksSnippet(LinkExtractor, List, boolean) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippetthat will extract links using the givenlinkExtractorand document them using the givendescriptors. - LinksSnippet(LinkExtractor, List, Map) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippetthat will extract links using the givenlinkExtractorand document them using the givendescriptors. - LinksSnippet(LinkExtractor, List, Map, boolean) - Constructor for class org.springframework.restdocs.hypermedia.LinksSnippet
-
Creates a new
LinksSnippetthat will extract links using the givenlinkExtractorand document them using the givendescriptors. - linkWithRel(String) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Creates a
LinkDescriptorthat describes a link with the givenrel.
M
- ManualRestDocumentation - Class in org.springframework.restdocs
-
ManualRestDocumentationis used to manually manage theRestDocumentationContext. - ManualRestDocumentation() - Constructor for class org.springframework.restdocs.ManualRestDocumentation
-
Creates a new
ManualRestDocumentationinstance that will generate snippets to <gradle/maven build path>/generated-snippets. - ManualRestDocumentation(String) - Constructor for class org.springframework.restdocs.ManualRestDocumentation
-
Creates a new
ManualRestDocumentationinstance 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
markdownand the file extensionmd. - maskLinks() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessorthat 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
OperationPreprocessorthat will mask the href of hypermedia links in the request or response. - ModelCreationException - Exception Class in org.springframework.restdocs.snippet
-
An exception that can be thrown by a
TemplatedSnippetto indicate that a failure has occurred during model creation. - ModelCreationException(String, Throwable) - Constructor for exception class org.springframework.restdocs.snippet.ModelCreationException
-
Creates a new
ModelCreationExceptionwith the givenmessageandcause. - ModelCreationException(Throwable) - Constructor for exception class org.springframework.restdocs.snippet.ModelCreationException
-
Creates a new
ModelCreationExceptionwith 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
HeadersModifyingOperationPreprocessorthat 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
UriModifyingOperationPreprocessorthat 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
CommandFormatterthat 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
MustacheTemplatethat adapts the givendelegate. - MustacheTemplate(Template, Map) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplate
-
Creates a new
MustacheTemplatethat 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
MustacheTemplateEnginethat will use the giventemplateResourceResolverto resolve template paths. - MustacheTemplateEngine(TemplateResourceResolver, Mustache.Compiler) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEnginethat will use the giventemplateResourceResolverto resolve templates and the givencompilerto compile them. - MustacheTemplateEngine(TemplateResourceResolver, Mustache.Compiler, Map) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEnginethat will use the giventemplateResourceResolverto resolve templates. - MustacheTemplateEngine(TemplateResourceResolver, Charset) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEnginethat will use the giventemplateResourceResolverto 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
MustacheTemplateEnginethat will use the giventemplateResourceResolverto resolve templates and the givencompilerto compile them. - MustacheTemplateEngine(TemplateResourceResolver, Charset, Mustache.Compiler, Map) - Constructor for class org.springframework.restdocs.templates.mustache.MustacheTemplateEngine
-
Creates a new
MustacheTemplateEnginethat will use the giventemplateResourceResolverto 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
OperationPreprocessorprocesses theOperationRequestandOperationResponseof anOperationprior to it being documented. - OperationPreprocessorAdapter - Class in org.springframework.restdocs.operation.preprocess
-
An implementation of
OperationPreprocessorthat 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
OperationPreprocessorsConfigurerthat 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
OperationPreprocessorConfigurerwith 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
OperationRequestPreprocessoris used to modify anOperationRequestprior 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
OperationResponsePreprocessoris used to modify anOperationResponseprior 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
ParameterDescriptordescribing the parameter with the givenname. - parameterWithName(String) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Creates a
ParameterDescriptorthat describes a request or path parameter with the givenname. - partWithName(String) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Creates a
RequestPartDescriptorthat describes a request part with the givenname. - pathParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - pathParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - pathParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - pathParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - PathParametersSnippet - Class in org.springframework.restdocs.request
-
A
Snippetthat documents the path parameters supported by a RESTful resource. - PathParametersSnippet(List) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippetthat will document the request's path parameters using the givendescriptors. - PathParametersSnippet(List, boolean) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippetthat will document the request's path parameters using the givendescriptors. - PathParametersSnippet(List, Map) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippetthat will document the request's path parameters using the givendescriptors. - PathParametersSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.request.PathParametersSnippet
-
Creates a new
PathParametersSnippetthat 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> - 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.PlaceholderResolverinstances. - 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
requestas-is. - preprocess(OperationRequest) - Method in interface org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor
-
Processes and potentially modifies the given
requestbefore 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
responseas-is. - preprocess(OperationResponse) - Method in interface org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor
-
Processes and potentially modifies the given
responsebefore 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
OperationPreprocessorsthat can be applied to anOperation'srequestorresponsebefore it is documented. - preprocessRequest(OperationPreprocessor...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationRequestPreprocessorthat will preprocess the request by applying the givenpreprocessorsto it. - preprocessResponse(OperationPreprocessor...) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationResponsePreprocessorthat will preprocess the response by applying the givenpreprocessorsto it. - prettyPrint() - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessorthat will pretty print the content of the request or response. - PrettyPrintingContentModifier - Class in org.springframework.restdocs.operation.preprocess
-
A
ContentModifierthat modifies the content by pretty printing it. - PrettyPrintingContentModifier() - Constructor for class org.springframework.restdocs.operation.preprocess.PrettyPrintingContentModifier
Q
- queryParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - queryParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - queryParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - queryParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat 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
Snippetthat documents the query parameters supported by a RESTful resource. - QueryParametersSnippet(List) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippetthat will document the request's query parameters using the givendescriptors. - QueryParametersSnippet(List, boolean) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippetthat will document the request's query parameters using the givendescriptors. - QueryParametersSnippet(List, Map) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippetthat will document the request's query parameters using the givendescriptors. - QueryParametersSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.request.QueryParametersSnippet
-
Creates a new
QueryParametersSnippetthat will document the request's query parameters using the givendescriptors.
R
- relaxedFormParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - relaxedFormParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - relaxedFormParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - relaxedFormParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the form parameters from the API operation's request. - relaxedLinks(List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - relaxedLinks(Map, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API call's response. - relaxedLinks(Map, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API call's response. - relaxedLinks(LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - relaxedLinks(LinkExtractor, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - relaxedLinks(LinkExtractor, Map, List) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat will document the links in the API operation's response. - relaxedLinks(LinkExtractor, Map, LinkDescriptor...) - Static method in class org.springframework.restdocs.hypermedia.HypermediaDocumentation
-
Returns a new
Snippetthat 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
Snippetthat will document the links in the API operation's response. - relaxedPathParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - relaxedPathParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - relaxedPathParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - relaxedPathParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the path parameters from the API operation's request. - relaxedQueryParameters(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - relaxedQueryParameters(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - relaxedQueryParameters(Map, ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - relaxedQueryParameters(ParameterDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the query parameters from the API operation's request. - relaxedRequestCookies(List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's request. - relaxedRequestCookies(Map, List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's request. - relaxedRequestCookies(Map, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's request. - relaxedRequestCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's request. - relaxedRequestFields(List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operations's request payload. - relaxedRequestFields(Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's request payload. - relaxedRequestFields(Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's request payload. - relaxedRequestFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operations's request payload. - relaxedRequestFields(PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor. - relaxedRequestFields(PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor. - relaxedRequestFields(PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor. - relaxedRequestPartFields(String, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - relaxedRequestPartFields(String, PayloadSubsectionExtractor, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - relaxedRequestParts(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - relaxedRequestParts(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - relaxedRequestParts(Map, RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - relaxedRequestParts(RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - relaxedResponseCookies(List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's response. - relaxedResponseCookies(Map, List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's response. - relaxedResponseCookies(Map, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's response. - relaxedResponseCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's response. - relaxedResponseFields(List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - relaxedResponseFields(Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - relaxedResponseFields(Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - relaxedResponseFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the API operation's response payload. - relaxedResponseFields(PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat 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
valuefrom the header with the givenname. - removeMatching(String) - Method in class org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
-
Remove headers that match the given
namePatternregular expression. - removePort() - Method in class org.springframework.restdocs.operation.preprocess.UriModifyingOperationPreprocessor
-
Removes the port from the URI.
- render(Map) - Method in class org.springframework.restdocs.templates.mustache.MustacheTemplate
- render(Map) - Method in interface org.springframework.restdocs.templates.Template
-
Renders the template to a
Stringusing the givencontextfor variable/property resolution. - replacePattern(Pattern, String) - Static method in class org.springframework.restdocs.operation.preprocess.Preprocessors
-
Returns an
OperationPreprocessorthat will modify the content of the request or response by replacing occurrences of the givenpatternwith the givenreplacement. - requestBody() - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the body of the API operation's request payload. - requestBody(Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the body of the API operation's request payload. - requestBody(PayloadSubsectionExtractor) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document a subsection of the body of the API operation's request payload. - requestBody(PayloadSubsectionExtractor, Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document a subsection of the body of the API operation's request payload. - RequestBodySnippet - Class in org.springframework.restdocs.payload
-
A
Snippetthat documents the body of a request. - RequestBodySnippet() - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippet. - RequestBodySnippet(Map) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippetwith the given additionalattributesthat will be included in the model during template rendering. - RequestBodySnippet(PayloadSubsectionExtractor) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippetthat will document the subsection of the request body extracted by the givensubsectionExtractor. - RequestBodySnippet(PayloadSubsectionExtractor, Map) - Constructor for class org.springframework.restdocs.payload.RequestBodySnippet
-
Creates a new
RequestBodySnippetthat will document the subsection of the request body extracted by the givensubsectionExtractor. - RequestConverter<R> - Interface in org.springframework.restdocs.operation
-
A
RequestConverteris 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
RequestCookiewith the givennameandvalue. - requestCookies(List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's request. - requestCookies(Map, List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's request. - requestCookies(Map, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's request. - requestCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's request. - RequestCookiesSnippet - Class in org.springframework.restdocs.cookies
-
A
Snippetthat documents the cookies in a request. - RequestCookiesSnippet(List) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippetthat will document the cookies in the request using the givendescriptors. - RequestCookiesSnippet(List, boolean) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippetthat will document the cookies in the request using the givendescriptors. - RequestCookiesSnippet(List, Map) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippetthat will document the cookies in the request using the givendescriptors. - RequestCookiesSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.cookies.RequestCookiesSnippet
-
Creates a new
RequestCookiesSnippetthat 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) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operations's request payload. - requestFields(Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's request payload. - requestFields(Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's request payload. - requestFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operations's request payload. - requestFields(PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields in the subsection of the API operations's request payload extracted by the givensubsectionExtractor. - requestFields(PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor. - requestFields(PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat 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
Snippetthat documents the fields in a request. - RequestFieldsSnippet(List) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestFieldsSnippet(List, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestFieldsSnippet(List, Map) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestFieldsSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestFieldsSnippet(PayloadSubsectionExtractor, List) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the subsection of the request extracted by the givensubsectionExtractorusing the givendescriptors. - RequestFieldsSnippet(PayloadSubsectionExtractor, List, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the subsection of the request extracted by the givensubsectionExtractorusing the givendescriptors. - RequestFieldsSnippet(PayloadSubsectionExtractor, List, Map) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the subsection of the request extracted by the givensubsectionExtractorusing the givendescriptors. - RequestFieldsSnippet(PayloadSubsectionExtractor, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.RequestFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the subsection of the request extracted by the givensubsectionExtractorusing the givendescriptors. - requestHeaders(List) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operation's request. - requestHeaders(Map, List) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operations's request. - requestHeaders(Map, HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operations's request. - requestHeaders(HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operation's request. - RequestHeadersSnippet - Class in org.springframework.restdocs.headers
-
A
Snippetthat documents the headers in a request. - RequestHeadersSnippet(List) - Constructor for class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Creates a new
RequestHeadersSnippetthat will document the headers in the request using the givendescriptors. - RequestHeadersSnippet(List, Map) - Constructor for class org.springframework.restdocs.headers.RequestHeadersSnippet
-
Creates a new
RequestHeadersSnippetthat will document the headers in the request using the givendescriptors. - requestPartBody(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the body of specified part of the API operation's request payload. - requestPartBody(String, Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat will document a subsection of the body of specified part of the API operation's request payload. - requestPartBody(String, PayloadSubsectionExtractor, Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat documents the body of a request part. - RequestPartBodySnippet(String) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippetthat will document the body of the request part with the givenpartName. - RequestPartBodySnippet(String, Map) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippetthat 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
RequestPartBodySnippetthat will document the subsection of the body of the request part with the givenpartNameextracted by the givensubsectionExtractor. - RequestPartBodySnippet(String, PayloadSubsectionExtractor, Map) - Constructor for class org.springframework.restdocs.payload.RequestPartBodySnippet
-
Creates a new
RequestPartBodySnippetthat will document the subsection of the body of the request part with the givenpartNameextracted by the givensubsectionExtractor. - 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
RequestPartDescriptordescribing the request part with the givenname. - requestPartFields(String, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - requestPartFields(String, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - requestPartFields(String, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - requestPartFields(String, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the specifiedpartof the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - requestPartFields(String, PayloadSubsectionExtractor, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the specifiedpartof the API operations's request payload. - RequestPartFieldsSnippet - Class in org.springframework.restdocs.payload
-
A
Snippetthat documents the fields in a request part. - RequestPartFieldsSnippet(String, List) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in the request part using the givendescriptors. - RequestPartFieldsSnippet(String, List, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in the request part using the givendescriptors. - RequestPartFieldsSnippet(String, List, Map) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestPartFieldsSnippet(String, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestFieldsSnippetthat will document the fields in the request using the givendescriptors. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor, List) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in a subsection of the request part using the givendescriptors. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor, List, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in a subsection the request part using the givendescriptors. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor, List, Map) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in a subsection of the request part using the givendescriptors. - RequestPartFieldsSnippet(String, PayloadSubsectionExtractor, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.RequestPartFieldsSnippet
-
Creates a new
RequestPartFieldsSnippetthat will document the fields in a subsection of the request part using the givendescriptors. - requestParts(List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - requestParts(Map, List) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - requestParts(Map, RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - requestParts(RequestPartDescriptor...) - Static method in class org.springframework.restdocs.request.RequestDocumentation
-
Returns a
Snippetthat will document the parts from the API operation's request. - RequestPartsSnippet - Class in org.springframework.restdocs.request
-
A
Snippetthat documents the request parts supported by a RESTful resource. - RequestPartsSnippet(List) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippetthat will document the request's parts using the givendescriptors. - RequestPartsSnippet(List, boolean) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippetthat will document the request's parts using the givendescriptors. - RequestPartsSnippet(List, Map) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippetthat will document the request's parts using the givendescriptors. - RequestPartsSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.request.RequestPartsSnippet
-
Creates a new
RequestPartsSnippetthat 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
fieldDescriptorbased 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
propertyon 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
Resourcefor the template with the givenname. - ResourceBundleConstraintDescriptionResolver - Class in org.springframework.restdocs.constraints
-
A
ConstraintDescriptionResolverthat resolves constraint descriptions from aResourceBundle. - ResourceBundleConstraintDescriptionResolver() - Constructor for class org.springframework.restdocs.constraints.ResourceBundleConstraintDescriptionResolver
-
Creates a new
ResourceBundleConstraintDescriptionResolverthat will resolve descriptions by looking them up in a resource bundle with the base nameorg.springframework.restdocs.constraints.ConstraintDescriptionsin the default locale loaded using the thread context class loader. - ResourceBundleConstraintDescriptionResolver(ResourceBundle) - Constructor for class org.springframework.restdocs.constraints.ResourceBundleConstraintDescriptionResolver
-
Creates a new
ResourceBundleConstraintDescriptionResolverthat will resolve descriptions by looking them up in the givenresourceBundle. - responseBody() - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the body of the API operation's response payload. - responseBody(Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the body of the API operation's response payload. - responseBody(PayloadSubsectionExtractor) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document a subsection of the body of the API operation's response payload. - responseBody(PayloadSubsectionExtractor, Map) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document a subsection of the body of the API operation's response payload. - ResponseBodySnippet - Class in org.springframework.restdocs.payload
-
A
Snippetthat documents the body of a response. - ResponseBodySnippet() - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippet. - ResponseBodySnippet(Map) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippetwith the given additionalattributesthat will be included in the model during template rendering. - ResponseBodySnippet(PayloadSubsectionExtractor) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippetthat will document the subsection of the response body extracted by the givensubsectionExtractor. - ResponseBodySnippet(PayloadSubsectionExtractor, Map) - Constructor for class org.springframework.restdocs.payload.ResponseBodySnippet
-
Creates a new
ResponseBodySnippetthat will document the subsection of the response body extracted by the givensubsectionExtractor. - ResponseConverter<R> - Interface in org.springframework.restdocs.operation
-
A
ResponseConverteris 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
ResponseCookiewith the givennameandvalue. - responseCookies(List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's response. - responseCookies(Map, List) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's response. - responseCookies(Map, CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operations's response. - responseCookies(CookieDescriptor...) - Static method in class org.springframework.restdocs.cookies.CookieDocumentation
-
Returns a new
Snippetthat will document the cookies of the API operation's response. - ResponseCookiesSnippet - Class in org.springframework.restdocs.cookies
-
A
Snippetthat documents the cookies in a response. - ResponseCookiesSnippet(List) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors. - ResponseCookiesSnippet(List, boolean) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors. - ResponseCookiesSnippet(List, Map) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors. - ResponseCookiesSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.cookies.ResponseCookiesSnippet
-
Creates a new
ResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors. - responseFields(List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - responseFields(Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - responseFields(Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - responseFields(FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of the API operation's response payload. - responseFields(PayloadSubsectionExtractor, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the API operation's response payload. - responseFields(PayloadSubsectionExtractor, Map, List) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat will document the fields of a subsection of the API operation's response payload. - responseFields(PayloadSubsectionExtractor, Map, FieldDescriptor...) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Returns a
Snippetthat 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
Snippetthat will document the fields of a subsection of the API operation's response payload. - ResponseFieldsSnippet - Class in org.springframework.restdocs.payload
-
A
Snippetthat documents the fields in a response. - ResponseFieldsSnippet(List) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in the response using the givendescriptors. - ResponseFieldsSnippet(List, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in the response using the givendescriptors. - ResponseFieldsSnippet(List, Map) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in the response using the givendescriptors. - ResponseFieldsSnippet(List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in the response using the givendescriptors. - ResponseFieldsSnippet(PayloadSubsectionExtractor, List, Map, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in a subsection of the response using the givendescriptors. - ResponseFieldsSnippet(PayloadSubsectionExtractor, List) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in a subsection of the response using the givendescriptors. - ResponseFieldsSnippet(PayloadSubsectionExtractor, List, boolean) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in the subsection of the response using the givendescriptors. - ResponseFieldsSnippet(PayloadSubsectionExtractor, List, Map) - Constructor for class org.springframework.restdocs.payload.ResponseFieldsSnippet
-
Creates a new
ResponseFieldsSnippetthat will document the fields in a subsection of the response using the givendescriptors. - responseHeaders(List) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operation's response. - responseHeaders(Map, List) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operations's response. - responseHeaders(Map, HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operations's response. - responseHeaders(HeaderDescriptor...) - Static method in class org.springframework.restdocs.headers.HeaderDocumentation
-
Returns a new
Snippetthat will document the headers of the API operation's response. - ResponseHeadersSnippet - Class in org.springframework.restdocs.headers
-
A
Snippetthat documents the headers in a response. - ResponseHeadersSnippet(List) - Constructor for class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Creates a new
ResponseHeadersSnippetthat will document the headers in the response using the givendescriptors. - ResponseHeadersSnippet(List, Map) - Constructor for class org.springframework.restdocs.headers.ResponseHeadersSnippet
-
Creates a new
ResponseHeadersSnippetthat will document the headers in the response using the givendescriptors. - RestDocumentationConfigurer<S,
P, - Class in org.springframework.restdocs.configT> -
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
-
RestDocumentationContextencapsulates the context in which the documentation of a RESTful API is being performed. - RestDocumentationContextPlaceholderResolver - Class in org.springframework.restdocs.snippet
-
A
PropertyPlaceholderHelper.PlaceholderResolverthat 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
PlaceholderResolverFactorythat createsRestDocumentationContextPlaceholderResolverinstances. - RestDocumentationContextPlaceholderResolverFactory() - Constructor for class org.springframework.restdocs.snippet.RestDocumentationContextPlaceholderResolverFactory
- RestDocumentationContextProvider - Interface in org.springframework.restdocs
-
A
RestDocumentationContextProvideris used to provide access to theRestDocumentationContext. - RestDocumentationExtension - Class in org.springframework.restdocs
-
A JUnit Jupiter
Extensionused to automatically manage theRestDocumentationContext. - RestDocumentationExtension() - Constructor for class org.springframework.restdocs.RestDocumentationExtension
-
Creates a new
RestDocumentationExtensionthat will use the default output directory. - RestDocumentationExtension(String) - Constructor for class org.springframework.restdocs.RestDocumentationExtension
-
Creates a new
RestDocumentationExtensionthat will use the givenoutputDirectory. - RestDocumentationGenerationException - Exception Class 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 class org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new
RestDocumentationExceptionwith the givenmessageandcause. - RestDocumentationGenerationException(Throwable) - Constructor for exception class org.springframework.restdocs.generate.RestDocumentationGenerationException
-
Creates a new
RestDocumentationExceptionwith the givencause. - RestDocumentationGenerator<REQ,
RESP> - Class in org.springframework.restdocs.generate -
A
RestDocumentationGeneratoris used to generate documentation snippets from the request and response of an operation performed on a service. - RestDocumentationGenerator(String, RequestConverter, ResponseConverter, OperationRequestPreprocessor, OperationResponsePreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGeneratorfor the operation identified by the givenidentifier. - RestDocumentationGenerator(String, RequestConverter, ResponseConverter, OperationRequestPreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGeneratorfor the operation identified by the givenidentifier. - RestDocumentationGenerator(String, RequestConverter, ResponseConverter, OperationResponsePreprocessor, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGeneratorfor the operation identified by the givenidentifier. - RestDocumentationGenerator(String, RequestConverter, ResponseConverter, Snippet...) - Constructor for class org.springframework.restdocs.generate.RestDocumentationGenerator
-
Creates a new
RestDocumentationGeneratorfor 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
nameto have the givenvalues. - singleLineFormat() - Static method in class org.springframework.restdocs.cli.CliDocumentation
-
Creates a new
CommandFormatterthat produces single-line output. - Snippet - Interface in org.springframework.restdocs.snippet
-
A
Snippetis 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
SnippetConfigurerwith the givenparent. - SnippetException - Exception Class in org.springframework.restdocs.snippet
-
A
RuntimeExceptionthrown to indicate a problem with the generation of a documentation snippet. - SnippetException(String) - Constructor for exception class org.springframework.restdocs.snippet.SnippetException
-
Creates a new
SnippetExceptiondescribed by the givenmessage. - snippets() - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Returns a
SnippetConfigurerthat 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) - 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
StandardTemplateResourceResolverthat 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
StandardWriterResolverthat will use aPropertyPlaceholderHelper.PlaceholderResolvercreated from the givenplaceholderResolverFactoryto 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
SubsectionDescriptordescribing the subsection with the givenpath. - subsectionWithPath(String) - Static method in class org.springframework.restdocs.payload.PayloadDocumentation
-
Creates a
FieldDescriptorthat 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
Templatethat can be rendered to aString. - TemplatedSnippet - Class in org.springframework.restdocs.snippet
- TemplatedSnippet(String, String, Map) - Constructor for class org.springframework.restdocs.snippet.TemplatedSnippet
-
Creates a new
TemplatedSnippetthat will produce a snippet with the givensnippetNameusing a template with the giventemplateName. - TemplatedSnippet(String, Map) - Constructor for class org.springframework.restdocs.snippet.TemplatedSnippet
-
Creates a new
TemplatedSnippetthat will produce a snippet with the givensnippetName. - templateEngine(TemplateEngine) - Method in class org.springframework.restdocs.config.RestDocumentationConfigurer
-
Configures the
TemplateEnginethat will be used for snippet rendering. - TemplateEngine - Interface in org.springframework.restdocs.templates
-
A
TemplateEngineis used to render documentation snippets. - TemplateFormat - Interface in org.springframework.restdocs.templates
-
A
TemplateFormatprovides 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
TemplateResourceResolveris responsible for resolving a name for a template into aResourcefrom 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
OperationPreprocessorthat 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
ConstraintResolverthat uses a Bean ValidationValidatorto resolve constraints. - ValidatorConstraintResolver() - Constructor for class org.springframework.restdocs.constraints.ValidatorConstraintResolver
-
Creates a new
ValidatorConstraintResolverthat will use aValidatorin its default configuration to resolve constraints. - ValidatorConstraintResolver(Validator) - Constructor for class org.springframework.restdocs.constraints.ValidatorConstraintResolver
-
Creates a new
ValidatorConstraintResolverthat will use the givenValidatorto 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, Set) - Method in class org.springframework.restdocs.cookies.AbstractCookiesSnippet
-
Called when the documented cookies do not match the actual cookies.
- verificationFailed(Set, Set) - Method in class org.springframework.restdocs.cookies.RequestCookiesSnippet
- verificationFailed(Set, Set) - Method in class org.springframework.restdocs.cookies.ResponseCookiesSnippet
- verificationFailed(Set, Set) - Method in class org.springframework.restdocs.request.AbstractParametersSnippet
-
Called when the documented parameters do not match the actual parameters.
- verificationFailed(Set, Set) - Method in class org.springframework.restdocs.request.FormParametersSnippet
- verificationFailed(Set, Set) - Method in class org.springframework.restdocs.request.PathParametersSnippet
- verificationFailed(Set, Set) - 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
RestDocumentationGeneratorwith 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
WriterResolverthat will be used to resolve a writer for a snippet. - WriterResolver - Interface in org.springframework.restdocs.snippet
-
A
WriterResolveris used to access theWriterthat 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