| All Verbs | /qry/app-events-summary |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Betting.WebApi.ServiceModel;
using Starnet.Common;
using Betting.ReadModel;
namespace Betting.ReadModel
{
public partial class EventsSummary
{
public virtual int N { get; set; }
public virtual int S { get; set; }
public virtual int I { get; set; }
public virtual int W { get; set; }
public virtual int E { get; set; }
}
}
namespace Betting.WebApi.ServiceModel
{
public partial class FindAppEventsSummary
: PaginatedQueryRequest
{
}
}
namespace Starnet.Common
{
public partial class PaginatedQueryRequest
: QueryRequest
{
public virtual int CurrentPage { get; set; }
public virtual int PageSize { get; set; }
}
public partial class QueryRequest
{
public virtual Dictionary<string, string> Qry { get; set; } = new();
}
}
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 /qry/app-events-summary HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"currentPage":0,"pageSize":0,"qry":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"n":0,"s":0,"i":0,"w":0,"e":0}