using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using IDB.API.DTO.Outlook.CRM;
namespace IDB.API.DTO.Outlook.CRM
{
///<summary>
///Get a list of CustomerQuery which are used for Outlook exports
///</summary>
public partial class GetCustomerQuery
{
public GetCustomerQuery()
{
Query = new Dictionary<int, string>{};
}
public virtual Dictionary<int, string> Query { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/GetCustomerQuery HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Query":{"0":"String"}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Query":{"0":"String"}}