Modified the access to REST client in Api\FileSharing