Versions Compared

Key

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

...

Method

GET

URL

<DOMAIN>/system/groupRole/list

Description

API lấy danh sách nhóm quyền

Note

Api mới


  1. Header

    STTFieldSource Data Type / LengthDescriptionSample Values
    1authorizedStringToken

    Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzMDk1MTgsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6

    puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBs b3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.UGz8TQudVxEd7rp_rsLXePraHELTRWHyc7iXNvVnn14

  2. Param

    STTFieldRequiredData Type/LengthDescriptionNote
    1namefalseString

    Cho phép lọc theo tên nhóm quyền


    2limitfalseInteger

    Giới hạn bản ghi mỗi trang


    3pagefalseInteger

    Số trang


  3. Response

    STTFieldData Type/LengthDescriptionNoteSample Values
    1idInteger

    Id nhóm quyền



    2codeString

    Mã nhóm quyền



    3nameString

    Tên nhóm quyền



    4statusInteger

    Trạng thái hoạt động

    1: Hoạt động/0: Không hoạt động



3.3.2. Thêm mới nhóm quyền

Method

POST

URL

<DOMAIN>/system/groupRole/update

Description

API thêm mới nhóm quyền

Note

Api mới


  1. Header

    STTFieldSource Data Type / LengthDescriptionSample Values
    1authorizedStringToken

    Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzMDk1MTgsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6

    puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBs b3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.UGz8TQudVxEd7rp_rsLXePraHELTRWHyc7iXNvVnn14

  2. Body

    STTFieldRequiredData Type/LengthDescriptionNote
    1

    code

    trueString

    Thông tin mã nhóm quyền

    Ký tự được phép nhập: Chữ , Số, ký tự đặc biệt bao gồm . _ (Chấm và gạch dưới)

    Giới hạn: 32 ký tự

    2

    name

    trueInteger

    Thông tin tên nhóm quyền

    Giới hạn: 500 ký tự

    3

    description

    falseInteger

    Thông tin mô tả


    4

    status

    true

    Integer (default: 1)

    Cho phép chuyển trạng thái Hoạt động (1) → Không hoạt động (0)

    Mặc định là hoạt động

    5

    listResource

    false

    List<Resource> 

    Danh sách danh mục chức năng


  3. Response

    STTFieldData Type/LengthDescriptionNoteSample Values
    1idInteger

    Id nhóm quyền



    2codeString

    Mã nhóm quyền



    3nameString

    Tên nhóm quyền



    4statusInteger

    Trạng thái hoạt động

    1: Hoạt động/0: Không hoạt động


    5

    description

    String

    Thông tin mô tả



3.4.1. Mô tả màn hình Danh sách nhóm quyền

...