generates base api doc