| All Verbs | /qry/stimulations |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Six4Win.WebApi.ServiceModel
Imports Starnet.Common
Namespace Global
Namespace Six4Win.WebApi.ServiceModel
Public Partial Class FindStimulations
Inherits PaginatedQueryRequest
End Class
End Namespace
Namespace Starnet.Common
Public Partial Class PaginatedQueryRequest
Inherits QueryRequest
Public Overridable Property CurrentPage As Integer
Public Overridable Property PageSize As Integer
End Class
Public Partial Class PaginatedResult(Of T)
Implements IPaginatedResult
Public Overridable Property Data As List(Of Bet) = New List(Of Bet)
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
Public Partial Class QueryRequest
Public Overridable Property Qry As Dictionary(Of String, String) = New Dictionary(Of String, String)
End Class
End Namespace
End Namespace
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/stimulations HTTP/1.1
Host: s4w2.api.bettor.cc
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
{"data":[{"id":"String","scheduledAt":"0001-01-01T00:00:00.0000000Z","scheduledBy":"String","target":{"id":"String","val":"String"},"pool":{"id":0,"name":"String"},"cancellationInfo":{"canceledBy":"String","canceledAt":"0001-01-01T00:00:00.0000000Z"},"confirmationInfo":{"confirmedAt":"0001-01-01T00:00:00.0000000Z","slipId":"String","betId":"String","amountAwarded":0},"status":0,"failInfo":{"failures":{"String":"String"},"lastFailAt":"0001-01-01T00:00:00.0000000Z","failureCount":0}}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}