[News] Lấy tin tức mới nhất cho loại tin tức Đơn Vị - duyit2405/portal-app GitHub Wiki

Request

Parameter URL: N/A

top = 4 (Fixed: là lay 4 tin mới nhất)
organizationId (là thuộc đơn vị nào, lấy từ response sau khi đăng nhập thành công)

  • Note For Response:
  • CoverUrl: danh cho hình to ngoài cùng của tin tức. Nếu value = "/app/img/mobifone.jpg" là dành cho default nếu không có hình. Nếu có hình sẽ có map url rõ ràng.
  • Response:
[
    {
        "ID": 1,
        "Title": "đá",
        "Description": "dsad",
        "Status": 1,
        "CoverUrl": "/app/img/mobifone.jpg",
        "CreatedTime": "2017-08-27T21:38:20.013+07:00",
        "LastModified": "2017-08-27T21:38:20.013+07:00",
        "PublishedDate": "2017-08-27T21:38:13+07:00",
        "TotalRead": 3,
        "TotalLike": 0,
        "Liked": false,
        "AuthorDetail": {
            "BusinessEntityID": 21,
            "DisplayName": "Administrator"
        },
        "EditorID": 21,
        "TopicDetail": {
            "ID": 1,
            "Name": "aaa",
            "OrganizationID": 0,
            "OrganizationDetail": {
                "BusinessEntityID": 1,
                "DisplayName": "MobiFone8"
            },
            "LastModified": "0001-01-01T00:00:00+07:00",
            "AuthorID": 21,
            "Order": 1,
            "Status": 0
        }
    }
]