Gets all addresses from the company

Request Information

Parameters

NameDescriptionAdditional information
companyId The id of the company

Define this parameter in the request URI.

options more info soon

None.

Response Information

Returns: A list of company models

Response body formats

application/json, text/json

Sample:
[
  {
    "Uri": "/addresses/2",
    "Id": 2,
    "CompanyUri": "/companies/9",
    "Name": "sample string 4",
    "StreetNr": "sample string 5",
    "Zip": "sample string 6",
    "City": "sample string 7",
    "Country": "sample string 8",
    "CompanyId": 9
  },
  {
    "Uri": "/addresses/2",
    "Id": 2,
    "CompanyUri": "/companies/9",
    "Name": "sample string 4",
    "StreetNr": "sample string 5",
    "Zip": "sample string 6",
    "City": "sample string 7",
    "Country": "sample string 8",
    "CompanyId": 9
  },
  {
    "Uri": "/addresses/2",
    "Id": 2,
    "CompanyUri": "/companies/9",
    "Name": "sample string 4",
    "StreetNr": "sample string 5",
    "Zip": "sample string 6",
    "City": "sample string 7",
    "Country": "sample string 8",
    "CompanyId": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfAddressRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AddressRestGet>
    <Name>sample string 4</Name>
    <StreetNr>sample string 5</StreetNr>
    <Zip>sample string 6</Zip>
    <City>sample string 7</City>
    <Country>sample string 8</Country>
    <CompanyId>9</CompanyId>
    <Uri>/addresses/2</Uri>
    <Id>2</Id>
    <CompanyUri>/companies/9</CompanyUri>
  </AddressRestGet>
  <AddressRestGet>
    <Name>sample string 4</Name>
    <StreetNr>sample string 5</StreetNr>
    <Zip>sample string 6</Zip>
    <City>sample string 7</City>
    <Country>sample string 8</Country>
    <CompanyId>9</CompanyId>
    <Uri>/addresses/2</Uri>
    <Id>2</Id>
    <CompanyUri>/companies/9</CompanyUri>
  </AddressRestGet>
  <AddressRestGet>
    <Name>sample string 4</Name>
    <StreetNr>sample string 5</StreetNr>
    <Zip>sample string 6</Zip>
    <City>sample string 7</City>
    <Country>sample string 8</Country>
    <CompanyId>9</CompanyId>
    <Uri>/addresses/2</Uri>
    <Id>2</Id>
    <CompanyUri>/companies/9</CompanyUri>
  </AddressRestGet>
</ArrayOfAddressRestGet>