POST api/services/approvbyemail?action={action}&platform={platform}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
action

string

Required

platform

string

Default value is web

Body Parameters

Form_Model
NameDescriptionTypeAdditional information
worklistPage

WorklistPage

None.

memoPage

MemoPage

None.

delegatePage

DelegatePage

None.

MemoAutoNumber

MemoAutoNumber

None.

IsPreview

boolean

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'MSTEmployee' with type 'WolfApprove.Model.MSTEmployee'. Path 'memoPage.listUserPermission[0].MSTEmployee.mstUserPermissionList[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'MSTEmployee' with type 'WolfApprove.Model.MSTEmployee'. Path 'memoPage.listUserPermission[0].MSTEmployee.mstUserPermissionList[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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

Response Information

Resource Description

ResponseBean
NameDescriptionTypeAdditional information
result

string

None.

errorMessage

string

None.

errorCode

string

None.

memoid

integer

None.

documentNo

string

None.

message

string

None.

messageType

string

None.

status

string

None.

code

string

None.

allow

boolean

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "result": "sample string 1",
  "errorMessage": "sample string 2",
  "errorCode": "sample string 3",
  "memoid": 4,
  "documentNo": "sample string 5",
  "message": "sample string 6",
  "messageType": "sample string 7",
  "status": "sample string 8",
  "code": "sample string 9",
  "allow": true,
  "data": {}
}

application/xml, text/xml

Sample:
<ResponseBean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WolfApprove.API2.Controllers.Bean">
  <allow>true</allow>
  <code>sample string 9</code>
  <data />
  <documentNo>sample string 5</documentNo>
  <errorCode>sample string 3</errorCode>
  <errorMessage>sample string 2</errorMessage>
  <memoid>4</memoid>
  <message>sample string 6</message>
  <messageType>sample string 7</messageType>
  <result>sample string 1</result>
  <status>sample string 8</status>
</ResponseBean>