Class RestAssuredRestDocumentationConfigurer
java.lang.Object
org.springframework.restdocs.config.RestDocumentationConfigurer<RestAssuredSnippetConfigurer,RestAssuredOperationPreprocessorsConfigurer,RestAssuredRestDocumentationConfigurer>
org.springframework.restdocs.restassured.RestAssuredRestDocumentationConfigurer
- All Implemented Interfaces:
io.restassured.filter.Filter
public final class RestAssuredRestDocumentationConfigurer
extends RestDocumentationConfigurer<RestAssuredSnippetConfigurer,RestAssuredOperationPreprocessorsConfigurer,RestAssuredRestDocumentationConfigurer>
implements io.restassured.filter.Filter
A REST Assured-specific
RestDocumentationConfigurer
.- Since:
- 1.2.0
- Author:
- Andy Wilkinson, Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionio.restassured.response.Response
filter
(io.restassured.specification.FilterableRequestSpecification requestSpec, io.restassured.specification.FilterableResponseSpecification responseSpec, io.restassured.filter.FilterContext filterContext) Returns anOperationPreprocessorsConfigurer
that can be used to configure the operation request and response preprocessors that will be used.snippets()
Returns aSnippetConfigurer
that can be used to configure the snippets that will be generated.Methods inherited from class org.springframework.restdocs.config.RestDocumentationConfigurer
apply, templateEngine, writerResolver
-
Method Details
-
snippets
Description copied from class:RestDocumentationConfigurer
Returns aSnippetConfigurer
that can be used to configure the snippets that will be generated.- Specified by:
snippets
in classRestDocumentationConfigurer<RestAssuredSnippetConfigurer,
RestAssuredOperationPreprocessorsConfigurer, RestAssuredRestDocumentationConfigurer> - Returns:
- the snippet configurer
-
operationPreprocessors
Description copied from class:RestDocumentationConfigurer
Returns anOperationPreprocessorsConfigurer
that can be used to configure the operation request and response preprocessors that will be used.- Specified by:
operationPreprocessors
in classRestDocumentationConfigurer<RestAssuredSnippetConfigurer,
RestAssuredOperationPreprocessorsConfigurer, RestAssuredRestDocumentationConfigurer> - Returns:
- the operation preprocessors configurer
-
filter
public io.restassured.response.Response filter(io.restassured.specification.FilterableRequestSpecification requestSpec, io.restassured.specification.FilterableResponseSpecification responseSpec, io.restassured.filter.FilterContext filterContext) - Specified by:
filter
in interfaceio.restassured.filter.Filter
-