api class fix requestMethod by broff