| Requires any of the roles: | Agent, Administrator |
| GET | /v1/NCES/GetDropdowns | ||
|---|---|---|---|
| GET | /v1/NCES/GetDropdowns/{StateID} | ||
| GET | /v1/NCES/GetDropdowns/{StateID}/{CountyID}/{DistrictID} | ||
| GET | /v1/NCES/GetDropdowns/{StateID}/{CountyID} |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class NCESDropdown implements IConvertible
{
int? ID;
String? Name;
NCESDropdown({this.ID,this.Name});
NCESDropdown.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
Name = json['Name'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'Name': Name
};
getTypeName() => "NCESDropdown";
TypeContext? context = _ctx;
}
class NCESGetDropdownsResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<NCESDropdown>? Dropdowns = [];
NCESGetDropdownsResponse({this.ResponseStatus,this.Dropdowns});
NCESGetDropdownsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Dropdowns = JsonConverters.fromJson(json['Dropdowns'],'List<NCESDropdown>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Dropdowns': JsonConverters.toJson(Dropdowns,'List<NCESDropdown>',context!)
};
getTypeName() => "NCESGetDropdownsResponse";
TypeContext? context = _ctx;
}
class NCESGetDropdownsRequest implements IConvertible
{
int? StateID;
int? CountyID;
int? DistrictID;
NCESGetDropdownsRequest({this.StateID,this.CountyID,this.DistrictID});
NCESGetDropdownsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
StateID = json['StateID'];
CountyID = json['CountyID'];
DistrictID = json['DistrictID'];
return this;
}
Map<String, dynamic> toJson() => {
'StateID': StateID,
'CountyID': CountyID,
'DistrictID': DistrictID
};
getTypeName() => "NCESGetDropdownsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'NCESDropdown': TypeInfo(TypeOf.Class, create:() => NCESDropdown()),
'NCESGetDropdownsResponse': TypeInfo(TypeOf.Class, create:() => NCESGetDropdownsResponse()),
'List<NCESDropdown>': TypeInfo(TypeOf.Class, create:() => <NCESDropdown>[]),
'NCESGetDropdownsRequest': TypeInfo(TypeOf.Class, create:() => NCESGetDropdownsRequest()),
});
Dart NCESGetDropdownsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/NCES/GetDropdowns HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<NCESGetDropdownsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Dropdowns>
<NCESDropdown>
<ID>0</ID>
<Name>String</Name>
</NCESDropdown>
</Dropdowns>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</NCESGetDropdownsResponse>