GET api/employees/GetEmployeeById?Id={Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of EmployeeModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Age

integer

None.

Address

string

None.

Department

string

None.

PositionId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Age": 3,
    "Address": "sample string 4",
    "Department": "sample string 5",
    "PositionId": 6
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Age": 3,
    "Address": "sample string 4",
    "Department": "sample string 5",
    "PositionId": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmployeeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmployeeManagementAPI.Models">
  <EmployeeModel>
    <Address>sample string 4</Address>
    <Age>3</Age>
    <Department>sample string 5</Department>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <PositionId>6</PositionId>
  </EmployeeModel>
  <EmployeeModel>
    <Address>sample string 4</Address>
    <Age>3</Age>
    <Department>sample string 5</Department>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <PositionId>6</PositionId>
  </EmployeeModel>
</ArrayOfEmployeeModel>