...
| Panel |
|---|
| title | API 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 |
|---|
STTSTT | Field | Source Data Type / Length | Description | Sample Values |
|---|
| 1 | authorization | String | Token | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc |
2. ParamSTT | Field | Required | Data Type / Length | Description | Note |
|---|
| 1 | name | false | String | Tên loại tài liệu |
| | 2 | limit | true | Integer |
|
| | 3 | page | true | Integer |
|
| | 54 | sort | true | String | Giá trị mặc định "ASC" or "DESC" |
|
3. Response / Incoming Data Specification| STT | Field | Data Type / Length | Description | Note |
|---|
| 1 | code | Integer | 0: thành công, != 0 thất bại |
| | 2 | message | String |
|
| | 3 | result | Object | Object |
| | 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 | Integer | Id loại tài liệu |
| | 10 | (items) code | String | Mã loại tài liệu |
| | 11 | (items) name | String | Tên loại tài liệu |
| | 12 | (items) status | Integer | Trạ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 | Integer | thời gian lưu trữ |
|
|
| Panel |
|---|
| title | API 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 |
|---|
STT | Field | Source Data Type / Length | Description | Sample Values |
|---|
| 1 | authorization | String | Token | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc |
2. Request bodySTT | Field | Required | Data Type / Length | Description | Note |
|---|
| 1 | id | false | Integer | id loại tài liệu (nếu không có thì thêm mới nếu có thì update) |
| | 2 | name | true | String | Tên loại tài liệu |
| | 3 | deleteAfterMonth | true | Integer | thời gian lưu trữ |
| | 4 | status | true | Integer | trạng thái hoạt động (0: inactive, 1:active) |
|
3. Response / Incoming Data Specification| STT | Field | Data Type / Length | Description | Note |
|---|
| 1 | code | Integer | 0: thành công, != 0 thất bại |
| | 2 | message | String | message trả về |
| | 3 | result | Object | Object |
| | 4 | (result) id | Integer | Id loại tài liệu |
| | 5 | (result) code | String | Mã loại tài liệu |
| | 6 | (result) name | String | Tên loại tài liệu |
| | 7 | (result) status | Integer | Trạ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 | Integer | thời gian lưu trữ |
|
|
| Panel |
|---|
| title | API 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 |
|---|
STT | Field | Source Data Type / Length | Description | Sample Values |
|---|
| 1 | authorization | String | Token | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc |
2. ParamSTT | Field | Required | Data Type / Length | Description | Note |
|---|
| 1 | id | true | Integer | id loại tài liệu |
|
3. Response / Incoming Data Specification| STT | Field | Data Type / Length | Description | Note |
|---|
| 1 | code | Integer | 0: thành công, != 0 thất bại |
| | 2 | message | String |
|
|
|
3.4 Mô tả các trường dữ liệu trên màn hình:
...