[News] Lấy danh sách tin tức của một chủ đề - duyit2405/portal-app GitHub Wiki
Request
-
Method: GET
-
URL: /api/News/GetNewsByTopic/{topicId}?from={from}&count={count}&status=1
-
FULL URL WITH SERVER: http://vsn.thenhan.com/api/News/GetNewsByTopic/{topicId}?from={from}&count={count}&status=1
-
Header: Authorization: Bearer {access token}
-
Description: Lấy danh sách tin tức của một chủ đề
-
Note For Response:
Parameter URL: N/A
- Response:
[
[
{
"ID": 181,
"Title": "Xuân này có gì đặc biệt?",
"Description": "Rộn ràng đón Xuân cùng ngàn lộc vàng từ MobiFone",
"Status": 1,
"CoverUrl": "/2016/201612060849449503.jpg",
"CreatedTime": "2016-12-06T08:54:45.053+07:00",
"LastModified": "2016-12-06T08:54:45.053+07:00",
"PublishedDate": "2016-12-06T08:48:20+07:00",
"TotalRead": 39,
"TotalLike": 0,
"Liked": false,
"AuthorDetail": {
"BusinessEntityID": 546,
"DisplayName": "Trần Thị Huyền Trang"
},
"EditorID": 546,
"TopicDetail": {
"ID": 1,
"Name": "Tin sản xuất kinh doanh",
"OrganizationID": 1,
"OrganizationDetail": {
"BusinessEntityID": 1,
"DisplayName": "MobiFone8"
},
"LastModified": "0001-01-01T00:00:00+07:00",
"AuthorID": 21,
"Order": 1,
"Status": 0
}
},
{
"ID": 179,
"Title": "Ngày hội “ Tám Yêu Thương” : Hành trình nhỏ - Ý nghĩa lớn",
"Description": "Diễn ra trong hơn 2 tuần, tổ chức tại 8 địa điểm và đi qua 4 Tỉnh thành (Đồng Nai – Bình Dương – Vũng Tàu – Long An), Ngày hội Tám yêu thương đã mang đến một không khí vui tươi, sôi nổi và rộn ràng những ngày cuối năm.",
"Status": 1,
"CoverUrl": "/2016/201611281713010667.jpg",
"CreatedTime": "2016-11-28T17:15:42.827+07:00",
"LastModified": "2016-11-28T17:15:42.827+07:00",
"PublishedDate": "2016-11-28T17:12:44+07:00",
"TotalRead": 57,
"TotalLike": 0,
"Liked": false,
"AuthorDetail": {
"BusinessEntityID": 546,
"DisplayName": "Trần Thị Huyền Trang"
},
"EditorID": 546,
"TopicDetail": {
"ID": 1,
"Name": "Tin sản xuất kinh doanh",
"OrganizationID": 1,
"OrganizationDetail": {
"BusinessEntityID": 1,
"DisplayName": "MobiFone8"
},
"LastModified": "0001-01-01T00:00:00+07:00",
"AuthorID": 21,
"Order": 1,
"Status": 0
}
}
]
]