| POST | /configure/game |
|---|
"use strict";
/** @typedef {number} */
export var RTPStrategies;
(function (RTPStrategies) {
RTPStrategies[RTPStrategies["RNG"] = 0] = "RNG"
RTPStrategies[RTPStrategies["Default"] = 1] = "Default"
})(RTPStrategies || (RTPStrategies = {}));
export class RoundConfiguration {
/** @param {{countdownDurationInSeconds?:number,raceDurationInSeconds?:number,resultsDurationInSeconds?:number,rtpStrategy?:RTPStrategies}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
countdownDurationInSeconds;
/** @type {number} */
raceDurationInSeconds;
/** @type {number} */
resultsDurationInSeconds;
/** @type {RTPStrategies} */
rtpStrategy;
}
export class GameConfiguration {
/** @param {{id?:string,queueSize?:number,roundConfiguration?:RoundConfiguration}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
id;
/** @type {number} */
queueSize;
/** @type {?RoundConfiguration} */
roundConfiguration;
}
export class ConfigureGame {
/** @param {{id?:string,configuration?:GameConfiguration}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
id;
/** @type {?GameConfiguration} */
configuration;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /configure/game HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":"String","configuration":{"queueSize":0,"roundConfiguration":{"countdownDurationInSeconds":0,"raceDurationInSeconds":0,"resultsDurationInSeconds":0},"rtpStrategy":0}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}