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.
Documenting the cookies of a RESTful API's requests and responses.
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 TypeClassDescriptionclassASnippetthat documents the curl command for a request.classASnippetthat documents the HTTPie command for a request.Methods in org.springframework.restdocs.cli that return SnippetModifier and TypeMethodDescriptionstatic SnippetCliDocumentation.curlRequest()Returns a newSnippetthat will document the curl request for the API operation.static SnippetCliDocumentation.curlRequest(Map<String, Object> attributes) Returns a newSnippetthat will document the curl request for the API operation.static SnippetCliDocumentation.curlRequest(Map<String, Object> attributes, CommandFormatter commandFormatter) Returns a newSnippetthat will document the curl request for the API operation.static SnippetCliDocumentation.curlRequest(CommandFormatter commandFormatter) Returns a newSnippetthat will document the curl request for the API operation.static SnippetCliDocumentation.httpieRequest()Returns a newSnippetthat will document the HTTPie request for the API operation.static SnippetCliDocumentation.httpieRequest(Map<String, Object> attributes) Returns a newSnippetthat will document the HTTPie request for the API operation.static SnippetCliDocumentation.httpieRequest(Map<String, Object> attributes, CommandFormatter commandFormatter) Returns a newSnippetthat will document the HTTPie request for the API operation.static SnippetCliDocumentation.httpieRequest(CommandFormatter commandFormatter) Returns a newSnippetthat 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.cookies
Classes in org.springframework.restdocs.cookies that implement SnippetModifier and TypeClassDescriptionclassAbstractTemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response cookies.classASnippetthat documents the cookies in a request.classASnippetthat documents the cookies in a response. -
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 newRestDocumentationGeneratorwith 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 newRestDocumentationGeneratorfor the operation identified by the givenidentifier.RestDocumentationGenerator(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Creates a newRestDocumentationGeneratorfor the operation identified by the givenidentifier.RestDocumentationGenerator(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Creates a newRestDocumentationGeneratorfor the operation identified by the givenidentifier.RestDocumentationGenerator(String identifier, RequestConverter<REQ> requestConverter, ResponseConverter<RESP> responseConverter, Snippet... snippets) Creates a newRestDocumentationGeneratorfor the operation identified by the givenidentifier. -
Uses of Snippet in org.springframework.restdocs.headers
Classes in org.springframework.restdocs.headers that implement SnippetModifier and TypeClassDescriptionclassAbstractTemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response headers.classASnippetthat documents the headers in a request.classASnippetthat 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 givenidentifierusing the givensnippetsin addition to any default snippets.MockMvcRestDocumentation.document(String identifier, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.MockMvcRestDocumentation.document(String identifier, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.Creates a newRestDocumentationResultHandlerto 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 TypeClassDescriptionclassAbstractTemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response body.classAbstractTemplatedSnippetsubclass that provides a base for snippets that document a RESTful resource's request or response fields.classASnippetthat documents the body of a request.classASnippetthat documents the fields in a request.classASnippetthat documents the body of a request part.classASnippetthat documents the fields in a request part.classASnippetthat documents the body of a response.classASnippetthat documents the fields in a response. -
Uses of Snippet in org.springframework.restdocs.request
Classes in org.springframework.restdocs.request that implement SnippetModifier and TypeClassDescriptionclassAbstractTemplatedSnippetsubclass that provides a base for snippets that document parameters from a request sent to a RESTful resource.classASnippetthat documents the form parameters supported by a RESTful resource.classASnippetthat documents the path parameters supported by a RESTful resource.classASnippetthat documents the query parameters supported by a RESTful resource.classASnippetthat 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 RestDocumentationFilterRestAssuredRestDocumentation.document(String identifier, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.static RestDocumentationFilterRestAssuredRestDocumentation.document(String identifier, OperationRequestPreprocessor requestPreprocessor, Snippet... snippets) Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.static RestDocumentationFilterRestAssuredRestDocumentation.document(String identifier, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) Documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.static RestDocumentationFilterDocuments the API call with the givenidentifierusing the givensnippets.final RestDocumentationFilterCreates a newRestDocumentationFilterthat 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 givenidentifierusing the givensnippetsin 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 givenidentifierusing the givensnippetsin 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 givenidentifierusing the givensnippetsin addition to any default snippets.static <T extends org.springframework.test.web.reactive.server.ExchangeResult>
Consumer<T>Returns aConsumerthat, when called, documents the API call with the givenidentifierusing the givensnippetsin addition to any default snippets.