wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

Add support for @RestController annotation #35

Closed szpak closed 10 years ago

szpak commented 10 years ago

Spring 4.0 adds the new @RestController which could be supported: http://docs.spring.io/spring/docs/4.0.0.RELEASE/javadoc-api/org/springframework/web/bind/annotation/RestController.html

xianlinbox commented 10 years ago

I just want to add this enhancement...

seawatts commented 10 years ago

+1

wkennedy commented 10 years ago

Cool, I'll work on this next.

drm4652 commented 10 years ago

+1!

dirwin517 commented 10 years ago

+1

dirwin517 commented 10 years ago

Does more need to be done than add a line that accepts RestController.Class

https://github.com/wkennedy/swagger4spring-web/blob/master/src/main/java/com/knappsack/swagger4springweb/parser/ApiParserImpl.java#L84-84

wkennedy commented 10 years ago

This feature has been added to Master. Will be released in 0.3.3.