GET api/EmployeeManagement/Get/EmployeeRoles?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of EmployeeRoleMap
NameDescriptionTypeAdditional information
MapId

integer

None.

EmployeeId

integer

None.

RoleId

integer

None.

SubRoleId

integer

None.

SubReportId

integer

None.

IsDefaultRole

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MapId": 1,
    "EmployeeId": 2,
    "RoleId": 3,
    "SubRoleId": 4,
    "SubReportId": 5,
    "IsDefaultRole": true
  },
  {
    "MapId": 1,
    "EmployeeId": 2,
    "RoleId": 3,
    "SubRoleId": 4,
    "SubReportId": 5,
    "IsDefaultRole": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmployeeRoleMap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <EmployeeRoleMap>
    <EmployeeId>2</EmployeeId>
    <IsDefaultRole>true</IsDefaultRole>
    <MapId>1</MapId>
    <RoleId>3</RoleId>
    <SubReportId>5</SubReportId>
    <SubRoleId>4</SubRoleId>
  </EmployeeRoleMap>
  <EmployeeRoleMap>
    <EmployeeId>2</EmployeeId>
    <IsDefaultRole>true</IsDefaultRole>
    <MapId>1</MapId>
    <RoleId>3</RoleId>
    <SubReportId>5</SubReportId>
    <SubRoleId>4</SubRoleId>
  </EmployeeRoleMap>
</ArrayOfEmployeeRoleMap>