POST api/Visitor/Submit

Request Information

URI Parameters

None.

Body Parameters

VisitRequestModel
NameDescriptionTypeAdditional information
ID

integer

None.

VisitorName

string

None.

VisitorPhone

string

None.

VisitorEmail

string

None.

VisitorIdCard

string

None.

VisitorCompany

string

None.

VisitorPosition

string

None.

VisitedName

string

None.

VisitedPhone

string

None.

VisitType

integer

None.

VistorsCount

integer

None.

PlaneVisitDate

date

None.

VisitSubject

string

None.

OaFlowId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "VisitorName": "sample string 2",
  "VisitorPhone": "sample string 3",
  "VisitorEmail": "sample string 4",
  "VisitorIdCard": "sample string 5",
  "VisitorCompany": "sample string 6",
  "VisitorPosition": "sample string 7",
  "VisitedName": "sample string 8",
  "VisitedPhone": "sample string 9",
  "VisitType": 10,
  "VistorsCount": 11,
  "PlaneVisitDate": "2020-10-30T22:17:09.8736887+08:00",
  "VisitSubject": "sample string 13",
  "OaFlowId": 14
}

application/xml, text/xml

Sample:
<VisitRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.VisitorManage">
  <ID>1</ID>
  <OaFlowId>14</OaFlowId>
  <PlaneVisitDate>2020-10-30T22:17:09.8736887+08:00</PlaneVisitDate>
  <VisitSubject>sample string 13</VisitSubject>
  <VisitType>10</VisitType>
  <VisitedName>sample string 8</VisitedName>
  <VisitedPhone>sample string 9</VisitedPhone>
  <VisitorCompany>sample string 6</VisitorCompany>
  <VisitorEmail>sample string 4</VisitorEmail>
  <VisitorIdCard>sample string 5</VisitorIdCard>
  <VisitorName>sample string 2</VisitorName>
  <VisitorPhone>sample string 3</VisitorPhone>
  <VisitorPosition>sample string 7</VisitorPosition>
  <VistorsCount>11</VistorsCount>
</VisitRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseResult
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<ResponseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI.Areas.VisitorManage">
  <data />
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
</ResponseResult>