| 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 .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/Organization/GetSingleBySchoolID/{schoolID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<orgGetSingleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<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>
<org>
<CountyID>0</CountyID>
<CountyName>String</CountyName>
<DistrictID>0</DistrictID>
<DistrictName>String</DistrictName>
<EntityId>String</EntityId>
<EntityName>String</EntityName>
<OrganizationId>0</OrganizationId>
<OrganizationTypeId>0</OrganizationTypeId>
<Pera_ListId>0</Pera_ListId>
<SchoolID>0</SchoolID>
<SchoolName>String</SchoolName>
<Source>String</Source>
<StateID>0</StateID>
<StateName>String</StateName>
</org>
</orgGetSingleResponse>