GET jxc_api/ErpPermission/GetRoleList

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RoleListModel
NameDescriptionTypeAdditional information
RoleId

integer

None.

RoleName

string

None.

IsAccRole

boolean

None.

IsAdmin

boolean

None.

Users

Collection of UserSnAndName

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RoleId": 1,
    "RoleName": "sample string 2",
    "IsAccRole": true,
    "IsAdmin": true,
    "Users": [
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      },
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      }
    ]
  },
  {
    "RoleId": 1,
    "RoleName": "sample string 2",
    "IsAccRole": true,
    "IsAdmin": true,
    "Users": [
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      },
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfRoleListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <RoleListModel>
    <IsAccRole>true</IsAccRole>
    <IsAdmin>true</IsAdmin>
    <RoleId>1</RoleId>
    <RoleName>sample string 2</RoleName>
    <Users xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models">
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
    </Users>
  </RoleListModel>
  <RoleListModel>
    <IsAccRole>true</IsAccRole>
    <IsAdmin>true</IsAdmin>
    <RoleId>1</RoleId>
    <RoleName>sample string 2</RoleName>
    <Users xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models">
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
    </Users>
  </RoleListModel>
</ArrayOfRoleListModel>