Updated apiCaller so that it uses relative api url