Greyhounds.WebApi

<back to all web services

BatchCancelBets

The following routes are available for this service:
POST/bets/cancel/batch
namespace Greyhounds.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type BettingApp() = 
        member val Name:String = null with get,set
        member val Version:String = null with get,set

    [<AllowNullLiteral>]
    type Reference() = 
        member val Id:String = null with get,set
        member val Value:String = null with get,set

    [<AllowNullLiteral>]
    type Origin() = 
        member val Application:BettingApp = null with get,set
        member val IP:String = null with get,set
        member val Organization:Reference = null with get,set
        member val Device:Reference = null with get,set
        member val Location:Reference = null with get,set
        member val LocationGroup:Reference = null with get,set
        member val Clerk:Reference = null with get,set

    [<AllowNullLiteral>]
    type BatchCancelBets() = 
        member val Id:String = null with get,set
        member val SlipId:String = null with get,set
        member val Origin:Origin = null with get,set
        member val BetIds:ResizeArray<String> = null with get,set

F# BatchCancelBets DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /bets/cancel/batch HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","slipId":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"id":"String","value":"String"},"device":{"id":"String","value":"String"},"location":{"id":"String","value":"String"},"locationGroup":{"id":"String","value":"String"},"clerk":{"id":"String","value":"String"}},"betIds":["String"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}