Coder of Salvation™   — programming / opensource / console / minimal

Bashscript to document REST api

Problem

Sometimes projects are too tiny for fullblown offline docgenerators (doxygen/phpdoc(tor)) or online services like (I/O mashable or Apigee).

Solution

I was in a creative mood..and made this shellscript which scans php-files for certain REST-related commenttags, and turns it into html.

It's kind of a minimalist startingpoint to get any type of custom documentation generated from sourcecode.

Conclusion

Definately a quickndirty one, but it works for me at least. Its really easy to create/generate/update REST-documentation like this. All information is a central place: the sourcecode. Also its easy to create a pdf-handout for this: just rightclick in your browser -> print -> toPDF. Just keep it in mind as a handy script to include in your doc/buildchain.

Download



comments powered by Disqus


All rights reserved by Leon van Kammen under this license