This is a very simple example of how to get started with apidocJs for inline documentation for RESTful web APIs.
git clone https://github.com/Hanzig/apidocjs_sandbox.gitcd apidoc_examplenpm installmkdir apidocgrunt dev
Grunt is watching files in server/. So, modifying routes.js, for instance, will generate and update the documentation files in apidoc/. You can see the documentation generated by opening apidoc/index.html