| POST | /cmd/e2e/configuration |
|---|
namespace Betting.WebApi.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type ProductSubmitMode =
| Single = 0
| Multi = 1
[<AllowNullLiteral>]
type Six4WinBetKindProbabilities() =
member val Standard:Decimal = new Decimal() with get,set
member val System7:Decimal = new Decimal() with get,set
member val System8:Decimal = new Decimal() with get,set
member val System9:Decimal = new Decimal() with get,set
member val System10:Decimal = new Decimal() with get,set
member val FirstColor1:Decimal = new Decimal() with get,set
member val FirstColor2:Decimal = new Decimal() with get,set
member val FirstColor3:Decimal = new Decimal() with get,set
member val FirstColor4:Decimal = new Decimal() with get,set
member val FirstColor5:Decimal = new Decimal() with get,set
member val FirstColor6:Decimal = new Decimal() with get,set
member val FirstColor7:Decimal = new Decimal() with get,set
member val FirstColor8:Decimal = new Decimal() with get,set
member val FirstNumberOdd:Decimal = new Decimal() with get,set
member val FirstNumberEven:Decimal = new Decimal() with get,set
member val FirstNumberLessThan24_5:Decimal = new Decimal() with get,set
member val FirstNumberGreaterThan24_5:Decimal = new Decimal() with get,set
member val SumOfFirstFiveLessThan122_5:Decimal = new Decimal() with get,set
member val SumOfFirstFiveGreaterThan122_5:Decimal = new Decimal() with get,set
member val MoreOddNumbers:Decimal = new Decimal() with get,set
member val MoreEvenNumbers:Decimal = new Decimal() with get,set
[<AllowNullLiteral>]
type Interval() =
member val Start:Int32 = new Int32() with get,set
member val End:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type ProductInstanceE2EConfiguration() =
member val ProductInstanceId:String = null with get,set
member val BetsPerSlip:Interval = null with get,set
[<AllowNullLiteral>]
type LocationE2EConfiguration() =
member val LocationId:String = null with get,set
member val IsActive:Boolean = new Boolean() with get,set
member val SubmitMode:ProductSubmitMode = new ProductSubmitMode() with get,set
member val ProductInstanceE2EConfigurations:ResizeArray<ProductInstanceE2EConfiguration> = null with get,set
[<AllowNullLiteral>]
type StoreE2EConfiguration() =
member val DelayTime:Int32 = new Int32() with get,set
member val NumberOfSlipsPerLocation:Int32 = new Int32() with get,set
member val DefaultSubmitMode:ProductSubmitMode = new ProductSubmitMode() with get,set
member val Six4WinBetKindProbabilities:Six4WinBetKindProbabilities = null with get,set
member val DefaultProductInstanceE2EConfigurations:ResizeArray<ProductInstanceE2EConfiguration> = null with get,set
member val LocationE2EConfigurations:ResizeArray<LocationE2EConfiguration> = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/e2e/configuration HTTP/1.1
Host: api.sbbet.ath.cx
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StoreE2EConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.WebApi.ServiceModel">
<DefaultProductInstanceE2EConfigurations>
<ProductInstanceE2EConfiguration>
<BetsPerSlip xmlns:d4p1="http://schemas.datacontract.org/2004/07/Betting.Common">
<d4p1:End>0</d4p1:End>
<d4p1:Start>0</d4p1:Start>
</BetsPerSlip>
<ProductInstanceId>String</ProductInstanceId>
</ProductInstanceE2EConfiguration>
</DefaultProductInstanceE2EConfigurations>
<DefaultSubmitMode>Single</DefaultSubmitMode>
<DelayTime>0</DelayTime>
<LocationE2EConfigurations>
<LocationE2EConfiguration>
<IsActive>false</IsActive>
<LocationId>String</LocationId>
<ProductInstanceE2EConfigurations>
<ProductInstanceE2EConfiguration>
<BetsPerSlip xmlns:d6p1="http://schemas.datacontract.org/2004/07/Betting.Common">
<d6p1:End>0</d6p1:End>
<d6p1:Start>0</d6p1:Start>
</BetsPerSlip>
<ProductInstanceId>String</ProductInstanceId>
</ProductInstanceE2EConfiguration>
</ProductInstanceE2EConfigurations>
<SubmitMode>Single</SubmitMode>
</LocationE2EConfiguration>
</LocationE2EConfigurations>
<NumberOfSlipsPerLocation>0</NumberOfSlipsPerLocation>
<Six4WinBetKindProbabilities>
<FirstColor1>0</FirstColor1>
<FirstColor2>0</FirstColor2>
<FirstColor3>0</FirstColor3>
<FirstColor4>0</FirstColor4>
<FirstColor5>0</FirstColor5>
<FirstColor6>0</FirstColor6>
<FirstColor7>0</FirstColor7>
<FirstColor8>0</FirstColor8>
<FirstNumberEven>0</FirstNumberEven>
<FirstNumberGreaterThan24_5>0</FirstNumberGreaterThan24_5>
<FirstNumberLessThan24_5>0</FirstNumberLessThan24_5>
<FirstNumberOdd>0</FirstNumberOdd>
<MoreEvenNumbers>0</MoreEvenNumbers>
<MoreOddNumbers>0</MoreOddNumbers>
<Standard>0</Standard>
<SumOfFirstFiveGreaterThan122_5>0</SumOfFirstFiveGreaterThan122_5>
<SumOfFirstFiveLessThan122_5>0</SumOfFirstFiveLessThan122_5>
<System10>0</System10>
<System7>0</System7>
<System8>0</System8>
<System9>0</System9>
</Six4WinBetKindProbabilities>
</StoreE2EConfiguration>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
</ResponseStatus>