public class RestDocumentationResultHandler extends Object implements ResultHandler
ResultHandler
for documenting RESTful APIs.MockMvcRestDocumentation.document(String, Snippet...)
Modifier and Type | Method and Description |
---|---|
void |
handle(MvcResult result) |
RestDocumentationResultHandler |
snippets(Snippet... snippets)
Adds the given
snippets such that that are documented when this result
handler is called. |
public void handle(MvcResult result) throws Exception
handle
in interface ResultHandler
Exception
public RestDocumentationResultHandler snippets(Snippet... snippets)
snippets
such that that are documented when this result
handler is called.snippets
- the snippets to addResultDocumentationResultHandler