[News] Lấy chi tiết 1 tin tức - duyit2405/portal-app GitHub Wiki

Request

  • Method: GET

  • URL: /api/News?id={NewsId}

  • FULL URL WITH SERVER: /api/News?id={NewsId}

  • Header: Authorization: Bearer {access token}

  • Description: Lấy thông tin chi tiết tin tứ

  • Note For Response:

Parameter URL: N/A

  • Response:
{
  "ID": 194,
  "Title": "MOBIFONE TỈNH LÂM ĐỒNG CHÀO ĐÓN CỬA HÀNG BÁN LẺ THỨ 6 TẠI ĐỨC TRỌNG",
  "ContentText": "Nội dung",
  "Description": "Mô tả ngắn ngọn",
  "Tags": "",
  "Status": 1,
  "CoverUrl": "/2016/201707121613452498.jpg",
  "CreatedTime": "2017-07-12T16:35:15.437+07:00",
  "LastModified": "2017-07-12T16:35:15.437+07:00",
  "PublishedDate": "2017-07-12T16:10:17+07:00",
  "TotalRead": 76,
  "TotalLike": 1,
  "Liked": false,
  "AuthorDetail": {
    "BusinessEntityID": 546,
    "DisplayName": "Trần Thị Huyền Trang",
    "Avatar": "/app/img/default_avatar.jpeg"
  },
  "EditorID": 546,
  "TopicDetail": {
    "ID": 1,
    "Name": "Tin sản xuất kinh doanh",
    "OrganizationID": 1,
    "OrganizationDetail": {
      "BusinessEntityID": 0
    },
    "LastModified": "2015-12-09T10:35:31.263+07:00",
    "AuthorID": 21,
    "Order": 1,
    "Status": 0
  }
}