| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/SlotDistrictApprovalAwaiting |
|---|
import Foundation
import ServiceStack
public class SlotDistrictApprovalAwaitingRequest : Codable
{
required public init(){}
}
public class SlotDistrictApprovalResponse : Codable
{
public var responseStatus:ResponseStatus
public var slotDistrictApproval:[SlotDistrictApprovalExtended] = []
required public init(){}
}
public class SlotDistrictApprovalExtended : SlotDistrictApproval
{
public var agentName:String
public var avpName:String
public var districtName:String
public var schoolName:String
public var county:String
public var state:String
required public init(){ super.init() }
private enum CodingKeys : String, CodingKey {
case agentName
case avpName
case districtName
case schoolName
case county
case state
}
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
let container = try decoder.container(keyedBy: CodingKeys.self)
agentName = try container.decodeIfPresent(String.self, forKey: .agentName)
avpName = try container.decodeIfPresent(String.self, forKey: .avpName)
districtName = try container.decodeIfPresent(String.self, forKey: .districtName)
schoolName = try container.decodeIfPresent(String.self, forKey: .schoolName)
county = try container.decodeIfPresent(String.self, forKey: .county)
state = try container.decodeIfPresent(String.self, forKey: .state)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
if agentName != nil { try container.encode(agentName, forKey: .agentName) }
if avpName != nil { try container.encode(avpName, forKey: .avpName) }
if districtName != nil { try container.encode(districtName, forKey: .districtName) }
if schoolName != nil { try container.encode(schoolName, forKey: .schoolName) }
if county != nil { try container.encode(county, forKey: .county) }
if state != nil { try container.encode(state, forKey: .state) }
}
}
public class SlotDistrictApproval : Codable
{
public var slotDistrictApprovalID:Int
public var slotDistrictID:Int
public var schoolID:Int
public var agentID:Int
public var avpid:Int
public var status:String
public var dateCreated:Date
public var dateModified:Date
public var modifiedBy:String
required public init(){}
}
Swift SlotDistrictApprovalAwaitingRequest 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/SlotDistrictApprovalAwaiting 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
}
]
}