Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
const std = @import("std");

pub const Rating = struct {
    val: i32 = 0,
    count: i32 = 0,
};

pub const Comparison = struct {
    v1: i32 = 0,
    v2: i32 = 0,
    p1: f32 = 0,
    p2: f32 = 0,
};

pub const LastRoundsStats = struct {
    id: ?[]const u8 = null,
    topSix: ?[]i32 = null,
    bottomSix: ?[]i32 = null,
    topFirstColors: ?[]Rating = null,
    topColors: ?[]Rating = null,
    firstNrEvenVsOdd: ?Comparison = null,
    firstNrLessVsGreater24_5: ?Comparison = null,
    sumOfFirstFiveLessVsGreaterThan122_5: ?Comparison = null,
    totalEvenVsOdd: ?Comparison = null,
};

pub const GetLastRoundsStats = struct {};

Zig GetLastRoundsStats DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: s4w1.api.bettor.webhop.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
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}}