POST api/AppVoter/AddVoter

Request Information

URI Parameters

None.

Body Parameters

AppVoterAddVoterRequest
NameDescriptionTypeAdditional information
Name

string

Required

Sex

string

None.

JobCateId

decimal number

None.

Email

string

Matching regular expression pattern: ^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$

City

string

None.

Area

string

None.

Address

string

None.

MobilePhone

string

Matching regular expression pattern: ^09[0-9]{8}$

TelPhone

string

None.

Remark

string

None.

Photo

Collection of HttpPostedFileMultipart

None.

OtherPhotos

Collection of HttpPostedFileMultipart

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "sex": "sample string 2",
  "jobCateId": 1.0,
  "email": "sample string 3",
  "city": "sample string 4",
  "area": "sample string 5",
  "address": "sample string 6",
  "mobilePhone": "sample string 7",
  "telPhone": "sample string 8",
  "remark": "sample string 9",
  "photo": null,
  "otherPhotos": null
}

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.