| 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.*;
public class dtos
{
public static class orgGetSingleRequest
{
public Long schoolID = null;
public Integer districtID = null;
public Long getSchoolID() { return schoolID; }
public orgGetSingleRequest setSchoolID(Long value) { this.schoolID = value; return this; }
public Integer getDistrictID() { return districtID; }
public orgGetSingleRequest setDistrictID(Integer value) { this.districtID = value; return this; }
}
public static class orgGetSingleResponse
{
public ResponseStatus ResponseStatus = null;
public Organization org = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public orgGetSingleResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Organization getOrg() { return org; }
public orgGetSingleResponse setOrg(Organization value) { this.org = value; return this; }
}
public static class Organization
{
public Long OrganizationId = null;
public Integer OrganizationTypeId = null;
public Integer StateID = null;
public String StateName = null;
public Integer DistrictID = null;
public String DistrictName = null;
public Integer CountyID = null;
public String CountyName = null;
public Long SchoolID = null;
public String SchoolName = null;
public String EntityName = null;
public String EntityId = null;
public String Source = null;
public Integer Pera_ListId = null;
public Long getOrganizationId() { return OrganizationId; }
public Organization setOrganizationId(Long value) { this.OrganizationId = value; return this; }
public Integer getOrganizationTypeId() { return OrganizationTypeId; }
public Organization setOrganizationTypeId(Integer value) { this.OrganizationTypeId = value; return this; }
public Integer getStateID() { return StateID; }
public Organization setStateID(Integer value) { this.StateID = value; return this; }
public String getStateName() { return StateName; }
public Organization setStateName(String value) { this.StateName = value; return this; }
public Integer getDistrictID() { return DistrictID; }
public Organization setDistrictID(Integer value) { this.DistrictID = value; return this; }
public String getDistrictName() { return DistrictName; }
public Organization setDistrictName(String value) { this.DistrictName = value; return this; }
public Integer getCountyID() { return CountyID; }
public Organization setCountyID(Integer value) { this.CountyID = value; return this; }
public String getCountyName() { return CountyName; }
public Organization setCountyName(String value) { this.CountyName = value; return this; }
public Long getSchoolID() { return SchoolID; }
public Organization setSchoolID(Long value) { this.SchoolID = value; return this; }
public String getSchoolName() { return SchoolName; }
public Organization setSchoolName(String value) { this.SchoolName = value; return this; }
public String getEntityName() { return EntityName; }
public Organization setEntityName(String value) { this.EntityName = value; return this; }
public String getEntityId() { return EntityId; }
public Organization setEntityId(String value) { this.EntityId = value; return this; }
public String getSource() { return Source; }
public Organization setSource(String value) { this.Source = value; return this; }
public Integer getPeraListId() { return Pera_ListId; }
public Organization setPeraListId(Integer value) { this.Pera_ListId = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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}}