public FileUrl getShare(String path) {
return getRestTemplate().getForObject(SHARES_URL, FileUrl.class, appFolderUrl, path);
}
public Metadata putFile(String path, byte[] file) {
UriTemplate uriTemplate = new UriTemplate(FILE_PUT_URL);
URI uri = uriTemplate.expand(appFolderUrl, path);
try {
ClientHttpRequest request = getRestTemplate().getRequestFactory().createRequest(uri, HttpMethod.PUT);
request.getBody().write(file);