views:

591

answers:

2

How to automatically generate API documentation for Rails REST controller?

Is there any example I can look into using RDoc to do this?

A: 

You don't understand what REST is. The only URI in your API documentation for a RESTful service should be the entry point. Everything else is communicated through hypertext. If not, then your service is not REST and should not be called as such.

See this article by Roy Fielding, the creator of REST.

Wahnfrieden