DS Đối Tượng Theo Phân Trang
1.1 Mục đích sử dụng :
Dùng để lấy danh sách đối tượng theo phần trang
1.1. URI :
URI
{{gateway}}/v1/api/object/pivotPaging
Content-Type
application/json
Method
POST
1.2. Request :
1.2.1 Request Headers :
X-API-Key
Y
API Key AWS
Authorization
Y
[xFile cấp cho đối tác]
1.2.2 Request Body - JSON:
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 Sample :
Request URI:
{{gateway}}/v1/api/object/pivotPaging
Request Body form-data :
{"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:
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 data của đối tượng
1.3.2 Response Sample:
{
"status": 0,
"data": {
"data": [
{
"companyCode": "ABC",
"buId": -1,
"makerDate": "2023-01-12T11:39:53.809+00:00",
"code": "20190720-0010111",
"objTypeId": -3,
"tenantCode": "BROTHER",
"props": {
"nid": "132200244",
"customerName": "NGUYỄN VĂN THIẾT D"
},
"modNo": 0,
"recordStatus": "O",
"id": 4844,
"aggId": "a166d38e-b104-11ee-a880-9bb78e5c6824",
"makerId": "BROTHER#[email protected]"
}
],
"lastRow": 1,
"secondaryColumnFields": []
}
}
Last updated