Versions Compared

Key

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

...

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

Method

Get

URL

/application/attachmentType/list

Description

API lấy danh sách loại tài liệu có phân trang

Note

API mới

1. Headers

STTSTT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. Param

STT

Field

Required

Data Type / Length

Description

Note

1name falseStringTên loại tài liệu
2limittrueInteger

3pagetrueInteger

54sorttrueStringGiá trị mặc định "ASC" or "DESC"

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 loại tài liệu
10

(items) code

StringMã loại tài liệu
11

(items) name

StringTên loại tài liệu
12

(items) status

IntegerTrạng thái (0: inactive, 1: active)
13

(items) usedCount 

IntegerĐánh dấu xem đã được sử dụng hay chưa (nếu > 0 đã được sử dụng => không chi xóa)
14

(items) deleteAfterMonth

Integerthời gian lưu trữ

 

Panel
titleAPI Spec thêm mới loại tài liệu

Method

POST

URL

/application/attachmentType/insertOrUpdate

Description

API thêm mới/ cập nhật 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. Request body

STT 

Field

Required

Data Type / Length

Description

Note

1idfalseIntegerid loại tài liệu (nếu không có thì thêm mới nếu có thì update) 
2name trueStringTên loại tài liệu
3deleteAfterMonthtrueIntegerthời gian lưu trữ
4statustrueIntegertrạng thái hoạt động (0: inactive, 1:active)

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageStringmessage trả về
3resultObjectObject
4

(result) id

IntegerId loại tài liệu
5

(result) code

StringMã loại tài liệu
6

(result) name

StringTên loại tài liệu
7

(result) status

IntegerTrạng thái (0: inactive, 1: active)
8

(result) usedCount 

IntegerĐánh  xem đã được sử dụng hay chưa (nếu > 0 đã được sử dụng => không chi xóa)
9

(result) deleteAfterMonth

Integerthời gian lưu trữ
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

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

...