List of usage examples for org.springframework.restdocs.generate RestDocumentationGenerator RestDocumentationGenerator
public RestDocumentationGenerator(String identifier, RequestConverter<REQ> requestConverter,
ResponseConverter<RESP> responseConverter, OperationRequestPreprocessor requestPreprocessor,
OperationResponsePreprocessor responsePreprocessor, Snippet... snippets)
From source file:io.github.restdocsext.jersey.JerseyRestDocumentation.java
/** * Documents the API call with the given {@code identifier} using the given {@code snippets} in * addition to any default snippets. The given {@code requestPreprocessor} and * {@code responsePreprocessor} are applied to the request and response respectively before they * are documented./*from w w w .j a va 2 s . com*/ * * @param identifier an identifier for the API call that is being documented * @param requestPreprocessor the request preprocessor * @param responsePreprocessor the response preprocessor * @param snippets the snippets * @return a {@link JerseyRestDocumentationFilter} that will produce the documentation */ public static JerseyRestDocumentationFilter document(String identifier, OperationRequestPreprocessor requestPreprocessor, OperationResponsePreprocessor responsePreprocessor, Snippet... snippets) { return new JerseyRestDocumentationFilter(new RestDocumentationGenerator<>(identifier, REQUEST_CONVERTER, RESPONSE_CONVERTER, requestPreprocessor, responsePreprocessor, snippets)); }