Generator for api doc