POST api/XiaoChengXu/PostHuiYuanAddress
Request Information
URI Parameters
None.
Body Parameters
xcxHuiyuanInfoPost| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| openid | string |
None. |
|
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"openid": "sample string 1",
"token": "sample string 2",
"uid": 1
}
application/xml, text/xml
Sample:
<xcxHuiyuanInfoPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <openid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 1</openid> <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 2</token> <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid> <id>1</id> </xcxHuiyuanInfoPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
xcxHuiYuanAddressList| Name | Description | Type | Additional information |
|---|---|---|---|
| list | 数组: xcxHuiYuanAddressItem |
None. |
|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"list": [
{
"id": 1,
"name": "sample string 2",
"tel": "sample string 3",
"address": "sample string 4",
"isdefault": 5
},
{
"id": 1,
"name": "sample string 2",
"tel": "sample string 3",
"address": "sample string 4",
"isdefault": 5
}
],
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<xcxHuiYuanAddressList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
<code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</code>
<msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 2</msg>
<list>
<xcxHuiYuanAddressItem>
<address>sample string 4</address>
<id>1</id>
<isdefault>5</isdefault>
<name>sample string 2</name>
<tel>sample string 3</tel>
</xcxHuiYuanAddressItem>
<xcxHuiYuanAddressItem>
<address>sample string 4</address>
<id>1</id>
<isdefault>5</isdefault>
<name>sample string 2</name>
<tel>sample string 3</tel>
</xcxHuiYuanAddressItem>
</list>
</xcxHuiYuanAddressList>