GET api/Roles

List all Roles

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of role_data_dc
NameDescriptionTypeAdditional information
RoleId

integer

None.

RoleName

string

None.

Roledesc

string

None.

IsActive

boolean

None.

CustomRole

boolean

None.

SystemId

integer

None.

CreatedBy

integer

None.

LastModifiedBy

integer

None.

LastUpdatedDateTime

date

None.

IsDeleted

boolean

None.

RoleType

string

None.

OrgCodes

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RoleId": 1,
    "RoleName": "sample string 1",
    "Roledesc": "sample string 2",
    "IsActive": true,
    "CustomRole": true,
    "SystemId": 3,
    "CreatedBy": 1,
    "LastModifiedBy": 1,
    "LastUpdatedDateTime": "2025-07-18T15:50:14.5698017+00:00",
    "IsDeleted": true,
    "RoleType": "sample string 4",
    "OrgCodes": "sample string 5"
  },
  {
    "RoleId": 1,
    "RoleName": "sample string 1",
    "Roledesc": "sample string 2",
    "IsActive": true,
    "CustomRole": true,
    "SystemId": 3,
    "CreatedBy": 1,
    "LastModifiedBy": 1,
    "LastUpdatedDateTime": "2025-07-18T15:50:14.5698017+00:00",
    "IsDeleted": true,
    "RoleType": "sample string 4",
    "OrgCodes": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfrole_data_dc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplicationITTF1.Controllers">
  <role_data_dc>
    <CreatedBy>1</CreatedBy>
    <CustomRole>true</CustomRole>
    <IsActive>true</IsActive>
    <IsDeleted>true</IsDeleted>
    <LastModifiedBy>1</LastModifiedBy>
    <LastUpdatedDateTime>2025-07-18T15:50:14.5698017+00:00</LastUpdatedDateTime>
    <OrgCodes>sample string 5</OrgCodes>
    <RoleId>1</RoleId>
    <RoleName>sample string 1</RoleName>
    <RoleType>sample string 4</RoleType>
    <Roledesc>sample string 2</Roledesc>
    <SystemId>3</SystemId>
  </role_data_dc>
  <role_data_dc>
    <CreatedBy>1</CreatedBy>
    <CustomRole>true</CustomRole>
    <IsActive>true</IsActive>
    <IsDeleted>true</IsDeleted>
    <LastModifiedBy>1</LastModifiedBy>
    <LastUpdatedDateTime>2025-07-18T15:50:14.5698017+00:00</LastUpdatedDateTime>
    <OrgCodes>sample string 5</OrgCodes>
    <RoleId>1</RoleId>
    <RoleName>sample string 1</RoleName>
    <RoleType>sample string 4</RoleType>
    <Roledesc>sample string 2</Roledesc>
    <SystemId>3</SystemId>
  </role_data_dc>
</ArrayOfrole_data_dc>