Closed synFK closed 9 months ago
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.
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.
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.