GET api/Address/{employeeNo}

Get the employee's current address. The key is the Employee No

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

Body Parameters

None.

Response Information

Resource Description

Address

AddressDetail
NameDescriptionTypeAdditional information
EmployeeAddressID

integer

None.

AddressLine1

Cannot be empty

string

None.

AddressLine2

string

None.

AddressLine3

string

None.

Town

string

None.

County

string

None.

Postcode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "EmployeeAddressID": 1,
  "AddressLine1": "sample string 1",
  "AddressLine2": "sample string 2",
  "AddressLine3": "sample string 3",
  "Town": "sample string 4",
  "County": "sample string 5",
  "Postcode": "sample string 6"
}

application/xml, text/xml

Sample:
<AddressDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models">
  <AddressLine1>sample string 1</AddressLine1>
  <AddressLine2>sample string 2</AddressLine2>
  <AddressLine3>sample string 3</AddressLine3>
  <County>sample string 5</County>
  <EmployeeAddressID>1</EmployeeAddressID>
  <Postcode>sample string 6</Postcode>
  <Town>sample string 4</Town>
</AddressDetail>