GET api/Public/GetDivisionsForCompany/{CompanyId}/{IncludeAll}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CompanyId | integer |
Required |
|
IncludeAll | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DivisionName | Description | Type | Additional information |
---|---|---|---|
Selected | boolean |
None. |
|
DivisionCode | string |
None. |
|
DivisionName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Selected": true, "DivisionCode": "sample string 2", "DivisionName": "sample string 3" }, { "Selected": true, "DivisionCode": "sample string 2", "DivisionName": "sample string 3" } ]
text/html
Sample:
[{"Selected":true,"DivisionCode":"sample string 2","DivisionName":"sample string 3"},{"Selected":true,"DivisionCode":"sample string 2","DivisionName":"sample string 3"}]
application/xml, text/xml
Sample:
<ArrayOfDivision xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.PublicModels"> <Division> <DivisionCode xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels">sample string 2</DivisionCode> <DivisionName xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels">sample string 3</DivisionName> <Selected>true</Selected> </Division> <Division> <DivisionCode xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels">sample string 2</DivisionCode> <DivisionName xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels">sample string 3</DivisionName> <Selected>true</Selected> </Division> </ArrayOfDivision>