POST api/Employee1/AddMainemployeeleaves

Request Information

URI Parameters

None.

Body Parameters

Mainemployeeleaves
NameDescriptionTypeAdditional information
leaves_id

integer

None.

user_id

integer

None.

emp_leave_limit

integer

None.

used_leaves

integer

None.

balence_leaves

integer

None.

alloted_year

integer

None.

createdby

integer

None.

modifiedby

integer

None.

createddate

date

None.

modifieddate

date

None.

isactive

integer

None.

isleavetrasnferset

integer

None.

StatusMessage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "leaves_id": 1,
  "user_id": 1,
  "emp_leave_limit": 1,
  "used_leaves": 1,
  "balence_leaves": 1,
  "alloted_year": 1,
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T00:47:19.259-04:00",
  "modifieddate": "2019-06-18T00:47:19.259-04:00",
  "isactive": 1,
  "isleavetrasnferset": 1,
  "StatusMessage": "sample string 2"
}

text/html

Sample:
{"leaves_id":1,"user_id":1,"emp_leave_limit":1,"used_leaves":1,"balence_leaves":1,"alloted_year":1,"createdby":1,"modifiedby":1,"createddate":"2019-06-18T00:47:19.259-04:00","modifieddate":"2019-06-18T00:47:19.259-04:00","isactive":1,"isleavetrasnferset":1,"StatusMessage":"sample string 2"}

application/xml, text/xml

Sample:
<Mainemployeeleaves xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models.Employee">
  <StatusMessage>sample string 2</StatusMessage>
  <alloted_year>1</alloted_year>
  <balence_leaves>1</balence_leaves>
  <createdby>1</createdby>
  <createddate>2019-06-18T00:47:19.259-04:00</createddate>
  <emp_leave_limit>1</emp_leave_limit>
  <isactive>1</isactive>
  <isleavetrasnferset>1</isleavetrasnferset>
  <leaves_id>1</leaves_id>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T00:47:19.259-04:00</modifieddate>
  <used_leaves>1</used_leaves>
  <user_id>1</user_id>
</Mainemployeeleaves>

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 'Mainemployeeleaves'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.