POST api/DC

“Post”的文档。

Request Information

Parameters

NameDescriptionAdditional information
item
“item”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "nickname": "sample string 2",
  "ans1": "sample string 3",
  "ans2": "sample string 4",
  "ans3": "sample string 5",
  "ans4": "sample string 6",
  "ans5": "sample string 7",
  "ans6": "sample string 8",
  "ans7": "sample string 9",
  "ans8": "sample string 10",
  "ans9": "sample string 11",
  "ans10": "sample string 12",
  "ans11": "sample string 13",
  "ans12": "sample string 14",
  "ans13": "sample string 15",
  "ans14": "sample string 16",
  "ans15": "sample string 17",
  "ans16": "sample string 18",
  "ans17": "sample string 19",
  "ans18": "sample string 20",
  "wxid": "sample string 21"
}

application/xml, text/xml

Sample:
<RestrountD xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/wxapi01.Models">
  <Id>1</Id>
  <ans1>sample string 3</ans1>
  <ans10>sample string 12</ans10>
  <ans11>sample string 13</ans11>
  <ans12>sample string 14</ans12>
  <ans13>sample string 15</ans13>
  <ans14>sample string 16</ans14>
  <ans15>sample string 17</ans15>
  <ans16>sample string 18</ans16>
  <ans17>sample string 19</ans17>
  <ans18>sample string 20</ans18>
  <ans2>sample string 4</ans2>
  <ans3>sample string 5</ans3>
  <ans4>sample string 6</ans4>
  <ans5>sample string 7</ans5>
  <ans6>sample string 8</ans6>
  <ans7>sample string 9</ans7>
  <ans8>sample string 10</ans8>
  <ans9>sample string 11</ans9>
  <nickname>sample string 2</nickname>
  <wxid>sample string 21</wxid>
</RestrountD>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'RestrountD'.