POST jxc_api/ErpEmployee/Authorize

Request Information

URI Parameters

None.

Body Parameters

AuthorizeRequest
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

Mobile

string

None.

RoleIds

Collection of integer

None.

AccRoleId

integer

None.

UserSn

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "Mobile": "sample string 2",
  "RoleIds": [
    1,
    2
  ],
  "AccRoleId": 3,
  "UserSn": 4
}

application/xml, text/xml

Sample:
<AuthorizeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models.Employee">
  <AccRoleId>3</AccRoleId>
  <EmployeeId>1</EmployeeId>
  <Mobile>sample string 2</Mobile>
  <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RoleIds>
  <UserSn>4</UserSn>
</AuthorizeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AuthorizeResult
NameDescriptionTypeAdditional information
AddedUserSn

integer

None.

RelatedAsId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "AddedUserSn": 1,
  "RelatedAsId": 2
}

application/xml, text/xml

Sample:
<AuthorizeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <AddedUserSn>1</AddedUserSn>
  <RelatedAsId>2</RelatedAsId>
</AuthorizeResult>