POST api/proposal

“Post”的文档。

Request Information

Parameters

NameDescriptionAdditional information
info
“info”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "number": "sample string 1",
  "temp": "sample string 2",
  "p_date": "sample string 3",
  "p_name": "sample string 4",
  "id": "sample string 5",
  "userid": "sample string 6",
  "name": "sample string 7",
  "department": "sample string 8",
  "curdate": "sample string 9",
  "before": "sample string 10",
  "src1": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "imgid_b": [
    1,
    2,
    3
  ],
  "imgid_a": [
    1,
    2,
    3
  ],
  "after": "sample string 11",
  "src2": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "p_feedback": "sample string 12",
  "p_condition": "sample string 13"
}

application/xml, text/xml

Sample:
<proposal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/wxapi01.Models">
  <after>sample string 11</after>
  <before>sample string 10</before>
  <curdate>sample string 9</curdate>
  <department>sample string 8</department>
  <id>sample string 5</id>
  <imgid_a xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </imgid_a>
  <imgid_b xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </imgid_b>
  <name>sample string 7</name>
  <number>sample string 1</number>
  <p_condition>sample string 13</p_condition>
  <p_date>sample string 3</p_date>
  <p_feedback>sample string 12</p_feedback>
  <p_name>sample string 4</p_name>
  <src1 xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </src1>
  <src2 xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </src2>
  <temp>sample string 2</temp>
  <userid>sample string 6</userid>
</proposal>

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

Response Information

Response body formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>