GET api/Role/One?api={api}&idpartner={idpartner}&id={id}
Bản ghi chi tiết
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
api |
Mã API do hệ thống cung cấp |
string |
Required |
idpartner |
id đối tác |
string |
Default value is |
id |
id nhân sự |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
oneRoleName | Description | Type | Additional information |
---|---|---|---|
data | RoleModel |
None. |
|
status |
Trạng thái |
string |
None. |
message |
Thông báo |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "id": "sample string 1", "idkey": "sample string 2", "idpartner": "sample string 3", "idbrandpartner": "sample string 4", "name": "sample string 5", "datecreate": "sample string 6", "idcreate": "sample string 7", "codecreate": "sample string 8", "namecreate": "sample string 9", "dateedit": "sample string 10", "idedit": "sample string 11", "codeedit": "sample string 12", "nameedit": "sample string 13", "lstrole": [ { "parent": "sample string 1", "lstaction": [ { "code": "sample string 1", "lstaction": "sample string 2" }, { "code": "sample string 1", "lstaction": "sample string 2" } ] }, { "parent": "sample string 1", "lstaction": [ { "code": "sample string 1", "lstaction": "sample string 2" }, { "code": "sample string 1", "lstaction": "sample string 2" } ] } ], "fulltime": 1 }, "status": "sample string 1", "message": "sample string 2" }
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"data":{"id":"sample string 1","idkey":"sample string 2","idpartner":"sample string 3","idbrandpartner":"sample string 4","name":"sample string 5","datecreate":"sample string 6","idcreate":"sample string 7","codecreate":"sample string 8","namecreate":"sample string 9","dateedit":"sample string 10","idedit":"sample string 11","codeedit":"sample string 12","nameedit":"sample string 13","lstrole":[{"parent":"sample string 1","lstaction":[{"code":"sample string 1","lstaction":"sample string 2"},{"code":"sample string 1","lstaction":"sample string 2"}]},{"parent":"sample string 1","lstaction":[{"code":"sample string 1","lstaction":"sample string 2"},{"code":"sample string 1","lstaction":"sample string 2"}]}],"fulltime":1},"status":"sample string 1","message":"sample string 2"});
application/xml, text/xml
Sample:
<oneRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.his"> <message xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models">sample string 2</message> <status xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models">sample string 1</status> <data> <codecreate>sample string 8</codecreate> <codeedit>sample string 12</codeedit> <datecreate>sample string 6</datecreate> <dateedit>sample string 10</dateedit> <fulltime>1</fulltime> <id>sample string 1</id> <idbrandpartner>sample string 4</idbrandpartner> <idcreate>sample string 7</idcreate> <idedit>sample string 11</idedit> <idkey>sample string 2</idkey> <idpartner>sample string 3</idpartner> <lstrole> <GroupRole> <lstaction> <RoleAction> <code>sample string 1</code> <lstaction>sample string 2</lstaction> </RoleAction> <RoleAction> <code>sample string 1</code> <lstaction>sample string 2</lstaction> </RoleAction> </lstaction> <parent>sample string 1</parent> </GroupRole> <GroupRole> <lstaction> <RoleAction> <code>sample string 1</code> <lstaction>sample string 2</lstaction> </RoleAction> <RoleAction> <code>sample string 1</code> <lstaction>sample string 2</lstaction> </RoleAction> </lstaction> <parent>sample string 1</parent> </GroupRole> </lstrole> <name>sample string 5</name> <namecreate>sample string 9</namecreate> <nameedit>sample string 13</nameedit> </data> </oneRole>