Auto generate doc for RESTful API
I think it should be possible to auto generate docs for RESTFul API.
We know what's the routers are, what's the params of the controller functions are, so we should be able to do it.
Another web framework beego has supported it. It will be cool if I could use this feature in revel.
Thanks.
want this feature too:)
I agree. Let's look into this for v0.11.
me also
As a simple start, I have made a controller that returns all routes and documentation for all controllers and models in your application:
http://pastebin.com/6Rbb7mc5
With this info, it should be fairly easy to cook up an Angular page that parses and display this information. You may of course have some secret stuff you don't want exposed, so you may want to filter that.
Models should be linkable to relevant godoc
I am well into this.. as reverse Gen of the docs.. ;-))))))))))))
Related to #779
This generator https://github.com/yvasiyarov/swagger looks like it can do this