DS Thư Mục Theo Phân Trang

1.1 Mục đích sử dụng :

Dùng để lấy danh sách thư mục theo phần trang

1.1. URI :

NameDescription

URI

{{gateway}}/v1/api/node/pivotPaging

Content-Type

application/json

Method

POST

1.2. Request :

1.2.1 Request Headers :

NameRequiredDescriptionRemarks

X-API-Key

Y

API Key AWS

Authorization

Y

[xFile cấp cho đối tác]

1.2.2 Request Body - JSON:

NameTypeRequiredDescriptionRemarks

startRow

Long

Y

row bắt đầu

endRow

Long

Y

row kết thúc

filterModel

Object

Y

lọc data theo cột

sortModel

Array Object

Y

sắp xếp data theo cột

1.2.3 Request Params:

NameTypeRequiredDescriptionRemarks

hierarchical

Boolean

Y

Lấy DS folder theo loại

True : theo phân cấp / False : không phân cấp

starredOnly

Boolean

Y

Lấy DS folder được đánh sao

True : lấy theo đánh sao / False : lấy tất cả

archiveOnly

Boolean

Y

Lấy DS folder được lưu trữ

True : lấy theo lưu trữ / False : lấy tất cả

sharedLinkOnly

Boolean

Y

Lấy DS folder được chia sẽ

True : lấy theo được chia sẽ / False : lấy tất cả

1.2.4 Request Sample :

Request URI:

{{gateway}}/v1/api/node/pivotPaging?archiveOnly=false&hierarchical=true&starredOnly=false&sharedLinkOnly=false

Request Body - JSON:

Value

{"endRow": 50, "filterModel": {"objTypeId": {"filter": 1, "filterType": "text", "type": "equals"}}, "groupKeys": [], "pivotCols": [], "pivotMode": false, "rowGroupCols": [], "sortModel": [{"colId": "name", "sort": "asc"}], "startRow": 0, "valueCols": []}

1.3. Response :

1.3.1 Response Body - JSON:

NameTypeDescriptionRemarks

status

Long

Trạng thái kết quả api trả về

0 : Thành công

1 : Thất bại

data

Object

Kết quả api trả về

DS thư mục

1.3.2 Response Sample:

Response Success data
{
    "status": 0,
    "data": {
        "data": [
            {
                "name": "ABC",
                "nodePath": "DEMO.d2144",
                "id": 2144,
                "refCode": "0d0d187ccd7c5173611cb388a634b7a40790e143463c1fc7ee",
                "mask": 65535,
                "owner": "DEMO#admin@demo.com.vn",
                "makerId": "DEMO#admin@demo.com.vn",
                "makerDate": "2024-02-02T10:11:22.561+00:00",
                "updateDate": "2024-03-18T10:49:39.992+00:00",
                "updateId": "DEMO#admin@demo.com.vn",
                "type": "FOLDER",
                "sizeText": "",
                "starAggId": "54e352bf-31ca-4352-bcbe-0caad06c844e",
                "enableIndexContent": true
            }
        ],
        "lastRow": 1,
        "secondaryColumnFields": []
    }
}

Last updated