DigiOffice Gateway Web Services

<back to all web services

GetAttachmentsFromTempLink

The following routes are available for this service:
GET/api/attachmentsfromtemplink/{GeneratedZipKey}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetAttachmentsFromTempLink
    {
        public String GeneratedZipKey = null;
        
        public String getGeneratedZipKey() { return GeneratedZipKey; }
        public GetAttachmentsFromTempLink setGeneratedZipKey(String value) { this.GeneratedZipKey = value; return this; }
    }

    public static interface IHttpResult
    {
        public Integer Status = null;
        public HttpStatusCode StatusCode = null;
        public String StatusDescription = null;
        public String ContentType = null;
        public HashMap<String,String> Headers = null;
        public ArrayList<Cookie> Cookies = null;
        public Object Response = null;
        public IContentTypeWriter ResponseFilter = null;
        public IRequest RequestContext = null;
        public Integer PaddingLength = null;
        public Func<IDisposable> ResultScope = null;
    }

    public static interface IContentTypeWriter
    {
    }

    public static interface IRequest
    {
        public Object OriginalRequest = null;
        public IResponse Response = null;
        public String OperationName = null;
        public String Verb = null;
        public RequestAttributes RequestAttributes = null;
        public IRequestPreferences RequestPreferences = null;
        public Object Dto = null;
        public String ContentType = null;
        public Boolean IsLocal = null;
        public String UserAgent = null;
        public HashMap<String,Cookie> Cookies = null;
        public String ResponseContentType = null;
        public Boolean HasExplicitResponseContentType = null;
        public HashMap<String,Object> Items = null;
        public NameValueCollection Headers = null;
        public NameValueCollection QueryString = null;
        public NameValueCollection FormData = null;
        public Boolean UseBufferedStream = null;
        public String RawUrl = null;
        public String AbsoluteUri = null;
        public String UserHostAddress = null;
        public String RemoteIp = null;
        public String Authorization = null;
        public Boolean IsSecureConnection = null;
        public ArrayList<String> AcceptTypes = null;
        public String PathInfo = null;
        public String OriginalPathInfo = null;
        public InputStream InputStream = null;
        public Long ContentLength = null;
        public ArrayList<IHttpFile> Files = null;
        public Uri UrlReferrer = null;
    }

    public static interface IResponse
    {
        public Object OriginalResponse = null;
        public IRequest Request = null;
        public Integer StatusCode = null;
        public String StatusDescription = null;
        public String ContentType = null;
        public InputStream OutputStream = null;
        public Object Dto = null;
        public Boolean UseBufferedStream = null;
        public Boolean IsClosed = null;
        public Boolean KeepAlive = null;
        public Boolean HasStarted = null;
        public HashMap<String,Object> Items = null;
    }

    @Flags()
    public static enum RequestAttributes
    {
        @SerializedName("0") None(0),
        @SerializedName("1") Localhost(1),
        @SerializedName("2") LocalSubnet(2),
        @SerializedName("4") External(4),
        @SerializedName("8") Secure(8),
        @SerializedName("16") InSecure(16),
        @SerializedName("24") AnySecurityMode(24),
        @SerializedName("32") HttpHead(32),
        @SerializedName("64") HttpGet(64),
        @SerializedName("128") HttpPost(128),
        @SerializedName("256") HttpPut(256),
        @SerializedName("512") HttpDelete(512),
        @SerializedName("1024") HttpPatch(1024),
        @SerializedName("2048") HttpOptions(2048),
        @SerializedName("4096") HttpOther(4096),
        @SerializedName("8160") AnyHttpMethod(8160),
        @SerializedName("8192") OneWay(8192),
        @SerializedName("16384") Reply(16384),
        @SerializedName("24576") AnyCallStyle(24576),
        @SerializedName("32768") Soap11(32768),
        @SerializedName("65536") Soap12(65536),
        @SerializedName("131072") Xml(131072),
        @SerializedName("262144") Json(262144),
        @SerializedName("524288") Jsv(524288),
        @SerializedName("1048576") ProtoBuf(1048576),
        @SerializedName("2097152") Csv(2097152),
        @SerializedName("4194304") Html(4194304),
        @SerializedName("8388608") Wire(8388608),
        @SerializedName("16777216") MsgPack(16777216),
        @SerializedName("33554432") FormatOther(33554432),
        @SerializedName("67076096") AnyFormat(67076096),
        @SerializedName("67108864") Http(67108864),
        @SerializedName("134217728") MessageQueue(134217728),
        @SerializedName("268435456") Tcp(268435456),
        @SerializedName("536870912") Grpc(536870912),
        @SerializedName("1073741824") EndpointOther(1073741824),
        @SerializedName("2080374784") AnyEndpoint(2080374784),
        @SerializedName("-2147483648") InProcess(-2147483648),
        @SerializedName("-2147483645") InternalNetworkAccess(-2147483645),
        @SerializedName("-2147483641") AnyNetworkAccessType(-2147483641),
        @SerializedName("-1") Any(-1);

        private final int value;
        RequestAttributes(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static interface IRequestPreferences
    {
        public Boolean AcceptsBrotli = null;
        public Boolean AcceptsDeflate = null;
        public Boolean AcceptsGzip = null;
    }

    public static interface IHttpFile
    {
        public String Name = null;
        public String FileName = null;
        public Long ContentLength = null;
        public String ContentType = null;
        public InputStream InputStream = null;
    }

}

Java GetAttachmentsFromTempLink DTOs

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

HTTP + CSV

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

GET /api/attachmentsfromtemplink/{GeneratedZipKey} HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'IHttpResult' using the custom 'csv' filter}Cannot create an instance of an interface.