Class MockMvcRestDocumentation

java.lang.Object
org.springframework.restdocs.mockmvc.MockMvcRestDocumentation

public abstract class MockMvcRestDocumentation extends Object
Static factory methods for documenting RESTful APIs using Spring MVC Test.
Author:
Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    document(String identifier, org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor requestPreprocessor, org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor responsePreprocessor, org.springframework.restdocs.snippet.Snippet... snippets)
    Documents the API call with the given identifier using the given snippets in addition to any default snippets.
    document(String identifier, org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor requestPreprocessor, org.springframework.restdocs.snippet.Snippet... snippets)
    Documents the API call with the given identifier using the given snippets in addition to any default snippets.
    document(String identifier, org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor responsePreprocessor, org.springframework.restdocs.snippet.Snippet... snippets)
    Documents the API call with the given identifier using the given snippets in addition to any default snippets.
    document(String identifier, org.springframework.restdocs.snippet.Snippet... snippets)
    Documents the API call with the given identifier using the given snippets in addition to any default snippets.
    documentationConfiguration(org.springframework.restdocs.RestDocumentationContextProvider contextProvider)
    Provides access to a MockMvcConfigurer that can be used to configure a MockMvc instance using the given contextProvider.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait