clarified how Controller_Rest determines the return format