POST api/LeaveForm?username={username}&empid={empid}&div={div}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
Required |
|
| empid | integer |
Required |
|
| div | integer |
Required |
Body Parameters
LeaveformPost| Name | Description | Type | Additional information |
|---|---|---|---|
| EmpId | integer |
None. |
|
| Leavetype | string |
None. |
|
| Entrytype | integer |
None. |
|
| LeaveFromdt | string |
None. |
|
| LeaveTodt | string |
None. |
|
| LeaveFormSt | string |
None. |
|
| LeaveFormTo | string |
None. |
|
| LeaveRsn | string |
None. |
|
| DivisionNo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmpId": 1,
"Leavetype": "sample string 2",
"Entrytype": 3,
"LeaveFromdt": "sample string 4",
"LeaveTodt": "sample string 5",
"LeaveFormSt": "sample string 6",
"LeaveFormTo": "sample string 7",
"LeaveRsn": "sample string 8",
"DivisionNo": 9
}
application/xml, text/xml
Sample:
<LeaveformPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers"> <DivisionNo>9</DivisionNo> <EmpId>1</EmpId> <Entrytype>3</Entrytype> <LeaveFormSt>sample string 6</LeaveFormSt> <LeaveFormTo>sample string 7</LeaveFormTo> <LeaveFromdt>sample string 4</LeaveFromdt> <LeaveRsn>sample string 8</LeaveRsn> <LeaveTodt>sample string 5</LeaveTodt> <Leavetype>sample string 2</Leavetype> </LeaveformPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
rtnMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| result | boolean |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": true,
"message": "sample string 2"
}
application/xml, text/xml
Sample:
<rtnMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers"> <message>sample string 2</message> <result>true</result> </rtnMessage>