template apidoc
extensions refactoring & apidoc