| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/SlotDistrictRequests/{Agent} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/SlotDistrictRequests |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SlotDistrictRequestsRequest
{
public ArrayList<SlotDistrictApproval> SlotDistrictApproval = new ArrayList<SlotDistrictApproval>();
public Integer SlotDistrictApprovalID = null;
public Integer Agent = null;
public ArrayList<SlotDistrictApproval> getSlotDistrictApproval() { return SlotDistrictApproval; }
public SlotDistrictRequestsRequest setSlotDistrictApproval(ArrayList<SlotDistrictApproval> value) { this.SlotDistrictApproval = value; return this; }
public Integer getSlotDistrictApprovalID() { return SlotDistrictApprovalID; }
public SlotDistrictRequestsRequest setSlotDistrictApprovalID(Integer value) { this.SlotDistrictApprovalID = value; return this; }
public Integer getAgent() { return Agent; }
public SlotDistrictRequestsRequest setAgent(Integer value) { this.Agent = value; return this; }
}
public static class SlotDistrictApproval
{
public Integer SlotDistrictApprovalID = null;
public Integer SlotDistrictID = null;
public Long SchoolID = null;
public Integer AgentID = null;
public Integer AVPID = null;
public String Status = null;
public Date DateCreated = null;
public Date DateModified = null;
public UUID ModifiedBy = null;
public Integer getSlotDistrictApprovalID() { return SlotDistrictApprovalID; }
public SlotDistrictApproval setSlotDistrictApprovalID(Integer value) { this.SlotDistrictApprovalID = value; return this; }
public Integer getSlotDistrictID() { return SlotDistrictID; }
public SlotDistrictApproval setSlotDistrictID(Integer value) { this.SlotDistrictID = value; return this; }
public Long getSchoolID() { return SchoolID; }
public SlotDistrictApproval setSchoolID(Long value) { this.SchoolID = value; return this; }
public Integer getAgentID() { return AgentID; }
public SlotDistrictApproval setAgentID(Integer value) { this.AgentID = value; return this; }
public Integer getAvpid() { return AVPID; }
public SlotDistrictApproval setAvpid(Integer value) { this.AVPID = value; return this; }
public String getStatus() { return Status; }
public SlotDistrictApproval setStatus(String value) { this.Status = value; return this; }
public Date getDateCreated() { return DateCreated; }
public SlotDistrictApproval setDateCreated(Date value) { this.DateCreated = value; return this; }
public Date getDateModified() { return DateModified; }
public SlotDistrictApproval setDateModified(Date value) { this.DateModified = value; return this; }
public UUID getModifiedBy() { return ModifiedBy; }
public SlotDistrictApproval setModifiedBy(UUID value) { this.ModifiedBy = value; return this; }
}
public static class SlotDistrictApprovalResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<SlotDistrictApprovalExtended> SlotDistrictApproval = new ArrayList<SlotDistrictApprovalExtended>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public SlotDistrictApprovalResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<SlotDistrictApprovalExtended> getSlotDistrictApproval() { return SlotDistrictApproval; }
public SlotDistrictApprovalResponse setSlotDistrictApproval(ArrayList<SlotDistrictApprovalExtended> value) { this.SlotDistrictApproval = value; return this; }
}
public static class SlotDistrictApprovalExtended extends SlotDistrictApproval
{
public String AgentName = null;
public String AVPName = null;
public String DistrictName = null;
public String SchoolName = null;
public String County = null;
public String State = null;
public String getAgentName() { return AgentName; }
public SlotDistrictApprovalExtended setAgentName(String value) { this.AgentName = value; return this; }
public String getAvpName() { return AVPName; }
public SlotDistrictApprovalExtended setAvpName(String value) { this.AVPName = value; return this; }
public String getDistrictName() { return DistrictName; }
public SlotDistrictApprovalExtended setDistrictName(String value) { this.DistrictName = value; return this; }
public String getSchoolName() { return SchoolName; }
public SlotDistrictApprovalExtended setSchoolName(String value) { this.SchoolName = value; return this; }
public String getCounty() { return County; }
public SlotDistrictApprovalExtended setCounty(String value) { this.County = value; return this; }
public String getState() { return State; }
public SlotDistrictApprovalExtended setState(String value) { this.State = value; return this; }
}
}
Java SlotDistrictRequestsRequest 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.
GET /v1/SlotDistrictRequests/{Agent} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
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
}
},
SlotDistrictApproval:
[
{
AgentName: String,
AVPName: String,
DistrictName: String,
SchoolName: String,
County: String,
State: String,
SlotDistrictApprovalID: 0,
SlotDistrictID: 0,
SchoolID: 0,
AgentID: 0,
AVPID: 0,
Status: String,
DateCreated: 0001-01-01,
DateModified: 0001-01-01,
ModifiedBy: 00000000000000000000000000000000
}
]
}