POST api/ApproveAndReject/AdvanceApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

AdvanceApprovalEntity
NameDescriptionTypeAdditional information
AdvanceID

integer

None.

Approvedby

integer

None.

Amount

decimal number

None.

AppliedDate

string

None.

AppliedBy

integer

None.

AdvanceType

string

None.

Duration

string

None.

RepaymentMode

string

None.

Level

integer

None.

LevelCount

integer

None.

FullName

string

None.

Email

string

None.

Language

string

None.

Token

string

None.

Status

integer

None.

ReasonForReject

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AdvanceID": 1,
  "Approvedby": 2,
  "Amount": 3.0,
  "AppliedDate": "sample string 4",
  "AppliedBy": 5,
  "AdvanceType": "sample string 6",
  "Duration": "sample string 7",
  "RepaymentMode": "sample string 8",
  "Level": 9,
  "LevelCount": 10,
  "FullName": "sample string 11",
  "Email": "sample string 12",
  "Language": "sample string 13",
  "Token": "sample string 14",
  "Status": 15,
  "ReasonForReject": "sample string 16"
}

text/html

Sample:
{"AdvanceID":1,"Approvedby":2,"Amount":3.0,"AppliedDate":"sample string 4","AppliedBy":5,"AdvanceType":"sample string 6","Duration":"sample string 7","RepaymentMode":"sample string 8","Level":9,"LevelCount":10,"FullName":"sample string 11","Email":"sample string 12","Language":"sample string 13","Token":"sample string 14","Status":15,"ReasonForReject":"sample string 16"}

application/xml, text/xml

Sample:
<ApproveAndRejectController.AdvanceApprovalEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AdvanceID>1</AdvanceID>
  <AdvanceType>sample string 6</AdvanceType>
  <Amount>3</Amount>
  <AppliedBy>5</AppliedBy>
  <AppliedDate>sample string 4</AppliedDate>
  <Approvedby>2</Approvedby>
  <Duration>sample string 7</Duration>
  <Email>sample string 12</Email>
  <FullName>sample string 11</FullName>
  <Language>sample string 13</Language>
  <Level>9</Level>
  <LevelCount>10</LevelCount>
  <ReasonForReject>sample string 16</ReasonForReject>
  <RepaymentMode>sample string 8</RepaymentMode>
  <Status>15</Status>
  <Token>sample string 14</Token>
</ApproveAndRejectController.AdvanceApprovalEntity>

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

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>