Adding debug callbacks for all REST calls