| All Verbs | /qry//metrics/e2e/slips/responses |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Betting.WebApi.ServiceModel
Imports Betting.Common
Imports Starnet.Common
Imports Betting.ReadModel.E2E.SlipRequestMetrics
Namespace Global
Namespace Betting.Common
Public Enum TimeResolution
Second = 1
Minute = 2
Hour = 5
Day = 10
End Enum
End Namespace
Namespace Betting.ReadModel.E2E.SlipRequestMetrics
Public Partial Class ResponseMetrics
Public Overridable Property Id As Long
Public Overridable Property Rqc As Integer
Public Overridable Property Oc As Integer
Public Overridable Property Sc As Integer
Public Overridable Property Tc As Integer
Public Overridable Property Adr As Integer
End Class
End Namespace
Namespace Betting.WebApi.ServiceModel
Public Partial Class FindResponseMetrics
Inherits PaginatedQuery
Public Overridable Property Resolution As TimeResolution
Public Overridable Property TimepointFrom As Long
Public Overridable Property TimepointTo As Long
End Class
Public Partial Class PaginatedQuery
Public Overridable Property CurrentPage As Integer
Public Overridable Property PageSize As Integer
End Class
End Namespace
Namespace Starnet.Common
Public Partial Class PaginatedResult(Of T)
Implements IPaginatedResult
Public Overridable Property Data As List(Of ResponseMetrics) = New List(Of ResponseMetrics)
Public Overridable Property CurrentPage As Long Implements IPaginatedResult.CurrentPage
Public Overridable Property PageSize As Long Implements IPaginatedResult.PageSize
Public Overridable Property TotalItems As Long Implements IPaginatedResult.TotalItems
Public Overridable Property TotalPages As Long Implements IPaginatedResult.TotalPages
End Class
End Namespace
End Namespace
VB.NET FindResponseMetrics DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry//metrics/e2e/slips/responses HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"resolution":1,"timepointFrom":0,"timepointTo":0,"currentPage":0,"pageSize":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"data":[{"id":0,"rqc":0,"oc":0,"sc":0,"tc":0,"adr":0}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}