DigiOffice Gateway Web Services

<back to all web services

AddFile

Requires Authentication
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class AddFile
    {
        public String Link = null;
        public UUID BlobID = null;
        public Integer Size = null;
        public Boolean IsAttachment = null;
        public Boolean Data = null;
        public Boolean OCR = null;
        public Boolean Preview = null;
        public String Type = null;
        public Date DateTimeLastModified = null;
        public Integer MetricHeight = null;
        public Integer MetricWidth = null;
        public UUID DocumentID = null;
        public String OriginalFileName = null;
        
        public String getLink() { return Link; }
        public AddFile setLink(String value) { this.Link = value; return this; }
        public UUID getBlobID() { return BlobID; }
        public AddFile setBlobID(UUID value) { this.BlobID = value; return this; }
        public Integer getSize() { return Size; }
        public AddFile setSize(Integer value) { this.Size = value; return this; }
        public Boolean getIsAttachment() { return IsAttachment; }
        public AddFile setIsAttachment(Boolean value) { this.IsAttachment = value; return this; }
        public Boolean isData() { return Data; }
        public AddFile setData(Boolean value) { this.Data = value; return this; }
        public Boolean isOcr() { return OCR; }
        public AddFile setOcr(Boolean value) { this.OCR = value; return this; }
        public Boolean isPreview() { return Preview; }
        public AddFile setPreview(Boolean value) { this.Preview = value; return this; }
        public String getType() { return Type; }
        public AddFile setType(String value) { this.Type = value; return this; }
        public Date getDateTimeLastModified() { return DateTimeLastModified; }
        public AddFile setDateTimeLastModified(Date value) { this.DateTimeLastModified = value; return this; }
        public Integer getMetricHeight() { return MetricHeight; }
        public AddFile setMetricHeight(Integer value) { this.MetricHeight = value; return this; }
        public Integer getMetricWidth() { return MetricWidth; }
        public AddFile setMetricWidth(Integer value) { this.MetricWidth = value; return this; }
        public UUID getDocumentID() { return DocumentID; }
        public AddFile setDocumentID(UUID value) { this.DocumentID = value; return this; }
        public String getOriginalFileName() { return OriginalFileName; }
        public AddFile setOriginalFileName(String value) { this.OriginalFileName = value; return this; }
    }

    public static class AddFileResponse
    {
        public UUID FileID = null;
        
        public UUID getFileID() { return FileID; }
        public AddFileResponse setFileID(UUID value) { this.FileID = value; return this; }
    }

}

Java AddFile DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/AddFile HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Link: String,
	BlobID: 00000000-0000-0000-0000-000000000000,
	Size: 0,
	IsAttachment: False,
	Data: False,
	OCR: False,
	Preview: False,
	Type: String,
	DateTimeLastModified: 0001-01-01,
	MetricHeight: 0,
	MetricWidth: 0,
	DocumentID: 00000000-0000-0000-0000-000000000000,
	OriginalFileName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}