spring-restdocs icon indicating copy to clipboard operation
spring-restdocs copied to clipboard

Add support for MockMvcWebTestClient

Open wilkinsona opened this issue 4 years ago • 1 comments

wilkinsona avatar Aug 25 '20 07:08 wilkinsona

For my use cases this works already pretty well when I set up the MockMvcWebTestClient with the filter. But I use only a small subset of RestDocs.

This is what I did:

this.client = MockMvcWebTestClient.bindTo(mockMvc).baseUrl("http://localhost")
                .filter(documentationConfiguration(restDocumentation))
                .build();

eiswind avatar Oct 17 '23 09:10 eiswind