fabiomaffioletti / jsondoc

Easily generate docs and playground for your RESTful API
http://jsondoc.org
MIT License
264 stars 127 forks source link

WebSocket Support: methods annotated @MessageMapping / @SubscribeMapping #227

Open joffrey-bion opened 7 years ago

joffrey-bion commented 7 years ago

As of now, it seems the Spring4JsonDocScanner only reads methods annotated @RequestMapping, which prevents the use of JsonDoc for websocket-based applications.

At first glance, it doesn't look like there would be any problem to also consider methods annotated @MessageMapping and @SubscribeMapping. Would you see any issue regarding this?

As a side-issue, I tried to use my own implementation of JSONDocScanner, but I found no way to plug it in the existing JsonDocController. Do you know how I could proceed? It looks like I have to define my own controller to do so.