POST api/FAB/AddFAB
添加一条FAB(添加分为两步,一是只传递文字json返回FAB的id,然后再上传FAB的图片)
Request Information
URI Parameters
None.
Body Parameters
fabTextPost| Name | Description | Type | Additional information |
|---|---|---|---|
| fuppercode | string |
None. |
|
| fuppercontent | string |
None. |
|
| fjeanscode | string |
None. |
|
| fjeanscontent | string |
None. |
|
| auppercode | string |
None. |
|
| auppercontent | string |
None. |
|
| ajeanscode | string |
None. |
|
| ajeanscontent | string |
None. |
|
| buppercode | string |
None. |
|
| buppercontent | string |
None. |
|
| bjeanscode | string |
None. |
|
| bjeanscontent | string |
None. |
|
| imgArr | 数组: integer |
None. |
|
| neida | string |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"fuppercode": "sample string 1",
"fuppercontent": "sample string 2",
"fjeanscode": "sample string 3",
"fjeanscontent": "sample string 4",
"auppercode": "sample string 5",
"auppercontent": "sample string 6",
"ajeanscode": "sample string 7",
"ajeanscontent": "sample string 8",
"buppercode": "sample string 9",
"buppercontent": "sample string 10",
"bjeanscode": "sample string 11",
"bjeanscontent": "sample string 12",
"imgArr": [
1,
2
],
"neida": "sample string 13",
"tel": "sample string 14",
"token": "sample string 15",
"uid": 1
}
application/xml, text/xml
Sample:
<fabTextPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
<tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 14</tel>
<token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 15</token>
<uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
<ajeanscode>sample string 7</ajeanscode>
<ajeanscontent>sample string 8</ajeanscontent>
<auppercode>sample string 5</auppercode>
<auppercontent>sample string 6</auppercontent>
<bjeanscode>sample string 11</bjeanscode>
<bjeanscontent>sample string 12</bjeanscontent>
<buppercode>sample string 9</buppercode>
<buppercontent>sample string 10</buppercontent>
<fjeanscode>sample string 3</fjeanscode>
<fjeanscontent>sample string 4</fjeanscontent>
<fuppercode>sample string 1</fuppercode>
<fuppercontent>sample string 2</fuppercontent>
<imgArr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</imgArr>
<neida>sample string 13</neida>
</fabTextPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
fabTextResult| Name | Description | Type | Additional information |
|---|---|---|---|
| fabId |
返回新建fab的id,可用于上传fab的图片 |
integer |
None. |
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"fabId": 1,
"code": 2,
"msg": "sample string 3"
}
application/xml, text/xml
Sample:
<fabTextResult 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">2</code> <msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 3</msg> <fabId>1</fabId> </fabTextResult>