GET api/Locations/GetLocationsByCompanyId/{companyId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
companyId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of LocationsName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CompanyId | integer |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[ { "Id": 1, "CompanyId": 2, "Name": "sample string 3" }, { "Id": 1, "CompanyId": 2, "Name": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfLocations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers"> <Locations> <CompanyId>2</CompanyId> <Id>1</Id> <Name>sample string 3</Name> </Locations> <Locations> <CompanyId>2</CompanyId> <Id>1</Id> <Name>sample string 3</Name> </Locations> </ArrayOfLocations>