GET api/Menu/getleft?api={api}&parent={parent}

Lấy dữ liệu danh sách key

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

string

Required

parent

integer

None.

Body Parameters

None.

Response Information

Resource Description

objhomemenu
NameDescriptionTypeAdditional information
data

Collection of homemenu

None.

time

Thời gian hiện tại trên server

integer

None.

status

Trạng thái trả về dữ liệu: success, error

string

None.

message

Nội dung thông báo

string

None.

codemessage

Mã code trả về

string

None.

page

Trang hiện tại

integer

None.

totalpage

Tổng số trang có được

decimal number

None.

totalrecord

Tổng số dữ liệu có được

decimal number

None.

data

Danh sách dữ liệu

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "idmenu": 1,
      "parent": 1,
      "title": "sample string 2",
      "shorttitle": "sample string 3",
      "idkey": "sample string 4",
      "idlink": 1,
      "sub": true,
      "icon": "sample string 5",
      "level": 1,
      "path": "sample string 6",
      "fixorder": "sample string 7",
      "titlelink": "sample string 8"
    },
    {
      "idmenu": 1,
      "parent": 1,
      "title": "sample string 2",
      "shorttitle": "sample string 3",
      "idkey": "sample string 4",
      "idlink": 1,
      "sub": true,
      "icon": "sample string 5",
      "level": 1,
      "path": "sample string 6",
      "fixorder": "sample string 7",
      "titlelink": "sample string 8"
    }
  ],
  "time": 1,
  "status": "sample string 2",
  "message": "sample string 3",
  "codemessage": "samplestring3",
  "page": 5,
  "totalpage": 6.1,
  "totalrecord": 7.1
}

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

Sample:
/**/ typeof  === 'function' && ({"data":[{"idmenu":1,"parent":1,"title":"sample string 2","shorttitle":"sample string 3","idkey":"sample string 4","idlink":1,"sub":true,"icon":"sample string 5","level":1,"path":"sample string 6","fixorder":"sample string 7","titlelink":"sample string 8"},{"idmenu":1,"parent":1,"title":"sample string 2","shorttitle":"sample string 3","idkey":"sample string 4","idlink":1,"sub":true,"icon":"sample string 5","level":1,"path":"sample string 6","fixorder":"sample string 7","titlelink":"sample string 8"}],"time":1,"status":"sample string 2","message":"sample string 3","codemessage":"samplestring3","page":5,"totalpage":6.1,"totalrecord":7.1});

application/xml, text/xml

Sample:
<objhomemenu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Obj">
  <codemessage xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">samplestring3</codemessage>
  <data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
    <d2p1:anyType />
    <d2p1:anyType />
  </data>
  <message xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">sample string 3</message>
  <page xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">5</page>
  <status xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">sample string 2</status>
  <time xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">1</time>
  <totalpage xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">6.1</totalpage>
  <totalrecord xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">7.1</totalrecord>
  <data>
    <homemenu>
      <Icon>sample string 5</Icon>
      <Parent>1</Parent>
      <fixorder>sample string 7</fixorder>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <level>1</level>
      <path>sample string 6</path>
      <shorttitle>sample string 3</shorttitle>
      <sub>true</sub>
      <title>sample string 2</title>
      <titlelink>sample string 8</titlelink>
    </homemenu>
    <homemenu>
      <Icon>sample string 5</Icon>
      <Parent>1</Parent>
      <fixorder>sample string 7</fixorder>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <level>1</level>
      <path>sample string 6</path>
      <shorttitle>sample string 3</shorttitle>
      <sub>true</sub>
      <title>sample string 2</title>
      <titlelink>sample string 8</titlelink>
    </homemenu>
  </data>
</objhomemenu>