POST api/applyLeave
Request Information
URI Parameters
None.
Body Parameters
ModLeave| Name | Description | Type | Additional information |
|---|---|---|---|
| empId | integer |
None. |
|
| adminId | integer |
None. |
|
| fromDate | string |
None. |
|
| toDate | string |
None. |
|
| leave_type | string |
None. |
|
| leave_description | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"empId": 1,
"adminId": 2,
"fromDate": "sample string 3",
"toDate": "sample string 4",
"leave_type": "sample string 5",
"leave_description": "sample string 6"
}
application/xml, text/xml
Sample:
<ModLeave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <adminId>2</adminId> <empId>1</empId> <fromDate>sample string 3</fromDate> <leave_description>sample string 6</leave_description> <leave_type>sample string 5</leave_type> <toDate>sample string 4</toDate> </ModLeave>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| refresh_token | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Data": {},
"Message": "sample string 3",
"refresh_token": "sample string 4"
}
application/xml, text/xml
Sample:
<CommonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <Data /> <Message>sample string 3</Message> <Status>1</Status> <refresh_token>sample string 4</refresh_token> </CommonResponse>