POST api/Admin/ApplyLeave

Request Information

URI Parameters

None.

Body Parameters

ApplyLeaveRequest
NameDescriptionTypeAdditional information
Employeeid

integer

None.

Fromleave

string

None.

Toleave

string

None.

Reason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Employeeid": 1,
  "Fromleave": "sample string 2",
  "Toleave": "sample string 3",
  "Reason": "sample string 4"
}

application/xml, text/xml

Sample:
<ApplyLeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebapiExample.Models">
  <Employeeid>1</Employeeid>
  <Fromleave>sample string 2</Fromleave>
  <Reason>sample string 4</Reason>
  <Toleave>sample string 3</Toleave>
</ApplyLeaveRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.