POST api/AddLeaveForEmployee
Request Information
URI Parameters
None.
Body Parameters
SvcAddLeaveMDL| Name | Description | Type | Additional information |
|---|---|---|---|
| LeaveTypeId | integer |
None. |
|
| EmployeeId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| FromDate | string |
None. |
|
| ToDate | string |
None. |
|
| Remarks | string |
None. |
|
| Language | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeaveTypeId": 1,
"EmployeeId": 2,
"CompanyId": 3,
"FromDate": "sample string 4",
"ToDate": "sample string 5",
"Remarks": "sample string 6",
"Language": "sample string 7"
}
application/xml, text/xml
Sample:
<SvcAddLeaveMDL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary.WebAPIMDL"> <CompanyId>3</CompanyId> <EmployeeId>2</EmployeeId> <FromDate>sample string 4</FromDate> <Language>sample string 7</Language> <LeaveTypeId>1</LeaveTypeId> <Remarks>sample string 6</Remarks> <ToDate>sample string 5</ToDate> </SvcAddLeaveMDL>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Description | string |
None. |
|
| Result | boolean |
None. |
|
| Data | string |
None. |
|
| status | integer |
None. |
|
| TotalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"Description": "sample string 2",
"Result": true,
"Data": "sample string 4",
"status": 5,
"TotalCount": 6
}
application/xml, text/xml
Sample:
<ServiceResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary.FTSServices"> <Data>sample string 4</Data> <Description>sample string 2</Description> <Message>sample string 1</Message> <Result>true</Result> <TotalCount>6</TotalCount> <status>5</status> </ServiceResultOfstring>