Uses of Interface
org.springframework.restdocs.snippet.Snippet
Packages that use 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
Classes in org.springframework.restdocs.cli that implement SnippetModifier and TypeClassDescriptionclass
ASnippet
that documents the curl command for a request.class
ASnippet
that documents the HTTPie command for a request.Methods in org.springframework.restdocs.cli that return SnippetModifier 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
Methods in org.springframework.restdocs.config with parameters of type SnippetModifier 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
Methods in org.springframework.restdocs.generate with parameters of type SnippetModifier and TypeMethodDescriptionRestDocumentationGenerator.withSnippets
(Snippet... snippets) Creates a newRestDocumentationGenerator
with the same configuration as this one other than its snippets.Constructors in org.springframework.restdocs.generate with parameters of type SnippetModifierConstructorDescriptionRestDocumentationGenerator
(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
Classes in org.springframework.restdocs.headers that implement SnippetModifier 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
Classes in org.springframework.restdocs.http that implement Snippet -
Uses of Snippet in org.springframework.restdocs.hypermedia
Classes in org.springframework.restdocs.hypermedia that implement Snippet -
Uses of Snippet in org.springframework.restdocs.mockmvc
Methods in org.springframework.restdocs.mockmvc with parameters of type SnippetModifier 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
Classes in org.springframework.restdocs.payload that implement SnippetModifier 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
Classes in org.springframework.restdocs.request that implement SnippetModifier 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
Methods in org.springframework.restdocs.restassured with parameters of type SnippetModifier 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
Classes in org.springframework.restdocs.snippet that implement SnippetModifier and TypeClassDescriptionclass
-
Uses of Snippet in org.springframework.restdocs.webtestclient
Methods in org.springframework.restdocs.webtestclient with parameters of type SnippetModifier 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.