POST api/userinfo

“Post”的文档。

Request Information

Parameters

NameDescriptionAdditional information
u
“u”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "nickname": "sample string 3",
  "city": "sample string 4",
  "ip": "sample string 5",
  "gh": "sample string 6",
  "openid": "sample string 7",
  "logincount": 8
}

application/xml, text/xml

Sample:
<Userinfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/wxapi01.Models">
  <city>sample string 4</city>
  <gh>sample string 6</gh>
  <id>1</id>
  <ip>sample string 5</ip>
  <logincount>8</logincount>
  <name>sample string 2</name>
  <nickname>sample string 3</nickname>
  <openid>sample string 7</openid>
</Userinfo>

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

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>