POST api/v1/Employee/Add

Request Information

URI Parameters

None.

Body Parameters

EmployeeModel
NameDescriptionTypeAdditional information
Id

string

None.

EmployeeId

string

None.

EmployeeCode

string

None.

EmployeeName

string

None.

BirthDate

decimal number

None.

BirthPlace

string

None.

ResidentPlace

string

None.

DateOfWork

decimal number

None.

Note

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "EmployeeId": "sample string 2",
  "EmployeeCode": "sample string 3",
  "EmployeeName": "sample string 4",
  "BirthDate": 1.1,
  "BirthPlace": "sample string 5",
  "ResidentPlace": "sample string 6",
  "DateOfWork": 1.1,
  "Note": "sample string 7"
}

application/xml, text/xml

Sample:
<EmployeeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
  <BirthDate>1.1</BirthDate>
  <BirthPlace>sample string 5</BirthPlace>
  <DateOfWork>1.1</DateOfWork>
  <EmployeeCode>sample string 3</EmployeeCode>
  <EmployeeId>sample string 2</EmployeeId>
  <EmployeeName>sample string 4</EmployeeName>
  <Id>sample string 1</Id>
  <Note>sample string 7</Note>
  <ResidentPlace>sample string 6</ResidentPlace>
</EmployeeModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployeeModel'.

Response Information

Resource Description

EzyResultObjectOfEmployeeModel
NameDescriptionTypeAdditional information
Data

EmployeeModel

None.

ExtraData

Dictionary of string [key] and Object [value]

None.

StartTime

decimal number

None.

EndTime

decimal number

None.

TotalMili

decimal number

None.

StatusCode

integer

None.

Msg

string

None.

MsgShowInUI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": "sample string 1",
    "EmployeeId": "sample string 2",
    "EmployeeCode": "sample string 3",
    "EmployeeName": "sample string 4",
    "BirthDate": 1.1,
    "BirthPlace": "sample string 5",
    "ResidentPlace": "sample string 6",
    "DateOfWork": 1.1,
    "Note": "sample string 7"
  },
  "ExtraData": null,
  "StartTime": 1.1,
  "EndTime": 2.1,
  "TotalMili": 3.1,
  "StatusCode": 4,
  "Msg": "sample string 5",
  "MsgShowInUI": "sample string 6"
}

application/xml, text/xml

Sample:
<EzyResultObjectOfEmployeeModel3BwjWE5f xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.Library.Message">
  <Msg>sample string 5</Msg>
  <MsgShowInUI>sample string 6</MsgShowInUI>
  <StatusCode>4</StatusCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
    <d2p1:BirthDate>1.1</d2p1:BirthDate>
    <d2p1:BirthPlace>sample string 5</d2p1:BirthPlace>
    <d2p1:DateOfWork>1.1</d2p1:DateOfWork>
    <d2p1:EmployeeCode>sample string 3</d2p1:EmployeeCode>
    <d2p1:EmployeeId>sample string 2</d2p1:EmployeeId>
    <d2p1:EmployeeName>sample string 4</d2p1:EmployeeName>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:Note>sample string 7</d2p1:Note>
    <d2p1:ResidentPlace>sample string 6</d2p1:ResidentPlace>
  </Data>
  <EndTime>2.1</EndTime>
  <ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <StartTime>1.1</StartTime>
  <TotalMili>3.1</TotalMili>
</EzyResultObjectOfEmployeeModel3BwjWE5f>