Changing name of data to Resource as Rest call it resource