| GET | /{Workspace}/WorkspaceOptions/ |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class WorkspaceOptions
{
public String Workspace = null;
public ArrayList<TimeZone> TimeZones = null;
public ArrayList<Country> Countries = null;
public ArrayList<UserTypeOption> UserTypes = null;
public String getWorkspace() { return Workspace; }
public WorkspaceOptions setWorkspace(String value) { this.Workspace = value; return this; }
public ArrayList<TimeZone> getTimeZones() { return TimeZones; }
public WorkspaceOptions setTimeZones(ArrayList<TimeZone> value) { this.TimeZones = value; return this; }
public ArrayList<Country> getCountries() { return Countries; }
public WorkspaceOptions setCountries(ArrayList<Country> value) { this.Countries = value; return this; }
public ArrayList<UserTypeOption> getUserTypes() { return UserTypes; }
public WorkspaceOptions setUserTypes(ArrayList<UserTypeOption> value) { this.UserTypes = value; return this; }
}
public static class TimeZone
{
public String Name = null;
public String Id = null;
public String IanaId = null;
public String Abbreviation = null;
public String getName() { return Name; }
public TimeZone setName(String value) { this.Name = value; return this; }
public String getId() { return Id; }
public TimeZone setId(String value) { this.Id = value; return this; }
public String getIanaId() { return IanaId; }
public TimeZone setIanaId(String value) { this.IanaId = value; return this; }
public String getAbbreviation() { return Abbreviation; }
public TimeZone setAbbreviation(String value) { this.Abbreviation = value; return this; }
}
public static class Country
{
public String Name = null;
public String Id = null;
public String getName() { return Name; }
public Country setName(String value) { this.Name = value; return this; }
public String getId() { return Id; }
public Country setId(String value) { this.Id = value; return this; }
}
public static class UserTypeOption
{
public String Name = null;
public String Id = null;
public String getName() { return Name; }
public UserTypeOption setName(String value) { this.Name = value; return this; }
public String getId() { return Id; }
public UserTypeOption setId(String value) { this.Id = value; return this; }
}
}
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/WorkspaceOptions/ HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json