GET api/MyGroup_Role/One?api={api}&idgroup={idgroup}&idmyrole={idmyrole}

Lấy về một dòng dữ liệu với điều kiện

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

Mã API do hệ thống cung cấp

string

Required

idgroup

ID group dạng chuỗi

string

Default value is

idmyrole

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

MyGroup_Role
NameDescriptionTypeAdditional information
idgroup

ID group dạng chuỗi

string

None.

idmyrole

ID role dạng số

integer

None.

action

Hành động dạng chuỗi

string

None.

mygrouprole

Đối tượng GroupRole(đối tượng ràng buộc ko có trong CSDL)

MyGroupRole

None.

myrole

Đối tượng Role(đối tượng ràng buộc ko có trong CSDL)

MyRole

None.

Response Formats

application/json, text/json

Sample:
{
  "idgroup": "sample string 1",
  "idmyrole": 2,
  "action": "sample string 3",
  "mygrouprole": {
    "idgroup": "sample string 1",
    "name": "sample string 2",
    "idpartner": "sample string 3",
    "type": 64,
    "notuse": true,
    "datecreate": 1
  },
  "myrole": {
    "idmyrole": 1,
    "idparent": 1,
    "title": "sample string 2",
    "type": 64,
    "key": "sample string 3",
    "orderby": 1,
    "language": "sample string 4",
    "action": "sample string 5"
  }
}

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"idgroup":"sample string 1","idmyrole":2,"action":"sample string 3","mygrouprole":{"idgroup":"sample string 1","name":"sample string 2","idpartner":"sample string 3","type":64,"notuse":true,"datecreate":1},"myrole":{"idmyrole":1,"idparent":1,"title":"sample string 2","type":64,"key":"sample string 3","orderby":1,"language":"sample string 4","action":"sample string 5"}});

application/xml, text/xml

Sample:
<MyGroup_Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <action>sample string 3</action>
  <idgroup>sample string 1</idgroup>
  <idmyrole>2</idmyrole>
  <mygrouprole>
    <datecreate>1</datecreate>
    <idgroup>sample string 1</idgroup>
    <idpartner>sample string 3</idpartner>
    <name>sample string 2</name>
    <notuse>true</notuse>
    <type>64</type>
  </mygrouprole>
  <myrole>
    <action>sample string 5</action>
    <idmyrole>1</idmyrole>
    <idparent>1</idparent>
    <key>sample string 3</key>
    <language>sample string 4</language>
    <orderby>1</orderby>
    <title>sample string 2</title>
    <type>64</type>
  </myrole>
</MyGroup_Role>