Top "Spring-restdocs" questions

Spring REST Docs takes a test-driven approach to documenting RESTful APIs.

HttpRequestMethodNotSupportedException: Request method 'POST' not supported

Creating a unit test with MockMvc I am running into: HttpRequestMethodNotSupportedException: Request method 'POST' not supported Which causes the test …

spring spring-mvc junit mockmvc spring-restdocs
What is the benefit of using Spring REST Docs comparing to Swagger

Spring REST Docs was released recently and the documentation says: This approach frees you from the limitations imposed by tools …

api rest compare swagger spring-restdocs
Spring MockMvc test: Null pointer Exception

I'm following tutorials for integrating Spring docs into my project but i'm running into nullpointerexception when I run my test. …

spring-mvc nullpointerexception mockmvc spring-restdocs
java.lang.AssertionError: Status expected:<200> but was:<404> in Junit test

I want to create JUnit test for Rest api and generate api doc. I want to test this code: Rest …

java spring spring-boot junit5 spring-restdocs
How to document top-level array as response payload with Spring REST Docs

I am using Spring REST Docs to document a REST API. I'm trying to document the following API operations: GET /…

java json spring rest spring-restdocs