POST api/content/{appid}/{id}

获取文章,文章不存在会返回404,HttpResponseMessage包含缓存头及响应代码信息,真实返回类型请参见接口[GET api/content/{appid}/{skip}/{count}]中的Article类型

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appid

应用的appid

string

Required

id

文章id

string

Required

Body Parameters

用于格式化文章中图片的img标签属性键/值对

Dictionary of string [key] and string [value]

Request Formats

application/json, text/json

Sample:
{
  "sample string 1": "sample string 2",
  "sample string 3": "sample string 4"
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringstring>
    <Key>sample string 1</Key>
    <Value>sample string 2</Value>
  </KeyValueOfstringstring>
  <KeyValueOfstringstring>
    <Key>sample string 3</Key>
    <Value>sample string 4</Value>
  </KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Article

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.