What's the best way to generate an API reference document using a Rails routes.rb file?

Posted by RNHurt on Stack Overflow See other posts from Stack Overflow or by RNHurt
Published on 2011-01-03T19:50:42Z Indexed on 2011/01/03 20:54 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

I am trying to document the API for my Rails application and I can't help but wonder if there is a better way to generate an XML file based on my routes.rb file. I'm envisioning something similar to the output of rake routes but in a more friendly, XML type format. Corey has some interesting ideas about using reflection/introspection on the routes file here but it's not quite what I need.

Please tell me this is a solved problem and I'm not the first one to think of this. :)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about api