-
Notifications
You must be signed in to change notification settings - Fork 737
Description
Hi,
I find spring-restdocs very interesting and it's definitely something that I can see myself using when writing REST API documentation if I'm using Spring as backend. I'm developing a library called REST Assured that is similar to Spring MockMvc in the sense that you test your REST/HTTP API but REST Assured is for "end-to-end" testing and is thus issuing real HTTP requests (there's also a module for spring mockmvc though). I would really like to have a module for REST Assured that allows you to document the API in a similar fashion as spring-restdocs. I haven't look into the code in great detail but it seems to me that spring-restdocs is highly coupled to spring-test. This is understandable but I wonder if it would make sense to extract a "spring-restdocs-core" that is not coupled to spring-test? This way other libraries such as REST Assured could benefit from spring-restdocs as well. It also means that the scope of spring-restdocs is extended to include other types of tests such as end-to-end tests and thus the REST API documentation could be more "complete" (for example if you have both REST Assured tests and Spring MockMvc test for the same API).
What are your thoughts on this?
Regards,
/Johan