api:ext: support generate api from rake commands