GET api/v1/Reports/Role/GetRolesandmenus
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
RoleMenuMappingName | Description | Type | Additional information |
---|---|---|---|
lstRoles | Collection of Role |
None. |
|
lstMenu | Collection of Menu |
None. |
|
MenusForRole | Collection of Menu |
None. |
|
RoleId | integer |
None. |
|
PageId | integer |
None. |
|
lstpermissions | Collection of Permissions |
None. |
|
IsCurrentUserAdmin | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "lstRoles": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "lstMenu": [ { "MenuID": 1, "Title": "sample string 2", "IsRender": true, "PageID": 4, "Roles": "sample string 5", "Parameters": "sample string 6", "ClassName": "sample string 7", "ParentID": 8, "SortOrder": 9, "IsAjax": true, "TenantID": 11, "Controller": "sample string 12", "Action": "sample string 13", "SectionID": 14, "IsSelected": 15, "lstRolemenu": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "Permissiontitle": "sample string 16", "PermissionID": 17, "Layout": 18 }, { "MenuID": 1, "Title": "sample string 2", "IsRender": true, "PageID": 4, "Roles": "sample string 5", "Parameters": "sample string 6", "ClassName": "sample string 7", "ParentID": 8, "SortOrder": 9, "IsAjax": true, "TenantID": 11, "Controller": "sample string 12", "Action": "sample string 13", "SectionID": 14, "IsSelected": 15, "lstRolemenu": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "Permissiontitle": "sample string 16", "PermissionID": 17, "Layout": 18 } ], "MenusForRole": [ { "MenuID": 1, "Title": "sample string 2", "IsRender": true, "PageID": 4, "Roles": "sample string 5", "Parameters": "sample string 6", "ClassName": "sample string 7", "ParentID": 8, "SortOrder": 9, "IsAjax": true, "TenantID": 11, "Controller": "sample string 12", "Action": "sample string 13", "SectionID": 14, "IsSelected": 15, "lstRolemenu": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "Permissiontitle": "sample string 16", "PermissionID": 17, "Layout": 18 }, { "MenuID": 1, "Title": "sample string 2", "IsRender": true, "PageID": 4, "Roles": "sample string 5", "Parameters": "sample string 6", "ClassName": "sample string 7", "ParentID": 8, "SortOrder": 9, "IsAjax": true, "TenantID": 11, "Controller": "sample string 12", "Action": "sample string 13", "SectionID": 14, "IsSelected": 15, "lstRolemenu": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "Permissiontitle": "sample string 16", "PermissionID": 17, "Layout": 18 } ], "RoleId": 1, "PageId": 2, "lstpermissions": [ { "PermissionId": 1, "PermissionKey": "sample string 2", "PermissionName": "sample string 3", "AssociatedRoles": "sample string 4", "lstRoles": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ] }, { "PermissionId": 1, "PermissionKey": "sample string 2", "PermissionName": "sample string 3", "AssociatedRoles": "sample string 4", "lstRoles": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ] } ], "IsCurrentUserAdmin": 3 }
text/html
Sample:
{"lstRoles":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"lstMenu":[{"MenuID":1,"Title":"sample string 2","IsRender":true,"PageID":4,"Roles":"sample string 5","Parameters":"sample string 6","ClassName":"sample string 7","ParentID":8,"SortOrder":9,"IsAjax":true,"TenantID":11,"Controller":"sample string 12","Action":"sample string 13","SectionID":14,"IsSelected":15,"lstRolemenu":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"Permissiontitle":"sample string 16","PermissionID":17,"Layout":18},{"MenuID":1,"Title":"sample string 2","IsRender":true,"PageID":4,"Roles":"sample string 5","Parameters":"sample string 6","ClassName":"sample string 7","ParentID":8,"SortOrder":9,"IsAjax":true,"TenantID":11,"Controller":"sample string 12","Action":"sample string 13","SectionID":14,"IsSelected":15,"lstRolemenu":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"Permissiontitle":"sample string 16","PermissionID":17,"Layout":18}],"MenusForRole":[{"MenuID":1,"Title":"sample string 2","IsRender":true,"PageID":4,"Roles":"sample string 5","Parameters":"sample string 6","ClassName":"sample string 7","ParentID":8,"SortOrder":9,"IsAjax":true,"TenantID":11,"Controller":"sample string 12","Action":"sample string 13","SectionID":14,"IsSelected":15,"lstRolemenu":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"Permissiontitle":"sample string 16","PermissionID":17,"Layout":18},{"MenuID":1,"Title":"sample string 2","IsRender":true,"PageID":4,"Roles":"sample string 5","Parameters":"sample string 6","ClassName":"sample string 7","ParentID":8,"SortOrder":9,"IsAjax":true,"TenantID":11,"Controller":"sample string 12","Action":"sample string 13","SectionID":14,"IsSelected":15,"lstRolemenu":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"Permissiontitle":"sample string 16","PermissionID":17,"Layout":18}],"RoleId":1,"PageId":2,"lstpermissions":[{"PermissionId":1,"PermissionKey":"sample string 2","PermissionName":"sample string 3","AssociatedRoles":"sample string 4","lstRoles":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}]},{"PermissionId":1,"PermissionKey":"sample string 2","PermissionName":"sample string 3","AssociatedRoles":"sample string 4","lstRoles":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}]}],"IsCurrentUserAdmin":3}
text/xml
Sample:
<RoleMenuMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <IsCurrentUserAdmin>3</IsCurrentUserAdmin> <MenusForRole> <Menu> <Action>sample string 13</Action> <ClassName>sample string 7</ClassName> <Controller>sample string 12</Controller> <IsAjax>true</IsAjax> <IsRender>true</IsRender> <IsSelected>15</IsSelected> <Layout>18</Layout> <MenuID>1</MenuID> <PageID>4</PageID> <Parameters>sample string 6</Parameters> <ParentID>8</ParentID> <PermissionID>17</PermissionID> <Permissiontitle>sample string 16</Permissiontitle> <Roles>sample string 5</Roles> <SectionID>14</SectionID> <SortOrder>9</SortOrder> <TenantID>11</TenantID> <Title>sample string 2</Title> <lstRolemenu> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRolemenu> </Menu> <Menu> <Action>sample string 13</Action> <ClassName>sample string 7</ClassName> <Controller>sample string 12</Controller> <IsAjax>true</IsAjax> <IsRender>true</IsRender> <IsSelected>15</IsSelected> <Layout>18</Layout> <MenuID>1</MenuID> <PageID>4</PageID> <Parameters>sample string 6</Parameters> <ParentID>8</ParentID> <PermissionID>17</PermissionID> <Permissiontitle>sample string 16</Permissiontitle> <Roles>sample string 5</Roles> <SectionID>14</SectionID> <SortOrder>9</SortOrder> <TenantID>11</TenantID> <Title>sample string 2</Title> <lstRolemenu> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRolemenu> </Menu> </MenusForRole> <PageId>2</PageId> <RoleId>1</RoleId> <lstMenu> <Menu> <Action>sample string 13</Action> <ClassName>sample string 7</ClassName> <Controller>sample string 12</Controller> <IsAjax>true</IsAjax> <IsRender>true</IsRender> <IsSelected>15</IsSelected> <Layout>18</Layout> <MenuID>1</MenuID> <PageID>4</PageID> <Parameters>sample string 6</Parameters> <ParentID>8</ParentID> <PermissionID>17</PermissionID> <Permissiontitle>sample string 16</Permissiontitle> <Roles>sample string 5</Roles> <SectionID>14</SectionID> <SortOrder>9</SortOrder> <TenantID>11</TenantID> <Title>sample string 2</Title> <lstRolemenu> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRolemenu> </Menu> <Menu> <Action>sample string 13</Action> <ClassName>sample string 7</ClassName> <Controller>sample string 12</Controller> <IsAjax>true</IsAjax> <IsRender>true</IsRender> <IsSelected>15</IsSelected> <Layout>18</Layout> <MenuID>1</MenuID> <PageID>4</PageID> <Parameters>sample string 6</Parameters> <ParentID>8</ParentID> <PermissionID>17</PermissionID> <Permissiontitle>sample string 16</Permissiontitle> <Roles>sample string 5</Roles> <SectionID>14</SectionID> <SortOrder>9</SortOrder> <TenantID>11</TenantID> <Title>sample string 2</Title> <lstRolemenu> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRolemenu> </Menu> </lstMenu> <lstRoles> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRoles> <lstpermissions> <Permissions> <AssociatedRoles>sample string 4</AssociatedRoles> <PermissionId>1</PermissionId> <PermissionKey>sample string 2</PermissionKey> <PermissionName>sample string 3</PermissionName> <lstRoles> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRoles> </Permissions> <Permissions> <AssociatedRoles>sample string 4</AssociatedRoles> <PermissionId>1</PermissionId> <PermissionKey>sample string 2</PermissionKey> <PermissionName>sample string 3</PermissionName> <lstRoles> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRoles> </Permissions> </lstpermissions> </RoleMenuMapping>