richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
750 stars 150 forks source link

Refactor write_docs to split the documentation generation from file writing #45

Closed ldnunes closed 10 years ago

ldnunes commented 10 years ago

Splitting the data generation from persistence allows it to be accessed without having to read from the file system, like for example a special Rails controller action that calls the generation method and outputs the JSON. Also, should make it easier to maintain it.

richhollis commented 10 years ago

Hey Lucas - you totally read my mind on this! Thanks for this and all your other PRs. Awesome stuff.