| POST | /cmd/configure/global-code-pot |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ConfigureGlobalCodePot
{
public String id = null;
public GCPConfiguration configuration = null;
public String getId() { return id; }
public ConfigureGlobalCodePot setId(String value) { this.id = value; return this; }
public GCPConfiguration getConfiguration() { return configuration; }
public ConfigureGlobalCodePot setConfiguration(GCPConfiguration value) { this.configuration = value; return this; }
}
public static class GCPConfiguration
{
public Boolean isActive = null;
public ThresholdInterval interval = null;
public BigDecimal pct = null;
public BigDecimal reservePct = null;
public BigDecimal totalPct = null;
public Boolean getIsActive() { return isActive; }
public GCPConfiguration setIsActive(Boolean value) { this.isActive = value; return this; }
public ThresholdInterval getInterval() { return interval; }
public GCPConfiguration setInterval(ThresholdInterval value) { this.interval = value; return this; }
public BigDecimal getPct() { return pct; }
public GCPConfiguration setPct(BigDecimal value) { this.pct = value; return this; }
public BigDecimal getReservePct() { return reservePct; }
public GCPConfiguration setReservePct(BigDecimal value) { this.reservePct = value; return this; }
public BigDecimal getTotalPct() { return totalPct; }
public GCPConfiguration setTotalPct(BigDecimal value) { this.totalPct = value; return this; }
}
public static class ThresholdInterval
{
public BigDecimal start = null;
public BigDecimal end = null;
public BigDecimal getStart() { return start; }
public ThresholdInterval setStart(BigDecimal value) { this.start = value; return this; }
public BigDecimal getEnd() { return end; }
public ThresholdInterval setEnd(BigDecimal value) { this.end = value; return this; }
}
}
Java ConfigureGlobalCodePot DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/configure/global-code-pot HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String,
configuration:
{
isActive: False,
interval:
{
start: 0,
end: 0
},
pct: 0,
reservePct: 0,
totalPct: 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
}
}