Trendsic Platform Service

<back to all web services

NCESGetDropdownsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
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"}},"Dropdowns":[{"ID":0,"Name":"String"}]}