Versions Compared

Key

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

...

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

Panel
titleAPI lấy danh sách phân hệ

Method

GET

URL

system/module/list

Description

API lấy danh sách phân hệ

Note


1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1namefalseString tên phân hệ

2ignoredModuleIdfalseIntegerid phân hệ - lọc để không tìm kiếm id này

3pagetrueInteger


4limittrueInteger


3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

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

2messageString


3resultObjectObject

4

(result) loadMoreAble

Boolean


5

(result) page

Integer


6

(result) preLoadAble

Integer


7

(result) total

Integer




8

(result) items

List<Object>        

9

(items) id

IntegerId phân hệ

10

(items) name

Stringtên phân hệ

11

(items) position

Integervị trí hiển thị

12

(items) active

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

13

(items) parentName

Stringtên phân hệ cha

14

(items) parentId

Integerid phân hệ cha

15(items) hasResourceIntegerđánh dấu xem phân hệ này có cấu hình chức năng hay không (0: không cấu hình, 1: có cấu hình)



16(items) resourcesList<Object> Danh sách chức năng



17(items) childrenList<Object> Danh sách phân hệ con



18(resources) idIntegerid chức năng



19(resources) nameStringtên chức năng



20(resources) descriptionStringmô tả chức năng



21(resources) codeStringmã chức năng



22(resources) uriStringuri chức năng



23(resources) actionsStringactions chức năng



24(resources) activeIntegertrạng thái chức năng  (0: inactive, 1: active)



25

(children) id

IntegerId phân hệ con



26

(children) name

Stringtên phân hệ con



27

(children) position

Integervị trí hiển thị con

28

(children) active

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

29

(children) parentName

Stringtên phân hệ cha

30

(children) parentId

Integerid phân hệ cha

31(children) hasResourceIntegerđánh dấu xem phân hệ này có cấu hình chức năng hay không (0: không cấu hình, 1: có cấu hình)

32(children) resourcesList<Object> Danh sách chức năng phân hệ con

33(children) childrenList<Object> Danh sách phân hệ con

Panel
titleAPI Spec xem thông tin chi tiết 1 phân hệ

Method

Get

URL

system/module/get

Description

API lấy thông tin chi tiết của 1 phân hệ

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 phân hệ

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 phân hệ
5

(result) name

StringTên phân hệ
6

(result) parentName

Stringtên phân hệ cha
7

(result) parentId

Integerid phân hệ cha
8

(result) position

Integervị trí
9

(result) active

Integertrạng thái chức năng  (0: inactive, 1: active)
Panel
titleAPI thêm mới phân hệ

Method

POST

URL

system/module/insert

Description

API thêm mới phân hệ

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

1nametrueStringtên phân hệ
2activetrueIntegertrạng thái phân hệ (0: inactive, 1:active)
3apptrueStringmặc định BPM
4

parentId

falseIntegerid phân hệ cha

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  phân hệ
5

(result) name

Stringtên phân hệ
6

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
7

(result) app

String

8

(result) parentId

Integerid phân hệ cha
Panel
titleAPI chỉnh sửa phân hệ

Method

PUT

URL

system/module/update

Description

API chỉnh sửa phân hệ

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

1nametrueStringtên phân hệ
2activetrueIntegertrạng thái phân hệ (0: inactive, 1:active)
3apptrueStringmặc định BPM
4

parentId

falseIntegerid phân hệ cha
5

id

trueIntegerid phân hệ

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  phân hệ
5

(result) name

Stringtên phân hệ
6

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
7

(result) app

String

8

(result) parentId

Integerid phân hệ cha
Panel
titleAPI cập nhật trạng thái phân hệ

Method

PUT

URL

system/module/updateStatus

Description

API cập nhật trạng thái phân hệ

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

1

id

trueIntegerid phân hệ
2activetrueIntegertrạng thái phân hệ (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
2messageString

3resultObjectObject
4

(result) id

Integerid  phân hệ
5

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
Panel
titleAPI cập nhật thứ tự phân hệ

Method

PUT

URL

system/module/reorderModule

Description

API cập nhật thứ tự phân hệ

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

1

id

trueIntegerid phân hệ
2

parentId

trueIntegerid phân hệ cha
3

oldPosition

trueIntegervị trí cũ
4

newPosition

trueIntegervị trí mới

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 xóa phân hệ

Method

DELETE

URL

system/module/delete

Description

API xóa phân hệ

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

1

id

trueIntegerid phân hệ

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) totalDeleted

Integersố bản ghi đã xóa
5

(result) modules

List<Object>danh sách các modules
6

(modules) id

Integerid phân hệ
7

(modules) name

Stringtên phân hệ
Panel
titleAPI xóa nhiều phân hệ

Method

POST

URL

system/module/deleteBatch

Description

API xóa nhiều phân hệ

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

1

ids

trueList<Integer>danh sách id phân hệ cần xóa

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) totalDeleted

Integersố bản ghi đã xóa
5

(result) modules

List<Object>danh sách các modules
6

(modules) id

Integerid phân hệ
7

(modules) name

Stringtên phân hệ
Panel
titleAPI thêm mới chức năng vào phân hệ

Method

POST

URL

system/moduleResource/insertBatch

Description

API thêm mới chức năng vào phân hệ

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

1

moduleId

trueIntegerid phân hệ
2

resourceIds

trueList<Integer>danh sách id chức năng

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

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

3resultList<Object>List<Object>
4

(result) id

Integer

5

(result) moduleId

Integerid phân hệ
6

(result) resourceId

Integerid chức năng
7

(result) position

Integervị trí
Panel
titleAPI xóa chức năng vào phân hệ

Method

POST

URL

system/moduleResource/deleteBatch

Description

API xóa chức năng vào phân hệ

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

1

moduleId

trueIntegerid phân hệ
2

resourceIds

trueList<Integer>danh sách id chức năng cần xóa

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

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

3resultIntegersố lượng đã xóa


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

...