Package org.springframework.restdocs.operation.preprocess
package org.springframework.restdocs.operation.preprocess
Support for preprocessing an operation prior to it being documented.
-
ClassDescriptionA
ContentModifiermodifies the content of anOperationRequestorOperationResponseduring the preprocessing that is performed prior to documentation generation.AnOperationPreprocessorthat applies aContentModifierto the content of the request or response.AnOperationPreprocessorthat modifies a request or response by adding, setting, or removing headers.AnOperationPreprocessorprocesses theOperationRequestandOperationResponseof anOperationprior to it being documented.An implementation ofOperationPreprocessorthat returns the request and response as-is.AnOperationRequestPreprocessoris used to modify anOperationRequestprior to it being documented.AnOperationResponsePreprocessoris used to modify anOperationResponseprior to it being documented.AnOperationPreprocessorthat can be used to modify a request'sOperationRequest.getParameters()by adding, setting, and removing parameters.Static factory methods for creatingOperationPreprocessorsthat can be applied to anOperation'srequestorresponsebefore it is documented.AContentModifierthat modifies the content by pretty printing it.AnOperationPreprocessorthat modifies URIs in the request and in the response by changing one or more of their host, scheme, and port.