GET api/Resources/GetFileAndFolderList?pids={pids}&range={range}&Page={Page}&PageSize={PageSize}&SearchString={SearchString}&Lang={Lang}

Đọc danh sách tài nguyên để hiển thị ở trang quản lý tài nguyên (Resources). Để tải file về (là file nếu Type=0) thì dùng API api/Utils/GetDownloadAttachFile/ truyền id=id của file cần tải. Nếu là thư mục (Type=1) thì mở thư mục đó vẫn bằng API này với đường dẫn là cuỗi id chứa trong pids

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pids

Danh sách ID đường dẫn đến thư mục hiện hành.

string

Default value is

range

Phạm vi hiển thị: 0 = Dữ liệu của tôi. 1 = Chia sẻ với tôi (thực tế không dùng) mà dùng API khác. 2 = Dùng chung.

integer

Default value is 0

Page

Số trang hiện tại cần lấy. Mặc định là 1.

integer

Default value is 1

PageSize

Số lượng tài nguyên trên mỗi trang. Mặc định là 8.

integer

Default value is 8

SearchString

Chuỗi tìm kiếm để lọc danh sách tài nguyên theo tiêu đề hoặc nội dung.

string

Default value is

Lang

Ngôn ngữ của nội dung trả về. Có thể là "vi" (tiếng Việt) hoặc "en" (tiếng Anh). Mặc định là "vi".

string

Default value is vi

Body Parameters

None.

Response Information

Resource Description

Trả về một đối tượng chứa thông tin tài nguyên.

FileResourceModel
NameDescriptionTypeAdditional information
Items

Danh sách tệp tin, thư mục khung nội dung

Collection of TFileResource

None.

FolderTree

Danh sách thư mục trên cây thư mục

Collection of TFolderResourceView

None.

FolderRecordCount

Số mục trên cây thư mục

integer

None.

FolderPageCount

Số trang của cây thư mục

integer

None.

fid

ID Thư mục hiện hành

integer

None.

pids

Danh sách ID đường dẫn hiện hành

string

None.

SearchString

Xâu tìm kiếm.

string

None.

Page

Trang hiện tại đang lấy.

integer

None.

PageSize

Cỡ trang (số lượng tài nguyên trên mỗi trang).

integer

None.

PageCount

Tổng số trang.

integer

None.

RecordCount

Tổng số bản ghi.

integer

None.

en

Ngôn ngữ đang áp dụng (1 - tiếng Anh).

integer

None.

UserID

ID người dùng hiện tại

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "$id": "2",
      "ID": 1,
      "FolderResourceID": 2,
      "DisplayName": "sample string 3",
      "OriginName": "sample string 4",
      "ParentName": "sample string 5",
      "FileType": 6,
      "Type": 7,
      "Attribute": 8,
      "Share": 9,
      "Note": "sample string 10",
      "Size": 11,
      "OwnerID": 12,
      "CreatedUserID": 1,
      "CreatedTime": "2026-01-09T22:12:10.6162727+07:00"
    },
    {
      "$ref": "2"
    }
  ],
  "FolderTree": [
    {
      "$id": "3",
      "ID": 1,
      "ParentID": 2,
      "DisplayName": "sample string 3",
      "OriginName": "sample string 4",
      "ParentName": "sample string 5",
      "FileType": 6,
      "Type": 7,
      "Attribute": 8,
      "Share": 9,
      "Note": "sample string 10",
      "Size": 11,
      "ShowLevel": 12,
      "OwnerID": 13,
      "CreatedUserID": 1,
      "CreatedTime": "2026-01-09T22:12:10.6162727+07:00"
    },
    {
      "$ref": "3"
    }
  ],
  "FolderRecordCount": 1,
  "FolderPageCount": 2,
  "fid": 3,
  "pids": "sample string 4",
  "SearchString": "sample string 5",
  "Page": 6,
  "PageSize": 7,
  "PageCount": 8,
  "RecordCount": 9,
  "en": 10,
  "UserID": 11
}