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

Lấy dữ liệu hiển thị trên cấp trong quản trị

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

string

Required

parent

integer

None.

Body Parameters

None.

Response Information

Resource Description

objmenu
NameDescriptionTypeAdditional information
data

Collection of menu

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,
      "titlelink": "sample string 5",
      "ismenu": true,
      "ordering": 1,
      "keyword": "sample string 6",
      "description": "sample string 7",
      "datecreate": 1,
      "usercreate": "sample string 8",
      "language": "sample string 9",
      "icon": "sample string 10",
      "status": true,
      "level": 1,
      "path": "sample string 11",
      "fixorder": "sample string 12",
      "ishome": true,
      "isfooter": true,
      "isleft": true
    },
    {
      "idmenu": 1,
      "parent": 1,
      "title": "sample string 2",
      "shorttitle": "sample string 3",
      "idkey": "sample string 4",
      "idlink": 1,
      "titlelink": "sample string 5",
      "ismenu": true,
      "ordering": 1,
      "keyword": "sample string 6",
      "description": "sample string 7",
      "datecreate": 1,
      "usercreate": "sample string 8",
      "language": "sample string 9",
      "icon": "sample string 10",
      "status": true,
      "level": 1,
      "path": "sample string 11",
      "fixorder": "sample string 12",
      "ishome": true,
      "isfooter": true,
      "isleft": true
    }
  ],
  "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,"titlelink":"sample string 5","ismenu":true,"ordering":1,"keyword":"sample string 6","description":"sample string 7","datecreate":1,"usercreate":"sample string 8","language":"sample string 9","icon":"sample string 10","status":true,"level":1,"path":"sample string 11","fixorder":"sample string 12","ishome":true,"isfooter":true,"isleft":true},{"idmenu":1,"parent":1,"title":"sample string 2","shorttitle":"sample string 3","idkey":"sample string 4","idlink":1,"titlelink":"sample string 5","ismenu":true,"ordering":1,"keyword":"sample string 6","description":"sample string 7","datecreate":1,"usercreate":"sample string 8","language":"sample string 9","icon":"sample string 10","status":true,"level":1,"path":"sample string 11","fixorder":"sample string 12","ishome":true,"isfooter":true,"isleft":true}],"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:
<objmenu 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>
    <menu>
      <Icon>sample string 10</Icon>
      <Parent>1</Parent>
      <Usercreate>sample string 8</Usercreate>
      <datecreate>1</datecreate>
      <description>sample string 7</description>
      <fixorder>sample string 12</fixorder>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <isfooter>true</isfooter>
      <ishome>true</ishome>
      <isleft>true</isleft>
      <ismenu>true</ismenu>
      <keyword>sample string 6</keyword>
      <language>sample string 9</language>
      <level>1</level>
      <ordering>1</ordering>
      <path>sample string 11</path>
      <shorttitle>sample string 3</shorttitle>
      <status>true</status>
      <title>sample string 2</title>
      <titlelink>sample string 5</titlelink>
    </menu>
    <menu>
      <Icon>sample string 10</Icon>
      <Parent>1</Parent>
      <Usercreate>sample string 8</Usercreate>
      <datecreate>1</datecreate>
      <description>sample string 7</description>
      <fixorder>sample string 12</fixorder>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <isfooter>true</isfooter>
      <ishome>true</ishome>
      <isleft>true</isleft>
      <ismenu>true</ismenu>
      <keyword>sample string 6</keyword>
      <language>sample string 9</language>
      <level>1</level>
      <ordering>1</ordering>
      <path>sample string 11</path>
      <shorttitle>sample string 3</shorttitle>
      <status>true</status>
      <title>sample string 2</title>
      <titlelink>sample string 5</titlelink>
    </menu>
  </data>
</objmenu>