Thông Tin Loại Đối Tượng
1.1 Mục đích sử dụng :
Dùng để lấy thông tin của loại đối tượng
1.1. URI :
Name
Description
URI
{{gateway}}/v1/api/objectType/getByAggId
Content-Type
application/json
Method
GET
1.2. Request :
1.2.1 Request Headers :
Name
Required
Description
Remarks
X-API-Key
Y
API Key AWS
Authorization
Y
[xFile cấp cho đối tác]
1.2.2 Request Params:
Name
Type
Required
Description
Remarks
aggId
String
Y
Mã của loại đối tượng
1.2.3 Request Sample :
Request URI:
{{gateway}}/v1/api/objectType/getByAggId?aggId=0221dc12-0fb6-4980-a01c-fd8b93a65f0e
Request Params :
Name
Value
aggId
0221dc12-0fb6-4980-a01c-fd8b93a65f0e
1.3. Response :
1.3.1 Response Body - JSON:
Name
Type
Description
Remarks
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 đối tượng
1.3.2 Response Sample:
Response Success data
{
"status": 0,
"data": {
"storeConfigId": 3,
"objTypeCode": "0001",
"authStat": "A",
"makerDate": "2023-03-22T16:58:25.627+00:00",
"updateDate": "2023-06-16T02:31:22.374+00:00",
"description": "Contract",
"tenantCode": "DEMO",
"props": {},
"modNo": 0,
"updateId": "DEMO#[email protected]",
"recordStatus": "O",
"jsonSchema": {
"schema": [
{
"key": "customer_name",
"enum": [],
"type": "text",
"title": "Họ tên khách hàng",
"valueType": "string",
"isRequired": true
},
{
"key": "contract_no",
"enum": [],
"type": "text",
"title": "Mã hợp đồng",
"valueType": "string",
"isRequired": true
},
{
"key": "nation_id",
"enum": [],
"type": "text",
"title": "CMND/CCCD",
"valueType": "string",
"isRequired": true
},
{
"key": "province_id",
"enum": [],
"type": "select",
"title": "Tỉnh thành",
"remoteApi": {
"uri": "mcrdms/api/md/locality/getProvinces",
"method": "GET",
"params": [],
"idField": "id",
"valueField": "code",
"displayField": "name"
},
"valueType": "string",
"isRequired": false
},
{
"key": "ic_district",
"enum": [],
"type": "select",
"title": "Quận huyện",
"remoteApi": {
"uri": "mcrdms/api/md/locality/getDistricts",
"method": "GET",
"params": [
{
"name": "provinceId",
"type": "text",
"refField": "province_id",
"isRequired": true
}
],
"idField": "id",
"valueField": "code",
"displayField": "name"
},
"valueType": "string",
"isRequired": false
}
]
},
"objTypeName": "Contract",
"id": 1,
"aggId": "9d05e7be-11b6-44e1-bf89-198896e79b33",
"ftsValue": "'0001':1 'contract':5 'fec':3 'fecredit':2 'icollect':4",
"dmtmStoreConfig": {
"authStat": "A",
"makerDate": "2023-05-31T07:37:34.375+00:00",
"description": "S3 store demo",
"modNo": 0,
"recordStatus": "O",
"storeName": "DEMO_S3",
"definition": "{\"ref\": \"DEMO_S3\", \"type\": \"delegated\"}",
"id": 3,
"ftsValue": "'fec':1,4 'icl':2,5 's3':3,6",
"storeCode": "DEMO_S3",
"makerId": "system"
},
"makerId": "system"
}
}
Last updated