Improve the get apiName and method func