added beforeRequestInterceptors to allow modifying resource instance before requst