| Required roles: | Administrator, Administrator | Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator |
| PUT,DELETE,OPTIONS | /v1/SlotDistrict/{ID} | ||
|---|---|---|---|
| POST,OPTIONS | /v1/SlotDistrict |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SlotDistrictRequest
{
public SlotDistrict SlotDistrict = null;
public Integer ID = null;
public SlotDistrict getSlotDistrict() { return SlotDistrict; }
public SlotDistrictRequest setSlotDistrict(SlotDistrict value) { this.SlotDistrict = value; return this; }
public Integer getId() { return ID; }
public SlotDistrictRequest setId(Integer value) { this.ID = value; return this; }
}
public static class SlotDistrict
{
public Integer ID = null;
public String Name = null;
public String County = null;
public Integer DistrictId = null;
public String DistrictName = null;
public String Address_Physical = null;
public String Address_Mailing = null;
public String City = null;
public String Zip = null;
public String Zip_4 = null;
public Integer StateId = null;
public String State = null;
public String Phone = null;
public BigDecimal NumEmployees = null;
public Integer NumSchools = null;
public String Type = null;
public Boolean Status_NLG = null;
public Boolean Status_Midland = null;
public Boolean Status_Great_American = null;
public Boolean Status_VOYA = null;
public Integer MVP = null;
public Integer RVP = null;
public ArrayList<SlotDistrictSchool> Schools = new ArrayList<SlotDistrictSchool>();
public Double MilesAway = null;
public Boolean HasComments = null;
public Integer getId() { return ID; }
public SlotDistrict setId(Integer value) { this.ID = value; return this; }
public String getName() { return Name; }
public SlotDistrict setName(String value) { this.Name = value; return this; }
public String getCounty() { return County; }
public SlotDistrict setCounty(String value) { this.County = value; return this; }
public Integer getDistrictId() { return DistrictId; }
public SlotDistrict setDistrictId(Integer value) { this.DistrictId = value; return this; }
public String getDistrictName() { return DistrictName; }
public SlotDistrict setDistrictName(String value) { this.DistrictName = value; return this; }
public String getAddressPhysical() { return Address_Physical; }
public SlotDistrict setAddressPhysical(String value) { this.Address_Physical = value; return this; }
public String getAddressMailing() { return Address_Mailing; }
public SlotDistrict setAddressMailing(String value) { this.Address_Mailing = value; return this; }
public String getCity() { return City; }
public SlotDistrict setCity(String value) { this.City = value; return this; }
public String getZip() { return Zip; }
public SlotDistrict setZip(String value) { this.Zip = value; return this; }
public String getZip4() { return Zip_4; }
public SlotDistrict setZip4(String value) { this.Zip_4 = value; return this; }
public Integer getStateId() { return StateId; }
public SlotDistrict setStateId(Integer value) { this.StateId = value; return this; }
public String getState() { return State; }
public SlotDistrict setState(String value) { this.State = value; return this; }
public String getPhone() { return Phone; }
public SlotDistrict setPhone(String value) { this.Phone = value; return this; }
public BigDecimal getNumEmployees() { return NumEmployees; }
public SlotDistrict setNumEmployees(BigDecimal value) { this.NumEmployees = value; return this; }
public Integer getNumSchools() { return NumSchools; }
public SlotDistrict setNumSchools(Integer value) { this.NumSchools = value; return this; }
public String getType() { return Type; }
public SlotDistrict setType(String value) { this.Type = value; return this; }
public Boolean isStatusNlg() { return Status_NLG; }
public SlotDistrict setStatusNlg(Boolean value) { this.Status_NLG = value; return this; }
public Boolean isStatusMidland() { return Status_Midland; }
public SlotDistrict setStatusMidland(Boolean value) { this.Status_Midland = value; return this; }
public Boolean isStatusGreatAmerican() { return Status_Great_American; }
public SlotDistrict setStatusGreatAmerican(Boolean value) { this.Status_Great_American = value; return this; }
public Boolean isStatusVoya() { return Status_VOYA; }
public SlotDistrict setStatusVoya(Boolean value) { this.Status_VOYA = value; return this; }
public Integer getMvp() { return MVP; }
public SlotDistrict setMvp(Integer value) { this.MVP = value; return this; }
public Integer getRvp() { return RVP; }
public SlotDistrict setRvp(Integer value) { this.RVP = value; return this; }
public ArrayList<SlotDistrictSchool> getSchools() { return Schools; }
public SlotDistrict setSchools(ArrayList<SlotDistrictSchool> value) { this.Schools = value; return this; }
public Double getMilesAway() { return MilesAway; }
public SlotDistrict setMilesAway(Double value) { this.MilesAway = value; return this; }
public Boolean isHasComments() { return HasComments; }
public SlotDistrict setHasComments(Boolean value) { this.HasComments = value; return this; }
}
public static class SlotDistrictSchool
{
public Long SchoolId = null;
public String SchoolName = null;
public ArrayList<SchoolAgent> AgentList = new ArrayList<SchoolAgent>();
public Long getSchoolId() { return SchoolId; }
public SlotDistrictSchool setSchoolId(Long value) { this.SchoolId = value; return this; }
public String getSchoolName() { return SchoolName; }
public SlotDistrictSchool setSchoolName(String value) { this.SchoolName = value; return this; }
public ArrayList<SchoolAgent> getAgentList() { return AgentList; }
public SlotDistrictSchool setAgentList(ArrayList<SchoolAgent> value) { this.AgentList = value; return this; }
}
public static class SchoolAgent
{
public Integer AgentId = null;
public String AgentName = null;
public Integer SlotDistrictApprovalID = null;
public Integer getAgentId() { return AgentId; }
public SchoolAgent setAgentId(Integer value) { this.AgentId = value; return this; }
public String getAgentName() { return AgentName; }
public SchoolAgent setAgentName(String value) { this.AgentName = value; return this; }
public Integer getSlotDistrictApprovalID() { return SlotDistrictApprovalID; }
public SchoolAgent setSlotDistrictApprovalID(Integer value) { this.SlotDistrictApprovalID = value; return this; }
}
public static class SlotDistrictResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<SlotDistrict> SlotDistrict = new ArrayList<SlotDistrict>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public SlotDistrictResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<SlotDistrict> getSlotDistrict() { return SlotDistrict; }
public SlotDistrictResponse setSlotDistrict(ArrayList<SlotDistrict> value) { this.SlotDistrict = 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 /v1/SlotDistrict HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SlotDistrict:
{
ID: 0,
Name: String,
County: String,
DistrictId: 0,
DistrictName: String,
Address_Physical: String,
Address_Mailing: String,
City: String,
Zip: String,
Zip_4: String,
StateId: 0,
State: String,
Phone: String,
NumEmployees: 0,
NumSchools: 0,
Type: String,
Status_NLG: False,
Status_Midland: False,
Status_Great_American: False,
Status_VOYA: False,
MVP: 0,
RVP: 0,
Schools:
[
{
SchoolId: 0,
SchoolName: String,
AgentList:
[
{
AgentId: 0,
AgentName: String,
SlotDistrictApprovalID: 0
}
]
}
],
MilesAway: 0,
HasComments: False
},
ID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
SlotDistrict:
[
{
ID: 0,
Name: String,
County: String,
DistrictId: 0,
DistrictName: String,
Address_Physical: String,
Address_Mailing: String,
City: String,
Zip: String,
Zip_4: String,
StateId: 0,
State: String,
Phone: String,
NumEmployees: 0,
NumSchools: 0,
Type: String,
Status_NLG: False,
Status_Midland: False,
Status_Great_American: False,
Status_VOYA: False,
MVP: 0,
RVP: 0,
Schools:
[
{
SchoolId: 0,
SchoolName: String,
AgentList:
[
{
AgentId: 0,
AgentName: String,
SlotDistrictApprovalID: 0
}
]
}
],
MilesAway: 0,
HasComments: False
}
]
}