GET api/Offices

Returns all available offices.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Office
NameDescriptionTypeAdditional information
Id

The id of the office.

integer

None.

Name

The localized name of the office.

string

None.

Address

The address of the office.

Address

None.

Email

Official contact email address for the office.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Address": {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "PostalCode": "sample string 3",
      "City": "sample string 4",
      "Municipality": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "Region": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "GeoCoordinate": {
        "Latitude": 1.1,
        "Longitude": 2.1
      }
    },
    "Email": "sample string 3"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Address": {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "PostalCode": "sample string 3",
      "City": "sample string 4",
      "Municipality": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "Region": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "GeoCoordinate": {
        "Latitude": 1.1,
        "Longitude": 2.1
      }
    },
    "Email": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfOffice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GuideDenmark.External.Data.Model">
  <Office>
    <Address>
      <AddressLine1>sample string 1</AddressLine1>
      <AddressLine2>sample string 2</AddressLine2>
      <City>sample string 4</City>
      <GeoCoordinate>
        <Latitude>1.1</Latitude>
        <Longitude>2.1</Longitude>
      </GeoCoordinate>
      <Municipality>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Municipality>
      <PostalCode>sample string 3</PostalCode>
      <Region>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Region>
    </Address>
    <Email>sample string 3</Email>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Office>
  <Office>
    <Address>
      <AddressLine1>sample string 1</AddressLine1>
      <AddressLine2>sample string 2</AddressLine2>
      <City>sample string 4</City>
      <GeoCoordinate>
        <Latitude>1.1</Latitude>
        <Longitude>2.1</Longitude>
      </GeoCoordinate>
      <Municipality>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Municipality>
      <PostalCode>sample string 3</PostalCode>
      <Region>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Region>
    </Address>
    <Email>sample string 3</Email>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Office>
</ArrayOfOffice>