Versions Compared

Key

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

...

Panel
titleAPI Spec get danh sách chức năng

Method

Get

URL

/system/resource/list

Description

API lấy danh sách chức năng có phân trang

Note

API cũ, sửa lạ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

1namefalseStringTên chức năng
2limittrueInteger

3pagetrueInteger

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 chức năng
10

(items) code

StringMã chức năng
11

(items) name

StringTên chức năng
12

(items) active

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

(items) uri

Stringđường dẫn
14

(items) actions

Stringdanh sách các hành động
Panel
titleAPI Spec get chi tiết chức năng

Method

Get

URL

/system/resource/get

Description

API chi tiết chức năng

Note

API cũ, sửa lạ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 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

3resultObjectObject
4

(result) id

IntegerId chức năng
5

(result) code

StringMã chức năng
6

(result) name

StringTên chức năng
7

(result) active

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

(result) uri

Stringđường dẫn
9

(result) actions

Stringdanh sách các hành động
Panel
titleAPI Spec thêm mới chức năng

Method

POST

URL

/system/resource/insert

Description

API thêm mới chức năng

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

code

trueStringMã chức năng
2

name

trueStringTên chức năng
3

active

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

uri

trueStringđường dẫn
5

actions

trueStringdanh sách các hành động

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, 107: thất bại do trùng thông tin, còn lại: thất bại
2messageString

3resultObjectObject
4

(result) id

IntegerId chức năng
5

(result) code

StringMã chức năng
6

(result) name

String

Tên chức năng


7

(result) active

Integer

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


8

(result) uri

Stringđường dẫn
9

(result) actions

Stringhành động
Panel
titleAPI Spec cập nhật chức năng

Method

PUT

URL

/system/resource/update

Description

API cập nhật thông tin chức năng

Note

API cũ, sửa lạ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

code

trueStringMã chức năng
2

name

trueStringTên chức năng
3

active

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

uri

trueStringđường dẫn
5

actions

trueStringdanh sách các hành động
6

id

trueIntegerid chức năng
7

changed

trueIntegerđánh dấu xem có bỏ chọn quyền hay thay đổi trạng thái hay không

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, 107: thất bại do trùng thông tin, 108: chức năng đã được cấu hình trong nhóm quyền, còn lại: thất bại
2messageString

3resultObjectObject
4

(result) id

IntegerId chức năng
5

(result) code

StringMã chức năng
6

(result) name

String

Tên chức năng


7

(result) active

Integer

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


8

(result) uri

Stringđường dẫn
9

(result) actions

Stringhành động
10

(result) usageRecords

List<Object>danh sách các user/nhóm quyền đang sử dụng chức năng
11

(usageRecords) code

Stringmã chức năng
12

(usageRecords) name

Stringtên chức năng
13

(usageRecords) groupRoleCode

Stringmã nhóm quyền
14

(usageRecords) groupRoleName

Stringtên nhóm quyền
15

(usageRecords) employeeName

Stringtên user
16

(usageRecords) employeeEmail

Stringemail user

...