Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleAPI xóa tài liệu

Method

DELETE

URL

/application/attachment/delete

Description

API xóa tài liệu

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. Param

STT     

Field

Required

Data Type / Length

Description

Note

1idtrueIntegerid tài liệu

3. Response / Incoming Data Specification

STT  

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

id tài liệu
Panel
titleAPI thêm mới get version tài liệu / chỉnh sửa (không theo quy trình)

Method

POSTGET

URL

/application/attachment/insertOrUpdateversion

Description

API thêm mới get version tài liệu/ chỉnh sửa (không theo quy trình)

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody

STT     

Field

Required

Data Type / Length

Description

Note

1idattachmentstrueList<String>

3. Response / Incoming Data Specification

Integer
STT   

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2
documentNumber
message
true3attachmentTypeIdtrue
String
Stringsố hiệu văn bản


3resultList<Object>

4(result) idInteger
loại
id tài liệu
4retentionExpiresTimetrueTimestamp 
thời gian lưu trữ tính từ phiên bản phê duyệt cuối

5
intermediateCleanupTimetrueTimestampthời gian lưu trữ phiên bản trung gian6extensiontrueStringloại file (xlsx, doc..)
(result) versionStringversion    
6(result) fileUrlStringđường dẫn tải file
7(result) extensionString

8(result) sizeString

                 

id folder cha
Panel
titleAPI thêm mới tài liệu / chỉnh sửa (không theo quy trình)

Method

POST

URL

/application/attachment/insertOrUpdate

Description

API thêm mới tài liệu/ chỉnh sửa (không theo quy trình)

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody

STT     

Field

Required

Data Type / Length

Description

Note

1idtrueIntegerid tài liệu
2documentNumbertrueStringsố hiệu văn bản
3attachmentTypeIdtrueIntegerloại tài liệu
4retentionExpiresTimetrueTimestamp thời gian lưu trữ tính từ phiên bản phê duyệt cuối
5intermediateCleanupTimetrueTimestampthời gian lưu trữ phiên bản trung gian
6extensiontrueStringloại file (xlsx, doc..) lấy được khi upload file
7nametrueStringtên file - lấy được khi upload file
8sizetrueIntegerdung lượng - lấy được khi upload file
9fileTypetrueStringlấy được khi upload file
7

10
name
fileUrltrueString
tên
đường dẫn tải file - lấy được khi upload file
8

11
size
mineTypetrue
Integer
String
dung lượng -
lấy được khi upload file
9fileTypetrueStringlấy được khi upload file10fileUrltrueStringđường dẫn tải file - lấy được khi upload file11mineTypetrueStringlấy được khi upload file12folderIdtrueInteger

12folderIdoptionIntegerid folder chatrường hợp upload công việc không theo quy trình, upload thư mục không theo quy trình
13scopeoptionInteger0=FREE (không theo quy trình), 1=WORK (công việc)
14workflowIdoptionIntegerid quy trình (lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)
15workflowNameoptionStringtên quy trình  (lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)
16workflowCaseIdoptionIntegerid hồ sơ (potId lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)
17workflowCaseNameoptionStringtên hồ sơ (lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)
18stepKeyoptionIntegerid bước (lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)
19stepNameoptionStringtên bước (lấy thông tin từ core khi get chi tiết công việc => có thể hỏi Tuấn)

3. Response / Incoming Data Specification

STT   

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObject

4(result) idIntegerid tài liệu
5(result) versionStringversion    

                 

3.4 Mô tả các trường dữ liệu trên màn hình:

...