DS Tài Liệu Theo Đối Tượng

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

Dùng để lấy danh sách tài liệu theo mã đối tượng được nhóm theo loại tài liệu

1.1. URI :

NameDescription

URI

{{gateway}}/v1/api/doc/getObjWithDocsGroupedByDocType

Content-Type

application/json

Method

GET

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 Params :

NameTypeRequiredDescriptionRemarks

objId

String

Y

Object's AggId

1.2.3 Request Sample :

Request URI:

{{gateway}}/v1/api/doc/getObjWithDocsGroupedByDocType?objId=0221dc12-0fb6-4980-a01c-fd8b93a65f0e

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ề

Thông tin của tài liệu

1.3.2 Response Sample:

Response Success data
{
    "status": 0,
    "data": {
        "groupedDocs": [
            {
                "docType": {
                    "storeConfigId": 2,
                    "authStat": "A",
                    "makerDate": "2024-03-17T16:08:43.187+00:00",
                    "description": "Hợp Đồng",
                    "tenantCode": "BROTHER",
                    "props": {},
                    "modNo": 0,
                    "docTypeName": "Hợp Đồng",
                    "recordStatus": "O",
                    "jsonSchema": {},
                    "docTypeCode": "DT-001",
                    "id": -7,
                    "aggId": "572ff538-2db2-4241-9211-1971e5fc3959",
                    "ftsValue": "'-001':2 'brother':3 'dong':5 'dt':1 'hop':4",
                    "makerId": "system"
                },
                "docs": [
                    {
                        "tenantCode": "BROTHER",
                        "name": "TTB 1.png",
                        "nodePath": "BROTHER.f342272",
                        "id": 342272,
                        "refCode": "2c071e7316b1c4183177b229779bb5813",
                        "owner": "BROTHER#idms.brother@a4b.vn",
                        "makerId": "BROTHER#idms.brother@a4b.vn",
                        "makerDate": "2024-03-20T04:02:28.136+00:00",
                        "updateDate": "2024-03-20T04:02:28.136+00:00",
                        "updateId": "BROTHER#idms.brother@a4b.vn",
                        "type": "DOC",
                        "size": 74093.0,
                        "sizeText": "72.4 KB",
                        "fileName": "TTB 1.png",
                        "mimeType": "image/png",
                        "storeCode": "S3_XFILE",
                        "objId": "a166d38e-b104-11ee-a880-9bb78e5c6824",
                        "docTypeId": -7,
                        "recordStatus": "O",
                        "authStat": "A",
                        "modNo": 0,
                        "permission": {
                            "delete": true,
                            "download": true,
                            "view": true
                        }
                    },
                    {
                        "tenantCode": "BROTHER",
                        "name": "screenshot_1690166007.png",
                        "nodePath": "BROTHER.f342270",
                        "id": 342270,
                        "refCode": "2c071e7316b1c4183177b229779bb5813",
                        "owner": "BROTHER#idms.brother@a4b.vn",
                        "makerId": "BROTHER#idms.brother@a4b.vn",
                        "makerDate": "2024-03-20T02:13:06.450+00:00",
                        "updateDate": "2024-03-20T02:13:09.410+00:00",
                        "updateId": "ABC#idms.ABC@a4b.vn",
                        "type": "DOC",
                        "size": 57283.0,
                        "sizeText": "55.9 KB",
                        "fileName": "screenshot_1690166007.png",
                        "mimeType": "image/png",
                        "storeCode": "S3_XFILE",
                        "objId": "a166d38e-b104-11ee-a880-9bb78e5c6",
                        "docTypeId": -7,
                        "recordStatus": "O",
                        "authStat": "A",
                        "modNo": 1,
                        "permission": {
                            "delete": true,
                            "download": true,
                            "view": true
                        }
                    }
                ]
            }
        ],
        "permission": {
            "upload": true
        }
    }
}

Last updated