FIBUdataServiceStack

<back to all web services

OnlinehandelDateienDownloadRequest

The following routes are available for this service:
GET, POST/fibuscan/Onlinehandel/OnlinehandelDateienDownload
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using FIBUdataServiceStack.ServiceModel.Messages;

namespace FIBUdataServiceStack.ServiceModel.Messages
{
    public partial class OnlinehandelDateienDownloadRequest
    {
        public OnlinehandelDateienDownloadRequest()
        {
            OnlinehandelDateien_ids = new List<long>{};
        }

        public virtual List<long> OnlinehandelDateien_ids { get; set; }
        public virtual bool mit_original_dateien { get; set; }
    }

    public partial class OnlinehandelDateienDownloadResponse
    {
        public OnlinehandelDateienDownloadResponse()
        {
            dateien_inhalte = new Dictionary<long, byte[]>{};
            original_dateien_inhalte = new Dictionary<long, byte[]>{};
        }

        public virtual string error { get; set; }
        public virtual bool result { get; set; }
        public virtual Dictionary<long, byte[]> dateien_inhalte { get; set; }
        public virtual Dictionary<long, byte[]> original_dateien_inhalte { get; set; }
    }

}

C# OnlinehandelDateienDownloadRequest 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.

POST /fibuscan/Onlinehandel/OnlinehandelDateienDownload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"OnlinehandelDateien_ids":[0],"mit_original_dateien":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"error":"String","result":false,"dateien_inhalte":{"0":"AA=="},"original_dateien_inhalte":{"0":"AA=="}}