GET Api/HostelTokenEngine/processTokenApproval?token={token}&action={action}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

None.

action

string

Default value is Approve

Body Parameters

HostelTokenEngineModel
NameDescriptionTypeAdditional information
entityType

string

None.

entityId

integer

None.

approvalLevel

integer

None.

targetRole

string

None.

targetPhoneNo

string

None.

uniqueToken

string

None.

approverPhoneNo

string

None.

approverInfo

string

None.

action

string

None.

remarks

string

None.

ipAddress

string

None.

opCode

integer

None.

isException

boolean

None.

exceptionMessage

string

None.

DS

DataSet

None.

id

string

None.

strId

string

None.

userId

integer

None.

status

integer

None.

message

string

None.

PageSize

string

None.

PageIndex

string

None.

responseValue

DataSet

None.

Request Formats

application/json, text/json

Sample:
{
  "entityType": "sample string 1",
  "entityId": 2,
  "approvalLevel": 3,
  "targetRole": "sample string 4",
  "targetPhoneNo": "sample string 5",
  "uniqueToken": "sample string 6",
  "approverPhoneNo": "sample string 7",
  "approverInfo": "sample string 8",
  "action": "sample string 9",
  "remarks": "sample string 10",
  "ipAddress": "sample string 11",
  "opCode": 12,
  "isException": true,
  "exceptionMessage": "sample string 14",
  "ds": null,
  "id": "sample string 15",
  "strId": "sample string 16",
  "userId": 17,
  "status": 18,
  "message": "sample string 19",
  "pageSize": "sample string 20",
  "pageIndex": "sample string 21",
  "responseValue": {}
}

application/xml, text/xml

Sample:
<HostelTokenEngineModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMSWebAPI.Models">
  <DS i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/DLLUtility" />
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 21</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 20</PageSize>
  <exceptionMessage xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 14</exceptionMessage>
  <id xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 15</id>
  <isException xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">true</isException>
  <message xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 19</message>
  <opCode xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">12</opCode>
  <responseValue xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">
    <xs:schema id="sample_x0020_string_x0020_3" targetNamespace="sample string 4" xmlns:mstns="sample string 4" xmlns="sample string 4" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
      <xs:element name="sample_x0020_string_x0020_3" msdata:IsDataSet="true" msdata:CaseSensitive="true" msdata:UseCurrentLocale="true">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded" />
        </xs:complexType>
      </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" />
  </responseValue>
  <status xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">18</status>
  <strId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 16</strId>
  <userId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">17</userId>
  <action>sample string 9</action>
  <approvalLevel>3</approvalLevel>
  <approverInfo>sample string 8</approverInfo>
  <approverPhoneNo>sample string 7</approverPhoneNo>
  <entityId>2</entityId>
  <entityType>sample string 1</entityType>
  <ipAddress>sample string 11</ipAddress>
  <remarks>sample string 10</remarks>
  <targetPhoneNo>sample string 5</targetPhoneNo>
  <targetRole>sample string 4</targetRole>
  <uniqueToken>sample string 6</uniqueToken>
</HostelTokenEngineModel>

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

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.