wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

SpringDataRest #58

Open vivekpandian opened 10 years ago

vivekpandian commented 10 years ago

The Current Version doesn't work well with SpringDataRest. Any plans to support SpringDataRest ?

wkennedy commented 10 years ago

I haven't even thought about getting it to work with Spring Data REST. Are you attempting to use Swagger annotations in your classes or just rely on Spring's annotations?

vivekpandian commented 10 years ago

In SpringDataRest, there are no annotations to expose Rest endpoints. By Default, it exposes all the entities which have a Repository as Rest endpoint. How it works is there is a generic endpoint something like /context/{Resource}/{id}. When you request for /context/Books/{id}, findById is called for the BooksRepository. All these is done internally by a DispatcherServlet.

wkennedy commented 10 years ago

This might be possible to do without too much refactoring. I'll take a look at it.

vivekpandian commented 10 years ago

Thanks a lot. Let me know, if you need any clarifications/ questions related to SpringDataRest.

TheLouisHong commented 10 years ago

is this implemented yet?