POST api/ApproveAndReject/AllowanceApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

ApproveAllowanceEntry
NameDescriptionTypeAdditional information
AllowanceID

integer

None.

ApproveUserId

integer

None.

ApproverName

string

None.

AppliedUserId

integer

None.

AppliedUserName

string

None.

Token

string

None.

Language

string

None.

RejectReason

string

None.

AllowanceType

string

None.

AllowanceDate

string

None.

AllowanceAmount

string

None.

Status

integer

None.

ReportLevelCount

integer

None.

LevelCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AllowanceID": 1,
  "ApproveUserId": 2,
  "ApproverName": "sample string 3",
  "AppliedUserId": 4,
  "AppliedUserName": "sample string 5",
  "Token": "sample string 6",
  "Language": "sample string 7",
  "RejectReason": "sample string 8",
  "AllowanceType": "sample string 9",
  "AllowanceDate": "sample string 10",
  "AllowanceAmount": "sample string 11",
  "Status": 12,
  "ReportLevelCount": 13,
  "LevelCount": 14
}

text/html

Sample:
{"AllowanceID":1,"ApproveUserId":2,"ApproverName":"sample string 3","AppliedUserId":4,"AppliedUserName":"sample string 5","Token":"sample string 6","Language":"sample string 7","RejectReason":"sample string 8","AllowanceType":"sample string 9","AllowanceDate":"sample string 10","AllowanceAmount":"sample string 11","Status":12,"ReportLevelCount":13,"LevelCount":14}

application/xml, text/xml

Sample:
<ApproveAndRejectController.ApproveAllowanceEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AllowanceAmount>sample string 11</AllowanceAmount>
  <AllowanceDate>sample string 10</AllowanceDate>
  <AllowanceID>1</AllowanceID>
  <AllowanceType>sample string 9</AllowanceType>
  <AppliedUserId>4</AppliedUserId>
  <AppliedUserName>sample string 5</AppliedUserName>
  <ApproveUserId>2</ApproveUserId>
  <ApproverName>sample string 3</ApproverName>
  <Language>sample string 7</Language>
  <LevelCount>14</LevelCount>
  <RejectReason>sample string 8</RejectReason>
  <ReportLevelCount>13</ReportLevelCount>
  <Status>12</Status>
  <Token>sample string 6</Token>
</ApproveAndRejectController.ApproveAllowanceEntry>

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

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>