check api is working or not