Versions Compared

Key

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

...

Panel
titleAPI Spec xóa loại tài liệu

Method

DELETE

URL

/application/attachmentType/delete

Description

API xóa loại 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 loại 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

Panel
titleAPI Spec get danh sách tài liệu

Method

Get

URL

/application/attachment/list

Description

API lấy danh sách tài liệu có phân trang, tab tất cả 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

1limittrueInteger

2pagetrueInteger

3attachmentTypeIdfalseIntegerid loại tài liệu
4createdByfalseIntegerid người tạo
5startTimefalseStringthời gian tạo (từ ngày)
6endTimefalseStringthời gian tạo (đến ngày)
7tenderPackageIdfalseIntegerid gói thầu
8caseIdfalseIntegerid dự án
9workflowIdfalseIntegerid quy trình
10nodeIdfalseIntegerid bước trong quy trình
11departmentIdfalseIntegerid phòng ban

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

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

3resultObjectObject
4

(result) loadMoreAble

Boolean

5

(result) page

Integer

6

(result) preLoadAble

Integer

Trạng thái (0: Hủy, 1: Đang thực hiện, 2: Hoàn thành)


7

(result) total

Integer

ID của hồ sơ


8

(result) items

List<Object>        
9

(items) id

IntegerId tài liệu
10

(items) name

StringTên tài  liệu
11

(items) folder

Stringthư mục
12

(items) createdBy

StringNgười tạo
13

(items) updatedTime

Timestampcập nhật lần cuối
14

(items) version

Stringversion tài liệu
15

(items) file_ext

Stringloại file
16

(items) file_url

Stringurl tải file
17

(items) file_size

Integerdung lượng file
Panel
titleAPI Spec xem thông tin chi tiết 1 tài liệu

Method

Get

URL

/application/attachment/detail

Description

API lấy thông tin chi tiết của 1 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

3resultObjectObject
4

(result) id

IntegerId tài liệu

(result) code

Stringmã tài  liệu
5

(result) name

StringTên tài  liệu
6

(result) version

Stringversion tài liệu
7

(result) type

Stringloại tài liệu
8

(result)  documentNumber

Stringsố hiệu văn bản
9

(result) workflowName

Stringtên quy trình
10

(result) workflowCaseName

Stringbước quy trình
11

(result) file_size

Integerdung lượng file
12

(result) file_ext

Stringloại file
13(result) createdByStringtên người tạo
14(result) createdTimeTimestampthời gian tạo
15(result) createdTimeStringtên người phê duyệt
16(result) createdTimeTimestampthời gian phê duyệt cuối
17(result) createdTimeTimestampthời gian cập nhật gần nhất
18(result) createdTimeStringtên gói thầu
19(result) createdTimeStringtên dự án
20(result) createdTimeStringđơn vị quản lý
21(result) createdTimeTimestamp thời gian lưu trữ tính từ phiên bản phê duyệt cuối
22(result) createdTimeTimestampthời gian lưu trữ phiên bản trung gian



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

...