| Requires any of the roles: | Worker, Agent, Administrator |
| GET, OPTIONS | /v1/Organization/GetSingleBySchoolID/{schoolID} | ||
|---|---|---|---|
| GET, OPTIONS | /v1/Organization/GetSingleByDistrictID/{districtID} |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class orgGetSingleRequest
{
open var schoolID:Long? = null
open var districtID:Int? = null
}
open class orgGetSingleResponse
{
open var ResponseStatus:ResponseStatus? = null
open var org:Organization? = null
}
open class Organization
{
open var OrganizationId:Long? = null
open var OrganizationTypeId:Int? = null
open var StateID:Int? = null
open var StateName:String? = null
open var DistrictID:Int? = null
open var DistrictName:String? = null
open var CountyID:Int? = null
open var CountyName:String? = null
open var SchoolID:Long? = null
open var SchoolName:String? = null
open var EntityName:String? = null
open var EntityId:String? = null
open var Source:String? = null
open var Pera_ListId:Int? = null
}
Kotlin orgGetSingleRequest 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/Organization/GetSingleBySchoolID/{schoolID} 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
}
},
org:
{
OrganizationId: 0,
OrganizationTypeId: 0,
StateID: 0,
StateName: String,
DistrictID: 0,
DistrictName: String,
CountyID: 0,
CountyName: String,
SchoolID: 0,
SchoolName: String,
EntityName: String,
EntityId: String,
Source: String,
Pera_ListId: 0
}
}