update apidoc generator for view/option; detects roles on generation instead of automatically outputting from cache