Greyhounds.WebApi

<back to all web services

ConfigureAccumulator

The following routes are available for this service:
POST/configure/accumulator
// @ts-nocheck

export class Pool
{
    public id: number;
    public name?: string;
    public coefficient: number;
    public rtp: number;
    public threshold: number;
    public balance: number;

    public constructor(init?: Partial<Pool>) { (Object as any).assign(this, init); }
}

export enum LocationOptimizationLevel
{
    None = 0,
    Low = 1,
    Medium = 2,
    High = 3,
}

export class ThresholdInterval
{
    public start: number;
    public end: number;

    public constructor(init?: Partial<ThresholdInterval>) { (Object as any).assign(this, init); }
}

export class AccumulatorConfiguration
{
    public id?: string;
    public pools?: Pool[];
    public prevalentStake: number;
    public locationOptimizationLevel: LocationOptimizationLevel;
    public jackPotThresholdInterval?: ThresholdInterval;

    public constructor(init?: Partial<AccumulatorConfiguration>) { (Object as any).assign(this, init); }
}

export class ConfigureAccumulator
{
    public id?: string;
    public configuration?: AccumulatorConfiguration;

    public constructor(init?: Partial<ConfigureAccumulator>) { (Object as any).assign(this, init); }
}

TypeScript ConfigureAccumulator 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 /configure/accumulator HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	configuration: 
	{
		pools: 
		[
			{
				id: 0,
				name: String,
				rtp: 0
			}
		],
		prevalentStake: 0,
		locationOptimizationLevel: 0,
		jackPotThresholdInterval: 
		{
			start: 0,
			end: 0
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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