@Path(value="/attachment/{domainUid}")
public interface IAttachment
IFileHosting to share mail attachments
by replacing them with a link| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Retrieves the configuration
|
AttachedFile |
share(java.lang.String name,
Stream document)
Share a mail attachment
|
AttachedFile |
shareDedup(java.lang.String extension,
Stream document)
Share a mail attachment.
|
void |
unShare(java.lang.String url)
Deactivate a link to a shared file
|
@PUT
@Path(value="{name}/share")
AttachedFile share(@PathParam(value="name")
java.lang.String name,
Stream document)
throws ServerFault
name - the filenamedocument - Stream of the file dataAttachedFile containg informations about the shared fileServerFault - common error object@PUT
@Path(value="{extension}/share_dedup")
AttachedFile shareDedup(@PathParam(value="extension")
java.lang.String extension,
Stream document)
throws ServerFault
extension - the extension to use for the file (eg. 'png')document - Stream of the file dataAttachedFile containg informations about the shared fileServerFault - common error object@DELETE
@Path(value="{url}/unshare")
void unShare(@PathParam(value="url")
java.lang.String url)
throws ServerFault
url - Link to the shared fileServerFault - common error object@GET @Path(value="_config") Configuration getConfiguration() throws ServerFault
ServerFault - common error objectCopyright © 2022. All Rights Reserved.