| Requires any of the roles: | Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator |
| DELETE,OPTIONS | /v1/SlotDistrictApproval/{SlotDistrictApprovalID} | ||
|---|---|---|---|
| GET,POST,PUT,OPTIONS | /v1/SlotDistrictApproval |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class SlotDistrictApproval implements IConvertible
{
int? SlotDistrictApprovalID;
int? SlotDistrictID;
int? SchoolID;
int? AgentID;
int? AVPID;
String? Status;
DateTime? DateCreated;
DateTime? DateModified;
String? ModifiedBy;
SlotDistrictApproval({this.SlotDistrictApprovalID,this.SlotDistrictID,this.SchoolID,this.AgentID,this.AVPID,this.Status,this.DateCreated,this.DateModified,this.ModifiedBy});
SlotDistrictApproval.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SlotDistrictApprovalID = json['SlotDistrictApprovalID'];
SlotDistrictID = json['SlotDistrictID'];
SchoolID = json['SchoolID'];
AgentID = json['AgentID'];
AVPID = json['AVPID'];
Status = json['Status'];
DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!);
DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!);
ModifiedBy = json['ModifiedBy'];
return this;
}
Map<String, dynamic> toJson() => {
'SlotDistrictApprovalID': SlotDistrictApprovalID,
'SlotDistrictID': SlotDistrictID,
'SchoolID': SchoolID,
'AgentID': AgentID,
'AVPID': AVPID,
'Status': Status,
'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!),
'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!),
'ModifiedBy': ModifiedBy
};
getTypeName() => "SlotDistrictApproval";
TypeContext? context = _ctx;
}
class SlotDistrictApprovalExtended extends SlotDistrictApproval implements IConvertible
{
String? AgentName;
String? AVPName;
String? DistrictName;
String? SchoolName;
String? County;
String? State;
SlotDistrictApprovalExtended({this.AgentName,this.AVPName,this.DistrictName,this.SchoolName,this.County,this.State});
SlotDistrictApprovalExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
AgentName = json['AgentName'];
AVPName = json['AVPName'];
DistrictName = json['DistrictName'];
SchoolName = json['SchoolName'];
County = json['County'];
State = json['State'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'AgentName': AgentName,
'AVPName': AVPName,
'DistrictName': DistrictName,
'SchoolName': SchoolName,
'County': County,
'State': State
});
getTypeName() => "SlotDistrictApprovalExtended";
TypeContext? context = _ctx;
}
class SlotDistrictApprovalResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<SlotDistrictApprovalExtended>? SlotDistrictApproval = [];
SlotDistrictApprovalResponse({this.ResponseStatus,this.SlotDistrictApproval});
SlotDistrictApprovalResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
SlotDistrictApproval = JsonConverters.fromJson(json['SlotDistrictApproval'],'List<SlotDistrictApprovalExtended>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'SlotDistrictApproval': JsonConverters.toJson(SlotDistrictApproval,'List<SlotDistrictApprovalExtended>',context!)
};
getTypeName() => "SlotDistrictApprovalResponse";
TypeContext? context = _ctx;
}
class SlotDistrictApprovalRequest implements IConvertible
{
List<SlotDistrictApproval>? SlotDistrictApproval = [];
int? SlotDistrictApprovalID;
SlotDistrictApprovalRequest({this.SlotDistrictApproval,this.SlotDistrictApprovalID});
SlotDistrictApprovalRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SlotDistrictApproval = JsonConverters.fromJson(json['SlotDistrictApproval'],'List<SlotDistrictApproval>',context!);
SlotDistrictApprovalID = json['SlotDistrictApprovalID'];
return this;
}
Map<String, dynamic> toJson() => {
'SlotDistrictApproval': JsonConverters.toJson(SlotDistrictApproval,'List<SlotDistrictApproval>',context!),
'SlotDistrictApprovalID': SlotDistrictApprovalID
};
getTypeName() => "SlotDistrictApprovalRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'SlotDistrictApproval': TypeInfo(TypeOf.Class, create:() => SlotDistrictApproval()),
'SlotDistrictApprovalExtended': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalExtended()),
'SlotDistrictApprovalResponse': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalResponse()),
'List<SlotDistrictApprovalExtended>': TypeInfo(TypeOf.Class, create:() => <SlotDistrictApprovalExtended>[]),
'SlotDistrictApprovalRequest': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalRequest()),
'List<SlotDistrictApproval>': TypeInfo(TypeOf.Class, create:() => <SlotDistrictApproval>[]),
});
Dart SlotDistrictApprovalRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/SlotDistrictApproval HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"SlotDistrictApproval":[{"SlotDistrictApprovalID":0,"SlotDistrictID":0,"SchoolID":0,"AgentID":0,"AVPID":0,"Status":"String","DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000","ModifiedBy":"00000000000000000000000000000000"}],"SlotDistrictApprovalID":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000","ModifiedBy":"00000000000000000000000000000000"}]}