POST api/Employee

Request Information

URI Parameters

None.

Body Parameters

EmployeeViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

DepartmentId

integer

None.

DesignationId

integer

None.

Phone

string

None.

Address

string

None.

LocalLevelId

integer

None.

WardId

integer

None.

Photo

string

None.

DepartmentName

string

None.

DesignationName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "DepartmentId": 3,
  "DesignationId": 4,
  "Phone": "sample string 5",
  "Address": "sample string 6",
  "LocalLevelId": 7,
  "WardId": 1,
  "Photo": "sample string 8",
  "DepartmentName": "sample string 9",
  "DesignationName": "sample string 10"
}

text/xml

Sample:
<EmployeeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
  <Address>sample string 6</Address>
  <DepartmentId>3</DepartmentId>
  <DepartmentName>sample string 9</DepartmentName>
  <DesignationId>4</DesignationId>
  <DesignationName>sample string 10</DesignationName>
  <Id>1</Id>
  <LocalLevelId>7</LocalLevelId>
  <Name>sample string 2</Name>
  <Phone>sample string 5</Phone>
  <Photo>sample string 8</Photo>
  <WardId>1</WardId>
</EmployeeViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

EmployeeViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

DepartmentId

integer

None.

DesignationId

integer

None.

Phone

string

None.

Address

string

None.

LocalLevelId

integer

None.

WardId

integer

None.

Photo

string

None.

DepartmentName

string

None.

DesignationName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "DepartmentId": 3,
  "DesignationId": 4,
  "Phone": "sample string 5",
  "Address": "sample string 6",
  "LocalLevelId": 7,
  "WardId": 1,
  "Photo": "sample string 8",
  "DepartmentName": "sample string 9",
  "DesignationName": "sample string 10"
}

text/xml

Sample:
<EmployeeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
  <Address>sample string 6</Address>
  <DepartmentId>3</DepartmentId>
  <DepartmentName>sample string 9</DepartmentName>
  <DesignationId>4</DesignationId>
  <DesignationName>sample string 10</DesignationName>
  <Id>1</Id>
  <LocalLevelId>7</LocalLevelId>
  <Name>sample string 2</Name>
  <Phone>sample string 5</Phone>
  <Photo>sample string 8</Photo>
  <WardId>1</WardId>
</EmployeeViewModel>