POST api/AppVoter/AddPetition

Request Information

URI Parameters

None.

Body Parameters

AppVoterAddPetitionRequest
NameDescriptionTypeAdditional information
Petition

AppAddPetitionRequest

Required

Voter

AppVoterAddVoterRequest

Required

Request Formats

application/json, text/json

Sample:
{
  "petition": {
    "subject": "sample string 1",
    "mainCategory": 1.0,
    "subCategory": 1.0,
    "customCategory": "sample string 2",
    "town": "sample string 3",
    "otherTown": "sample string 4",
    "village": "sample string 5",
    "latitude": "sample string 6",
    "longitude": "sample string 7",
    "checkTime": "2024-11-21T14:24:05.924035+08:00",
    "content": "sample string 8",
    "photos": null
  },
  "voter": {
    "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.