| 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 datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class NCESDropdown:
id: int = 0
name: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class NCESGetDropdownsResponse:
response_status: Optional[ResponseStatus] = None
dropdowns: List[NCESDropdown] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class NCESGetDropdownsRequest:
state_i_d: int = 0
county_i_d: int = 0
district_i_d: int = 0
Python NCESGetDropdownsRequest 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/NCES/GetDropdowns 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
}
},
Dropdowns:
[
{
ID: 0,
Name: String
}
]
}