replace underscore in getApiMethods function