GET api/PR_DepartmentList?DB={DB}&CompanyID={CompanyID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DB | string |
Required |
|
| CompanyID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PR_Department| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentID | integer |
None. |
|
| Guid | string |
None. |
|
| CompanyID | integer |
None. |
|
| Department_Name | string |
None. |
|
| Department_Description | string |
None. |
|
| Deleted | boolean |
None. |
|
| Disabled_bit | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DepartmentID": 1,
"Guid": "sample string 2",
"CompanyID": 3,
"Department_Name": "sample string 4",
"Department_Description": "sample string 5",
"Deleted": true,
"Disabled_bit": true
},
{
"DepartmentID": 1,
"Guid": "sample string 2",
"CompanyID": 3,
"Department_Name": "sample string 4",
"Department_Description": "sample string 5",
"Deleted": true,
"Disabled_bit": true
}
]
application/xml, text/xml
Sample:
<ArrayOfPR_Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdroitERPWebApis">
<PR_Department>
<CompanyID>3</CompanyID>
<Deleted>true</Deleted>
<DepartmentID>1</DepartmentID>
<Department_Description>sample string 5</Department_Description>
<Department_Name>sample string 4</Department_Name>
<Disabled_bit>true</Disabled_bit>
<Guid>sample string 2</Guid>
</PR_Department>
<PR_Department>
<CompanyID>3</CompanyID>
<Deleted>true</Deleted>
<DepartmentID>1</DepartmentID>
<Department_Description>sample string 5</Department_Description>
<Department_Name>sample string 4</Department_Name>
<Disabled_bit>true</Disabled_bit>
<Guid>sample string 2</Guid>
</PR_Department>
</ArrayOfPR_Department>