POST api/Artlcle/ArtlcleList
取得文章列表
Request Information
URI Parameters
None.
Body Parameters
ArtlcleList_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| categoryId |
類別ID |
globally unique identifier |
None. |
| forSide |
供側邊顯示 |
boolean |
None. |
| page |
頁數 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"categoryId": "6be83fe2-182c-49d3-8bf3-136feeab0030",
"forSide": true,
"page": 3
}
text/html
Sample:
{"Ticket":"sample string 1","categoryId":"6be83fe2-182c-49d3-8bf3-136feeab0030","forSide":true,"page":3}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
取得文章列表
ArtlcleList_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| newestComment |
最新討論 |
Collection of newComment |
None. |
| articles |
文章清單 |
Collection of articles |
None. |
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| count |
總筆數 |
integer |
None. |
| page |
頁數 |
integer |
None. |
| pageCount |
總頁數 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"newestComment": [
{
"articleNo": "sample string 1",
"title": "sample string 2",
"commentCount": "sample string 3"
},
{
"articleNo": "sample string 1",
"title": "sample string 2",
"commentCount": "sample string 3"
}
],
"articles": [
{
"articleNo": "sample string 1",
"title": "sample string 2",
"content": "sample string 3",
"time": "sample string 4",
"imageURL": "sample string 5",
"source": "sample string 6",
"clickcount": 7,
"commentcount": 8
},
{
"articleNo": "sample string 1",
"title": "sample string 2",
"content": "sample string 3",
"time": "sample string 4",
"imageURL": "sample string 5",
"source": "sample string 6",
"clickcount": 7,
"commentcount": 8
}
],
"ticketVerified": true,
"count": 2,
"page": 3,
"pageCount": 4
}
text/html
Sample:
{"newestComment":[{"articleNo":"sample string 1","title":"sample string 2","commentCount":"sample string 3"},{"articleNo":"sample string 1","title":"sample string 2","commentCount":"sample string 3"}],"articles":[{"articleNo":"sample string 1","title":"sample string 2","content":"sample string 3","time":"sample string 4","imageURL":"sample string 5","source":"sample string 6","clickcount":7,"commentcount":8},{"articleNo":"sample string 1","title":"sample string 2","content":"sample string 3","time":"sample string 4","imageURL":"sample string 5","source":"sample string 6","clickcount":7,"commentcount":8}],"ticketVerified":true,"count":2,"page":3,"pageCount":4}