POST | /support/request |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class RequestSupport
{
public Origin origin = null;
public Origin getOrigin() { return origin; }
public RequestSupport setOrigin(Origin value) { this.origin = value; return this; }
}
public static class Origin
{
public BettingApp application = null;
public String ip = null;
public Ref organization = null;
public Ref region = null;
public Ref locationGroup = null;
public Ref location = null;
public Ref device = null;
public Ref clerk = null;
public BettingApp getApplication() { return application; }
public Origin setApplication(BettingApp value) { this.application = value; return this; }
public String getIp() { return ip; }
public Origin setIp(String value) { this.ip = value; return this; }
public Ref getOrganization() { return organization; }
public Origin setOrganization(Ref value) { this.organization = value; return this; }
public Ref getRegion() { return region; }
public Origin setRegion(Ref value) { this.region = value; return this; }
public Ref getLocationGroup() { return locationGroup; }
public Origin setLocationGroup(Ref value) { this.locationGroup = value; return this; }
public Ref getLocation() { return location; }
public Origin setLocation(Ref value) { this.location = value; return this; }
public Ref getDevice() { return device; }
public Origin setDevice(Ref value) { this.device = value; return this; }
public Ref getClerk() { return clerk; }
public Origin setClerk(Ref value) { this.clerk = value; return this; }
}
public static class BettingApp
{
public String name = null;
public String version = null;
public String getName() { return name; }
public BettingApp setName(String value) { this.name = value; return this; }
public String getVersion() { return version; }
public BettingApp setVersion(String value) { this.version = value; return this; }
}
public static class Ref
{
public String id = null;
public String val = null;
public String getId() { return id; }
public Ref setId(String value) { this.id = value; return this; }
public String getVal() { return val; }
public Ref setVal(String value) { this.val = value; return this; }
}
}
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 /support/request HTTP/1.1
Host: support.bettor-dual-stage.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
id: String,
val: String
},
device:
{
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
}
}
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 } }