Versions Compared

Key

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

...

STT

Bước

Mô tả






















3.3 API Spec: <gắn link tài liệu mô tả API vào đây> 

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

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

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

3pagetrueInteger

5sorttrueStringGiá 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ữ

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

...