Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
package dtos

type Rating struct {
	Val   int `json:"val,omitempty"`
	Count int `json:"count,omitempty"`
}

type Comparison struct {
	V1 int     `json:"v1,omitempty"`
	V2 int     `json:"v2,omitempty"`
	P1 float32 `json:"p1,omitempty"`
	P2 float32 `json:"p2,omitempty"`
}

type LastRoundsStats struct {
	Id                                  *string     `json:"id,omitempty"`
	TopSix                              []int       `json:"topSix,omitempty"`
	BottomSix                           []int       `json:"bottomSix,omitempty"`
	TopFirstColors                      []Rating    `json:"topFirstColors,omitempty"`
	TopColors                           []Rating    `json:"topColors,omitempty"`
	FirstNrEvenVsOdd                    *Comparison `json:"firstNrEvenVsOdd,omitempty"`
	FirstNrLessVsGreater245             *Comparison `json:"firstNrLessVsGreater24_5,omitempty"`
	SumOfFirstFiveLessVsGreaterThan1225 *Comparison `json:"sumOfFirstFiveLessVsGreaterThan122_5,omitempty"`
	TotalEvenVsOdd                      *Comparison `json:"totalEvenVsOdd,omitempty"`
}

type GetLastRoundsStats struct {
}

Go GetLastRoundsStats DTOs

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

HTTP + JSV

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

POST /qry/stats/last10 HTTP/1.1 
Host: s4w2.api.bettor.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	topSix: 
	[
		0
	],
	bottomSix: 
	[
		0
	],
	topFirstColors: 
	[
		{
			val: 0,
			count: 0
		}
	],
	topColors: 
	[
		{
			val: 0,
			count: 0
		}
	],
	firstNrEvenVsOdd: 
	{
		v1: 0,
		v2: 0,
		p1: 0,
		p2: 0
	},
	firstNrLessVsGreater24_5: 
	{
		v1: 0,
		v2: 0,
		p1: 0,
		p2: 0
	},
	sumOfFirstFiveLessVsGreaterThan122_5: 
	{
		v1: 0,
		v2: 0,
		p1: 0,
		p2: 0
	},
	totalEvenVsOdd: 
	{
		v1: 0,
		v2: 0,
		p1: 0,
		p2: 0
	}
}