GET api/RoleAccount/One?api={api}&idaccount={idaccount}&idrole={idrole}

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

idaccount

ID Tài khoản dạng chuỗi

integer

Default value is 0

idrole

ID quyen dạng số

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

RoleAccount
NameDescriptionTypeAdditional information
idaccount

ID tài khoản dạng chuỗi

integer

None.

idrole

ID Role dạng số

integer

None.

action

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

string

None.

account

Đối tượng Tài Khoản (đối tượng không phải cột trong CSDL)

Account

None.

myrole

Đối tượng Role (đối tượng không phải cột trong CSDL)

MyRole

None.

Response Formats

application/json, text/json

Sample:
{
  "idaccount": 1,
  "idrole": 2,
  "action": "sample string 3",
  "account": {
    "idaccount": 1,
    "devicetoken": "sample string 2",
    "idgroup": "sample string 3",
    "phone": "sample string 4",
    "password": "sample string 5",
    "title": "sample string 6",
    "firstname": "sample string 7",
    "lastname": "sample string 8",
    "fullname": "sample string 9",
    "gender": true,
    "age": 1.1,
    "email": "sample string 10",
    "type": 64,
    "birthday": "2021-07-24T17:01:57.0204339Z",
    "infoaccount": {
      "address": "sample string 1",
      "email": "sample string 2",
      "idcard": "sample string 3",
      "workplace": "sample string 4"
    },
    "infodoctor": {
      "speciality": [
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3"
        },
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3"
        }
      ],
      "diploma": [
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3",
          "fulltitle": "sample string 4",
          "place": "sample string 5",
          "year": 6
        },
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3",
          "fulltitle": "sample string 4",
          "place": "sample string 5",
          "year": 6
        }
      ],
      "language": [
        {
          "idlanguage": "sample string 1",
          "title": "sample string 2",
          "notuse": true,
          "onlyread": true
        },
        {
          "idlanguage": "sample string 1",
          "title": "sample string 2",
          "notuse": true,
          "onlyread": true
        }
      ]
    },
    "inforole": [
      {
        "iddic": 1,
        "parent": 1,
        "iddictype": "sample string 2",
        "code": "sample string 3",
        "title": "sample string 4",
        "dictitle": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "info": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "onlyread": true,
        "notuse": true,
        "datecreate": 5,
        "language": "sample string 6",
        "order": 1
      },
      {
        "iddic": 1,
        "parent": 1,
        "iddictype": "sample string 2",
        "code": "sample string 3",
        "title": "sample string 4",
        "dictitle": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "info": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "onlyread": true,
        "notuse": true,
        "datecreate": 5,
        "language": "sample string 6",
        "order": 1
      }
    ],
    "datecreate": 1,
    "dateactive": 1,
    "datelogin": 1,
    "datesuspended": 1,
    "dateline": 1,
    "active": true,
    "suspended": true,
    "typeaccount": 64
  },
  "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' && ({"idaccount":1,"idrole":2,"action":"sample string 3","account":{"idaccount":1,"devicetoken":"sample string 2","idgroup":"sample string 3","phone":"sample string 4","password":"sample string 5","title":"sample string 6","firstname":"sample string 7","lastname":"sample string 8","fullname":"sample string 9","gender":true,"age":1.1,"email":"sample string 10","type":64,"birthday":"2021-07-24T17:01:57.0204339Z","infoaccount":{"address":"sample string 1","email":"sample string 2","idcard":"sample string 3","workplace":"sample string 4"},"infodoctor":{"speciality":[{"iddic":1,"code":"sample string 2","title":"sample string 3"},{"iddic":1,"code":"sample string 2","title":"sample string 3"}],"diploma":[{"iddic":1,"code":"sample string 2","title":"sample string 3","fulltitle":"sample string 4","place":"sample string 5","year":6},{"iddic":1,"code":"sample string 2","title":"sample string 3","fulltitle":"sample string 4","place":"sample string 5","year":6}],"language":[{"idlanguage":"sample string 1","title":"sample string 2","notuse":true,"onlyread":true},{"idlanguage":"sample string 1","title":"sample string 2","notuse":true,"onlyread":true}]},"inforole":[{"iddic":1,"parent":1,"iddictype":"sample string 2","code":"sample string 3","title":"sample string 4","dictitle":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"info":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"onlyread":true,"notuse":true,"datecreate":5,"language":"sample string 6","order":1},{"iddic":1,"parent":1,"iddictype":"sample string 2","code":"sample string 3","title":"sample string 4","dictitle":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"info":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"onlyread":true,"notuse":true,"datecreate":5,"language":"sample string 6","order":1}],"datecreate":1,"dateactive":1,"datelogin":1,"datesuspended":1,"dateline":1,"active":true,"suspended":true,"typeaccount":64},"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:
<RoleAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <account xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.Obj">
    <d2p1:active>true</d2p1:active>
    <d2p1:age>1.1</d2p1:age>
    <d2p1:birthday>2021-07-24T17:01:57.0204339Z</d2p1:birthday>
    <d2p1:dateactive>1</d2p1:dateactive>
    <d2p1:datecreate>1</d2p1:datecreate>
    <d2p1:dateline>1</d2p1:dateline>
    <d2p1:datelogin>1</d2p1:datelogin>
    <d2p1:datesuspended>1</d2p1:datesuspended>
    <d2p1:devicetoken>sample string 2</d2p1:devicetoken>
    <d2p1:email>sample string 10</d2p1:email>
    <d2p1:firstname>sample string 7</d2p1:firstname>
    <d2p1:fullname>sample string 9</d2p1:fullname>
    <d2p1:gender>true</d2p1:gender>
    <d2p1:idaccount>1</d2p1:idaccount>
    <d2p1:idgroup>sample string 3</d2p1:idgroup>
    <d2p1:infoaccount>
      <d2p1:address>sample string 1</d2p1:address>
      <d2p1:email>sample string 2</d2p1:email>
      <d2p1:idcard>sample string 3</d2p1:idcard>
      <d2p1:workplace>sample string 4</d2p1:workplace>
    </d2p1:infoaccount>
    <d2p1:infodoctor>
      <d2p1:diploma>
        <d2p1:Diploma>
          <d2p1:code>sample string 2</d2p1:code>
          <d2p1:fulltitle>sample string 4</d2p1:fulltitle>
          <d2p1:iddic>1</d2p1:iddic>
          <d2p1:place>sample string 5</d2p1:place>
          <d2p1:title>sample string 3</d2p1:title>
          <d2p1:year>6</d2p1:year>
        </d2p1:Diploma>
        <d2p1:Diploma>
          <d2p1:code>sample string 2</d2p1:code>
          <d2p1:fulltitle>sample string 4</d2p1:fulltitle>
          <d2p1:iddic>1</d2p1:iddic>
          <d2p1:place>sample string 5</d2p1:place>
          <d2p1:title>sample string 3</d2p1:title>
          <d2p1:year>6</d2p1:year>
        </d2p1:Diploma>
      </d2p1:diploma>
      <d2p1:language>
        <d2p1:Language>
          <d2p1:idlanguage>sample string 1</d2p1:idlanguage>
          <d2p1:notuse>true</d2p1:notuse>
          <d2p1:onlyread>true</d2p1:onlyread>
          <d2p1:title>sample string 2</d2p1:title>
        </d2p1:Language>
        <d2p1:Language>
          <d2p1:idlanguage>sample string 1</d2p1:idlanguage>
          <d2p1:notuse>true</d2p1:notuse>
          <d2p1:onlyread>true</d2p1:onlyread>
          <d2p1:title>sample string 2</d2p1:title>
        </d2p1:Language>
      </d2p1:language>
      <d2p1:speciality>
        <d2p1:Speciality>
          <d2p1:code>sample string 2</d2p1:code>
          <d2p1:iddic>1</d2p1:iddic>
          <d2p1:title>sample string 3</d2p1:title>
        </d2p1:Speciality>
        <d2p1:Speciality>
          <d2p1:code>sample string 2</d2p1:code>
          <d2p1:iddic>1</d2p1:iddic>
          <d2p1:title>sample string 3</d2p1:title>
        </d2p1:Speciality>
      </d2p1:speciality>
    </d2p1:infodoctor>
    <d2p1:inforole>
      <d2p1:Dic>
        <d2p1:code>sample string 3</d2p1:code>
        <d2p1:datecreate>5</d2p1:datecreate>
        <d2p1:dictitle xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:dictitle>
        <d2p1:iddic>1</d2p1:iddic>
        <d2p1:iddictype>sample string 2</d2p1:iddictype>
        <d2p1:info xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:info>
        <d2p1:language>sample string 6</d2p1:language>
        <d2p1:notuse>true</d2p1:notuse>
        <d2p1:onlyread>true</d2p1:onlyread>
        <d2p1:order>1</d2p1:order>
        <d2p1:parent>1</d2p1:parent>
        <d2p1:title>sample string 4</d2p1:title>
      </d2p1:Dic>
      <d2p1:Dic>
        <d2p1:code>sample string 3</d2p1:code>
        <d2p1:datecreate>5</d2p1:datecreate>
        <d2p1:dictitle xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:dictitle>
        <d2p1:iddic>1</d2p1:iddic>
        <d2p1:iddictype>sample string 2</d2p1:iddictype>
        <d2p1:info xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:info>
        <d2p1:language>sample string 6</d2p1:language>
        <d2p1:notuse>true</d2p1:notuse>
        <d2p1:onlyread>true</d2p1:onlyread>
        <d2p1:order>1</d2p1:order>
        <d2p1:parent>1</d2p1:parent>
        <d2p1:title>sample string 4</d2p1:title>
      </d2p1:Dic>
    </d2p1:inforole>
    <d2p1:lastname>sample string 8</d2p1:lastname>
    <d2p1:password>sample string 5</d2p1:password>
    <d2p1:phone>sample string 4</d2p1:phone>
    <d2p1:suspended>true</d2p1:suspended>
    <d2p1:title>sample string 6</d2p1:title>
    <d2p1:type>64</d2p1:type>
    <d2p1:typeaccount>64</d2p1:typeaccount>
  </account>
  <action>sample string 3</action>
  <idaccount>1</idaccount>
  <idrole>2</idrole>
  <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>
</RoleAccount>