POST api/Ask

“Post”的文档。

Request Information

Parameters

NameDescriptionAdditional information
ask1
“ask1”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "data": [
    {
      "item1": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "item1count": [
        1,
        2,
        3
      ],
      "id": "sample string 1",
      "askid": "sample string 2",
      "entryid": 3,
      "name": "sample string 4",
      "type": "sample string 5",
      "value": "sample string 6"
    },
    {
      "item1": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "item1count": [
        1,
        2,
        3
      ],
      "id": "sample string 1",
      "askid": "sample string 2",
      "entryid": 3,
      "name": "sample string 4",
      "type": "sample string 5",
      "value": "sample string 6"
    },
    {
      "item1": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "item1count": [
        1,
        2,
        3
      ],
      "id": "sample string 1",
      "askid": "sample string 2",
      "entryid": 3,
      "name": "sample string 4",
      "type": "sample string 5",
      "value": "sample string 6"
    }
  ],
  "id": "sample string 1",
  "userid": 2,
  "begtime": "2021-11-30T13:42:40.4157896+08:00",
  "endtime": "2021-11-30T13:42:40.4157896+08:00",
  "typeurl": "sample string 5",
  "result": "sample string 6"
}

application/xml, text/xml

Sample:
<Ask xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/wxapi01.Models">
  <begtime>2021-11-30T13:42:40.4157896+08:00</begtime>
  <data>
    <ansitem>
      <askid>sample string 2</askid>
      <entryid>3</entryid>
      <id>sample string 1</id>
      <item1 xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </item1>
      <item1count xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </item1count>
      <name>sample string 4</name>
      <type>sample string 5</type>
      <value>sample string 6</value>
    </ansitem>
    <ansitem>
      <askid>sample string 2</askid>
      <entryid>3</entryid>
      <id>sample string 1</id>
      <item1 xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </item1>
      <item1count xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </item1count>
      <name>sample string 4</name>
      <type>sample string 5</type>
      <value>sample string 6</value>
    </ansitem>
    <ansitem>
      <askid>sample string 2</askid>
      <entryid>3</entryid>
      <id>sample string 1</id>
      <item1 xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </item1>
      <item1count xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </item1count>
      <name>sample string 4</name>
      <type>sample string 5</type>
      <value>sample string 6</value>
    </ansitem>
  </data>
  <endtime>2021-11-30T13:42:40.4157896+08:00</endtime>
  <id>sample string 1</id>
  <result>sample string 6</result>
  <typeurl>sample string 5</typeurl>
  <userid>2</userid>
</Ask>

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