Uses of Interface
org.springframework.restdocs.snippet.Snippet
Package
Description
Documenting CLI commands required to make a request to a RESTful API.
Classes for configuring Spring REST Docs.
Classes that drive the generation of the documentation snippets.
Documenting the headers of a RESTful API's requests and responses.
Documenting the HTTP request sent to a RESTful API and the HTTP response that is
returned.
Documenting a RESTful API that uses hypermedia.
Core classes for using Spring REST Docs with Spring Test's MockMvc.
Documenting the payload of a RESTful API's requests and responses.
Documenting query and path parameters of requests sent to a RESTful API.
Core classes for using Spring REST Docs with REST Assured.
Snippet generation.
Core classes for using Spring REST Docs with Spring Framework's WebTestClient.
-
Uses of Snippet in org.springframework.restdocs.cli
Modifier and TypeClassDescriptionclass
ASnippet
that documents the curl command for a request.class
ASnippet
that documents the HTTPie command for a request.Modifier and TypeMethodDescriptionstatic Snippet
CliDocumentation.curlRequest()
Returns a newSnippet
that will document the curl request for the API operation.static Snippet
CliDocumentation.curlRequest
(Map<String, Object> attributes) Returns a newSnippet
that will document the curl request for the API operation.static Snippet
CliDocumentation.curlRequest
(Map<String, Object> attributes, CommandFormatter commandFormatter) Returns a newSnippet
that will document the curl request for the API operation.static Snippet
CliDocumentation.curlRequest
(CommandFormatter commandFormatter) Returns a newSnippet
that will document the curl request for the API operation.static Snippet
CliDocumentation.httpieRequest()
Returns a newSnippet
that will document the HTTPie request for the API operation.static Snippet
CliDocumentation.httpieRequest
(Map<String, Object> attributes) Returns a newSnippet
that will document the HTTPie request for the API operation.static Snippet
CliDocumentation.httpieRequest
(Map<String, Object> attributes, CommandFormatter commandFormatter) Returns a newSnippet
that will document the HTTPie request for the API operation.static Snippet
CliDocumentation.httpieRequest
(CommandFormatter commandFormatter) Returns a newSnippet
that will document the HTTPie request for the API operation. -
Uses of Snippet in org.springframework.restdocs.config
Modifier and TypeMethodDescriptionSnippetConfigurer.withAdditionalDefaults
(Snippet... additionalDefaultSnippets) Configures additional documentation snippets that will be produced by default.SnippetConfigurer.withDefaults
(Snippet... defaultSnippets) Configures the documentation snippets that will be produced by default. -
Uses of Snippet in org.springframework.restdocs.generate
Modifier and TypeMethodDescriptionRestDocumentationGenerator.withSnippets
(Snippet... snippets) Creates a newRestDocumentationGenerator
with the same configuration as this one other than its snippets.ModifierConstructorDescriptionRestDocumentationGenerator
(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Creates a newRestDocumentationGenerator
for the operation identified by the givenidentifier
.RestDocumentationGenerator
(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Creates a newRestDocumentationGenerator
for the operation identified by the givenidentifier
.RestDocumentationGenerator
(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Creates a newRestDocumentationGenerator
for the operation identified by the givenidentifier
.RestDocumentationGenerator
(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, Snippet... snippets) Creates a newRestDocumentationGenerator
for the operation identified by the givenidentifier
. -
Uses of Snippet in org.springframework.restdocs.headers
Modifier and TypeClassDescriptionclass
AbstractTemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response headers.class
ASnippet
that documents the headers in a request.class
ASnippet
that documents the headers in a response. -
Uses of Snippet in org.springframework.restdocs.http
-
Uses of Snippet in org.springframework.restdocs.hypermedia
-
Uses of Snippet in org.springframework.restdocs.mockmvc
Modifier and TypeMethodDescriptionMockMvcRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.MockMvcRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.MockMvcRestDocumentation.document
(String identifier, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.Creates a newRestDocumentationResultHandler
to be passed intoResultActions.andDo(ResultHandler)
that will produce documentation using the givensnippets
. -
Uses of Snippet in org.springframework.restdocs.payload
Modifier and TypeClassDescriptionclass
AbstractTemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response body.class
AbstractTemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response fields.class
ASnippet
that documents the body of a request.class
ASnippet
that documents the fields in a request.class
ASnippet
that documents the body of a request part.class
ASnippet
that documents the fields in a request part.class
ASnippet
that documents the body of a response.class
ASnippet
that documents the fields in a response. -
Uses of Snippet in org.springframework.restdocs.request
Modifier and TypeClassDescriptionclass
AbstractTemplatedSnippet
subclass that provides a base for snippets that document parameters from a request sent to a RESTful resource.class
ASnippet
that documents the path parameters supported by a RESTful resource.class
ASnippet
that documents the request parameters supported by a RESTful resource.class
ASnippet
that documents the request parts supported by a RESTful resource. -
Uses of Snippet in org.springframework.restdocs.restassured
Modifier and TypeMethodDescriptionstatic RestDocumentationFilter
RestAssuredRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static RestDocumentationFilter
RestAssuredRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static RestDocumentationFilter
RestAssuredRestDocumentation.document
(String identifier, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static RestDocumentationFilter
Documents the API call with the givenidentifier
using the givensnippets
.final RestDocumentationFilter
Creates a newRestDocumentationFilter
that will produce documentation using the givensnippets
. -
Uses of Snippet in org.springframework.restdocs.snippet
Modifier and TypeClassDescriptionclass
-
Uses of Snippet in org.springframework.restdocs.webtestclient
Modifier and TypeMethodDescriptionstatic <T extends org.springframework.test.web.reactive.server.ExchangeResult>
Consumer<T>WebTestClientRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static <T extends org.springframework.test.web.reactive.server.ExchangeResult>
Consumer<T>WebTestClientRestDocumentation.document
(String identifier, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static <T extends org.springframework.test.web.reactive.server.ExchangeResult>
Consumer<T>WebTestClientRestDocumentation.document
(String identifier, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.static <T extends org.springframework.test.web.reactive.server.ExchangeResult>
Consumer<T>Returns aConsumer
that, when called, documents the API call with the givenidentifier
using the givensnippets
in addition to any default snippets.