POST api/Employees

Request Information

URI Parameters

None.

Body Parameters

Employee
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

None.

LastName

string

None.

StoreId

integer

None.

PayRate

decimal number

None.

SSN

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "StoreId": 4,
  "PayRate": 5.0,
  "SSN": "sample string 6",
  "Active": true
}

application/xml, text/xml

Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <Active>true</Active>
  <FirstName>sample string 2</FirstName>
  <Id>1</Id>
  <LastName>sample string 3</LastName>
  <PayRate>5</PayRate>
  <SSN>sample string 6</SSN>
  <StoreId>4</StoreId>
</Employee>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Employee
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

None.

LastName

string

None.

StoreId

integer

None.

PayRate

decimal number

None.

SSN

string

None.

Active

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "StoreId": 4,
  "PayRate": 5.0,
  "SSN": "sample string 6",
  "Active": true
}

application/xml, text/xml

Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <Active>true</Active>
  <FirstName>sample string 2</FirstName>
  <Id>1</Id>
  <LastName>sample string 3</LastName>
  <PayRate>5</PayRate>
  <SSN>sample string 6</SSN>
  <StoreId>4</StoreId>
</Employee>