adding api class