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

Add support for Spring Data REST

Open synFK opened this issue 5 years ago • 2 comments

Using Spring Data REST leaves us with no actual RestController (even though repository and entity classes are still there). Currently Spring Auto Rest Docs does not find any endpoints to examine, so generates empty snippets.

synFK avatar Aug 20 '20 13:08 synFK

Hi @synFK, does classic Spring Rest Docs work with Spring Data REST? If so, we can take a look what is the problem. If not, there is not much we can do, as SARD is just an extension of SRD.

jmisur avatar Aug 21 '20 13:08 jmisur

Yes, classic Spring RestDocs does work with Spring Data REST because the time the documentation is generated (testing phase) the REST controllers are already auto-generated. So the embedded Tomcat is able to access the resources. But I am afraid this won't help you much, because you can not easily access the auto-generated controllers of Spring Data REST. This is kind of a wild guess, maybe/hopefully you can disabuse me.

synFK avatar Aug 21 '20 13:08 synFK