POST api/Article/GetList

分页获取某个分类下面的文章

Request Information

URI Parameters

None.

Body Parameters

data为文章分类ID

ApiPageOfInt32
NameDescriptionTypeAdditional information
data

integer

None.

PageIndex

页面起始项的索引,如{PageIndex=0,PageSize=10}:取0~9项(前十项);{PageIndex=10,PageSize=10}:取10~19项

integer

None.

PageSize

获取数量

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "data": 1,
  "PageIndex": 2,
  "PageSize": 3
}

application/xml, text/xml

Sample:
<ApiPageOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request">
  <PageIndex>2</PageIndex>
  <PageSize>3</PageSize>
  <data>1</data>
</ApiPageOfint>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponsePageArticleOfListOfArticleListResponse
NameDescriptionTypeAdditional information
extra

string

None.

isLastPage

boolean

None.

totalItem

integer

None.

data

Collection of ArticleListResponse

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "extra": "sample string 1",
  "isLastPage": true,
  "totalItem": 3,
  "data": [
    {
      "Id": 1,
      "Titles": "sample string 2",
      "ArticleCategoryId": 1,
      "ArticleCategoryName": "sample string 3",
      "ImagesUrl": "sample string 4",
      "CreateTime": "2025-12-26T20:11:43.1147169+08:00",
      "Sort": 6
    },
    {
      "Id": 1,
      "Titles": "sample string 2",
      "ArticleCategoryId": 1,
      "ArticleCategoryName": "sample string 3",
      "ImagesUrl": "sample string 4",
      "CreateTime": "2025-12-26T20:11:43.1147169+08:00",
      "Sort": 6
    }
  ],
  "errcode": "sample string 4",
  "errmsg": "sample string 5"
}

application/xml, text/xml

Sample:
<ResponsePageArticleOfArrayOfArticleListResponseP67rDlvc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 4</errcode>
  <errmsg>sample string 5</errmsg>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response.api">
    <d2p1:ArticleListResponse>
      <d2p1:ArticleCategoryId>1</d2p1:ArticleCategoryId>
      <d2p1:ArticleCategoryName>sample string 3</d2p1:ArticleCategoryName>
      <d2p1:CreateTime>2025-12-26T20:11:43.1147169+08:00</d2p1:CreateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ImagesUrl>sample string 4</d2p1:ImagesUrl>
      <d2p1:Sort>6</d2p1:Sort>
      <d2p1:Titles>sample string 2</d2p1:Titles>
    </d2p1:ArticleListResponse>
    <d2p1:ArticleListResponse>
      <d2p1:ArticleCategoryId>1</d2p1:ArticleCategoryId>
      <d2p1:ArticleCategoryName>sample string 3</d2p1:ArticleCategoryName>
      <d2p1:CreateTime>2025-12-26T20:11:43.1147169+08:00</d2p1:CreateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ImagesUrl>sample string 4</d2p1:ImagesUrl>
      <d2p1:Sort>6</d2p1:Sort>
      <d2p1:Titles>sample string 2</d2p1:Titles>
    </d2p1:ArticleListResponse>
  </data>
  <isLastPage>true</isLastPage>
  <totalItem>3</totalItem>
  <extra>sample string 1</extra>
</ResponsePageArticleOfArrayOfArticleListResponseP67rDlvc>