GET Api/Role/GetRoles?type={type}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Role
NameDescriptionTypeAdditional information
Name

string

String length: inclusive between 0 and 20

DisplayName

string

None.

Remark

string

None.

FullNames

Collection of MutiLanguage

None.

Remarks

Collection of MutiLanguage

None.

FullNameTransId

globally unique identifier

None.

RemarkTransId

globally unique identifier

None.

IsSystem

boolean

None.

PermissionList

Collection of Permission

None.

RolePermissions

Collection of RolePermission

None.

Id

globally unique identifier

None.

ClientId

globally unique identifier

None.

IsActive

boolean

Required

IsDeleted

boolean

Required

CreateDate

date

Required

UpdateDate

date

None.

CreateBy

globally unique identifier

Required

UpdateBy

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "DisplayName": "sample string 2",
    "Remark": "sample string 3",
    "FullNames": [
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      },
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      }
    ],
    "Remarks": [
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      },
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      }
    ],
    "FullNameTransId": "58d97536-a606-407a-b681-34b6d95e5828",
    "RemarkTransId": "9d47de45-2802-430a-9e56-99fa77bdae03",
    "IsSystem": true,
    "PermissionList": [
      {
        "Module": "sample string 1",
        "Function": "sample string 2",
        "Description": "sample string 3",
        "DescriptionTC": "sample string 4",
        "DescriptionSC": "sample string 5",
        "Seq": 6,
        "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
        "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
        "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
      },
      {
        "Module": "sample string 1",
        "Function": "sample string 2",
        "Description": "sample string 3",
        "DescriptionTC": "sample string 4",
        "DescriptionSC": "sample string 5",
        "Seq": 6,
        "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
        "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
        "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
      }
    ],
    "RolePermissions": [
      {
        "PermissionId": "7191eb38-ea70-43cb-bc3b-8720b1050601",
        "RoleId": "471ea41e-7471-4713-b846-703adc779b95",
        "Permission": {
          "Module": "sample string 1",
          "Function": "sample string 2",
          "Description": "sample string 3",
          "DescriptionTC": "sample string 4",
          "DescriptionSC": "sample string 5",
          "Seq": 6,
          "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
          "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
          "IsActive": true,
          "IsDeleted": true,
          "CreateDate": "2021-05-13 17:13:09",
          "UpdateDate": "2021-05-13 17:13:09",
          "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
          "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
        },
        "Id": "19137df9-37ee-4081-9193-81e641616433",
        "ClientId": "9a0ec838-7bda-4ac8-8c46-5b2514c44715",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "9688c2b3-159d-43dc-9b1f-dd1f9cd7181b",
        "UpdateBy": "b2a1bfc7-0329-4e21-8909-259e4b39bb8d"
      },
      {
        "PermissionId": "7191eb38-ea70-43cb-bc3b-8720b1050601",
        "RoleId": "471ea41e-7471-4713-b846-703adc779b95",
        "Permission": {
          "Module": "sample string 1",
          "Function": "sample string 2",
          "Description": "sample string 3",
          "DescriptionTC": "sample string 4",
          "DescriptionSC": "sample string 5",
          "Seq": 6,
          "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
          "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
          "IsActive": true,
          "IsDeleted": true,
          "CreateDate": "2021-05-13 17:13:09",
          "UpdateDate": "2021-05-13 17:13:09",
          "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
          "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
        },
        "Id": "19137df9-37ee-4081-9193-81e641616433",
        "ClientId": "9a0ec838-7bda-4ac8-8c46-5b2514c44715",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "9688c2b3-159d-43dc-9b1f-dd1f9cd7181b",
        "UpdateBy": "b2a1bfc7-0329-4e21-8909-259e4b39bb8d"
      }
    ],
    "Id": "f6a6d90c-2ec8-4177-8e89-b1dbad1b4dce",
    "ClientId": "6e4f0f19-a331-43d8-9cb0-9c2ad0c993bf",
    "IsActive": true,
    "IsDeleted": true,
    "CreateDate": "2021-05-13 17:13:09",
    "UpdateDate": "2021-05-13 17:13:09",
    "CreateBy": "e6426ab7-a287-43f7-ab46-c54206883892",
    "UpdateBy": "e3128450-4d4e-492e-9933-299f8cb09b7e"
  },
  {
    "Name": "sample string 1",
    "DisplayName": "sample string 2",
    "Remark": "sample string 3",
    "FullNames": [
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      },
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      }
    ],
    "Remarks": [
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      },
      {
        "Lang": {
          "Text": "sample string 1",
          "Code": "sample string 2",
          "Id": 3
        },
        "Language": 0,
        "Desc": "sample string 1"
      }
    ],
    "FullNameTransId": "58d97536-a606-407a-b681-34b6d95e5828",
    "RemarkTransId": "9d47de45-2802-430a-9e56-99fa77bdae03",
    "IsSystem": true,
    "PermissionList": [
      {
        "Module": "sample string 1",
        "Function": "sample string 2",
        "Description": "sample string 3",
        "DescriptionTC": "sample string 4",
        "DescriptionSC": "sample string 5",
        "Seq": 6,
        "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
        "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
        "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
      },
      {
        "Module": "sample string 1",
        "Function": "sample string 2",
        "Description": "sample string 3",
        "DescriptionTC": "sample string 4",
        "DescriptionSC": "sample string 5",
        "Seq": 6,
        "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
        "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
        "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
      }
    ],
    "RolePermissions": [
      {
        "PermissionId": "7191eb38-ea70-43cb-bc3b-8720b1050601",
        "RoleId": "471ea41e-7471-4713-b846-703adc779b95",
        "Permission": {
          "Module": "sample string 1",
          "Function": "sample string 2",
          "Description": "sample string 3",
          "DescriptionTC": "sample string 4",
          "DescriptionSC": "sample string 5",
          "Seq": 6,
          "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
          "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
          "IsActive": true,
          "IsDeleted": true,
          "CreateDate": "2021-05-13 17:13:09",
          "UpdateDate": "2021-05-13 17:13:09",
          "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
          "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
        },
        "Id": "19137df9-37ee-4081-9193-81e641616433",
        "ClientId": "9a0ec838-7bda-4ac8-8c46-5b2514c44715",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "9688c2b3-159d-43dc-9b1f-dd1f9cd7181b",
        "UpdateBy": "b2a1bfc7-0329-4e21-8909-259e4b39bb8d"
      },
      {
        "PermissionId": "7191eb38-ea70-43cb-bc3b-8720b1050601",
        "RoleId": "471ea41e-7471-4713-b846-703adc779b95",
        "Permission": {
          "Module": "sample string 1",
          "Function": "sample string 2",
          "Description": "sample string 3",
          "DescriptionTC": "sample string 4",
          "DescriptionSC": "sample string 5",
          "Seq": 6,
          "Id": "3899a038-9876-4d75-bc49-3af2c884498a",
          "ClientId": "92b35739-27dc-4616-baa8-9245a5875dad",
          "IsActive": true,
          "IsDeleted": true,
          "CreateDate": "2021-05-13 17:13:09",
          "UpdateDate": "2021-05-13 17:13:09",
          "CreateBy": "fdfe3bb7-0ba0-4a6f-8f30-afedd4c17422",
          "UpdateBy": "dfaa8f1a-4429-4c43-bfe4-317746b67248"
        },
        "Id": "19137df9-37ee-4081-9193-81e641616433",
        "ClientId": "9a0ec838-7bda-4ac8-8c46-5b2514c44715",
        "IsActive": true,
        "IsDeleted": true,
        "CreateDate": "2021-05-13 17:13:09",
        "UpdateDate": "2021-05-13 17:13:09",
        "CreateBy": "9688c2b3-159d-43dc-9b1f-dd1f9cd7181b",
        "UpdateBy": "b2a1bfc7-0329-4e21-8909-259e4b39bb8d"
      }
    ],
    "Id": "f6a6d90c-2ec8-4177-8e89-b1dbad1b4dce",
    "ClientId": "6e4f0f19-a331-43d8-9cb0-9c2ad0c993bf",
    "IsActive": true,
    "IsDeleted": true,
    "CreateDate": "2021-05-13 17:13:09",
    "UpdateDate": "2021-05-13 17:13:09",
    "CreateBy": "e6426ab7-a287-43f7-ab46-c54206883892",
    "UpdateBy": "e3128450-4d4e-492e-9933-299f8cb09b7e"
  }
]