ScaCap / spring-auto-restdocs

Spring Auto REST Docs is an extension to Spring REST Docs
https://scacap.github.io/spring-auto-restdocs/
Apache License 2.0
310 stars 86 forks source link

Add support for Spring Data REST #407

Closed synFK closed 9 months ago

synFK commented 4 years ago

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.

jmisur commented 4 years 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.

synFK commented 4 years ago

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.