GET api/content/{appid}/{skip}/{count}

按照制定数量获取文章列表 注意:列表模式不会返回文章的content属性,只会返回description

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appid

应用的appid

string

Required

skip

跳过的文章数目

integer

Default value is 0

count

获取的数目

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

List<Article>

Collection of Article
NameDescriptionTypeAdditional information
id

文章id

ObjectId

None.

title

文章标题

string

None.

author

文章作者

string

None.

replies

文章回复数量

integer

None.

visit

文章访问量

integer

None.

publicTime

发布时间

date

None.

tags

文章的标签

Collection of string

None.

description

文章摘要

string

None.

content

文章格式化后的HTML只读

string

None.

imgs

文章的图片列表

Collection of string

None.

appid

文章所属appid

string

None.

thumbUp

文章赞的数量

integer

None.

thumbDown

文章踩的数量

integer

None.

cdnPreffix

Cdn前缀

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": "000000000000000000000000",
    "title": "sample string 1",
    "author": "sample string 2",
    "replies": 3,
    "visit": 4,
    "publicTime": "2022-05-26T16:03:17.9215229+08:00",
    "tags": [
      "sample string 1",
      "sample string 2"
    ],
    "description": "sample string 6",
    "content": "<div><div><img src=\"sample string 11sample string 1\" sample string 1=\"sample string 2\" sample string 3=\"sample string 4\"/></div>sample string 2</div><div><div><img src=\"sample string 11sample string 1\" sample string 1=\"sample string 2\" sample string 3=\"sample string 4\"/></div>sample string 2</div>",
    "imgs": [
      "sample string 1",
      "sample string 2"
    ],
    "appid": "sample string 8",
    "thumbUp": 9,
    "thumbDown": 10,
    "cdnPreffix": "sample string 11"
  },
  {
    "id": "000000000000000000000000",
    "title": "sample string 1",
    "author": "sample string 2",
    "replies": 3,
    "visit": 4,
    "publicTime": "2022-05-26T16:03:17.9215229+08:00",
    "tags": [
      "sample string 1",
      "sample string 2"
    ],
    "description": "sample string 6",
    "content": "<div><div><img src=\"sample string 11sample string 1\" sample string 1=\"sample string 2\" sample string 3=\"sample string 4\"/></div>sample string 2</div><div><div><img src=\"sample string 11sample string 1\" sample string 1=\"sample string 2\" sample string 3=\"sample string 4\"/></div>sample string 2</div>",
    "imgs": [
      "sample string 1",
      "sample string 2"
    ],
    "appid": "sample string 8",
    "thumbUp": 9,
    "thumbDown": 10,
    "cdnPreffix": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfArticle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin.Models">
  <Article>
    <appid>sample string 8</appid>
    <author>sample string 2</author>
    <cdnPreffix>sample string 11</cdnPreffix>
    <content>&lt;div&gt;&lt;div&gt;&lt;img src="sample string 11sample string 1" sample string 1="sample string 2" sample string 3="sample string 4"/&gt;&lt;/div&gt;sample string 2&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;img src="sample string 11sample string 1" sample string 1="sample string 2" sample string 3="sample string 4"/&gt;&lt;/div&gt;sample string 2&lt;/div&gt;</content>
    <description>sample string 6</description>
    <id xmlns:d3p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
      <d3p1:_increment>0</d3p1:_increment>
      <d3p1:_machine>0</d3p1:_machine>
      <d3p1:_pid>0</d3p1:_pid>
      <d3p1:_timestamp>0</d3p1:_timestamp>
    </id>
    <imgs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </imgs>
    <publicTime>2022-05-26T16:03:17.9215229+08:00</publicTime>
    <replies>3</replies>
    <tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </tags>
    <thumbDown>10</thumbDown>
    <thumbUp>9</thumbUp>
    <title>sample string 1</title>
    <visit>4</visit>
  </Article>
  <Article>
    <appid>sample string 8</appid>
    <author>sample string 2</author>
    <cdnPreffix>sample string 11</cdnPreffix>
    <content>&lt;div&gt;&lt;div&gt;&lt;img src="sample string 11sample string 1" sample string 1="sample string 2" sample string 3="sample string 4"/&gt;&lt;/div&gt;sample string 2&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;img src="sample string 11sample string 1" sample string 1="sample string 2" sample string 3="sample string 4"/&gt;&lt;/div&gt;sample string 2&lt;/div&gt;</content>
    <description>sample string 6</description>
    <id xmlns:d3p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
      <d3p1:_increment>0</d3p1:_increment>
      <d3p1:_machine>0</d3p1:_machine>
      <d3p1:_pid>0</d3p1:_pid>
      <d3p1:_timestamp>0</d3p1:_timestamp>
    </id>
    <imgs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </imgs>
    <publicTime>2022-05-26T16:03:17.9215229+08:00</publicTime>
    <replies>3</replies>
    <tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </tags>
    <thumbDown>10</thumbDown>
    <thumbUp>9</thumbUp>
    <title>sample string 1</title>
    <visit>4</visit>
  </Article>
</ArrayOfArticle>