POST api/Topic/AddProdutAttachment

S11:添加社区记录对应的产品信息

Request Information

URI Parameters

None.

Body Parameters

AttachmentApViewModel
NameDescriptionTypeAdditional information
TopicGUID

社区主键

string

None.

AttachmentSn

1图片 2视频 3产品 4 盲盒

integer

None.

AttachmentImg

图片链接 视频链接

string

None.

RefPathID

关联的产品ID

string

None.

RefPathName

关联的产品名称

string

None.

RefPrice

关联的价格

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "TopicGUID": "sample string 1",
  "AttachmentSn": 2,
  "AttachmentImg": "sample string 3",
  "RefPathID": "sample string 4",
  "RefPathName": "sample string 5",
  "RefPrice": 6.1
}

application/xml, text/xml

Sample:
<AttachmentApViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.ViewModel">
  <AttachmentImg>sample string 3</AttachmentImg>
  <AttachmentSn>2</AttachmentSn>
  <RefPathID>sample string 4</RefPathID>
  <RefPathName>sample string 5</RefPathName>
  <RefPrice>6.1</RefPrice>
  <TopicGUID>sample string 1</TopicGUID>
</AttachmentApViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttachmentApViewModel'.

Response Information

Resource Description

S11:添加社区记录对应的产品信息

string

Response 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>