GET api/Menu/getindex?api={api}&limit={limit}

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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

string

Required

limit

integer

Default value is 1

Body Parameters

None.

Response Information

Resource Description

objmenuindex
NameDescriptionTypeAdditional information
data

Collection of menuindex

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.

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",
      "listnews": [
        {
          "idnews": 1,
          "iddic": 1,
          "title": "sample string 2",
          "summary": "sample string 3",
          "image": "sample string 4",
          "shorttitle": "sample string 5",
          "dateup": 1
        },
        {
          "idnews": 1,
          "iddic": 1,
          "title": "sample string 2",
          "summary": "sample string 3",
          "image": "sample string 4",
          "shorttitle": "sample string 5",
          "dateup": 1
        }
      ]
    },
    {
      "idmenu": 1,
      "parent": 1,
      "title": "sample string 2",
      "shorttitle": "sample string 3",
      "idkey": "sample string 4",
      "idlink": 1,
      "titlelink": "sample string 5",
      "listnews": [
        {
          "idnews": 1,
          "iddic": 1,
          "title": "sample string 2",
          "summary": "sample string 3",
          "image": "sample string 4",
          "shorttitle": "sample string 5",
          "dateup": 1
        },
        {
          "idnews": 1,
          "iddic": 1,
          "title": "sample string 2",
          "summary": "sample string 3",
          "image": "sample string 4",
          "shorttitle": "sample string 5",
          "dateup": 1
        }
      ]
    }
  ],
  "time": 1,
  "status": "sample string 2",
  "message": "sample string 3",
  "codemessage": "samplestring3"
}

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","listnews":[{"idnews":1,"iddic":1,"title":"sample string 2","summary":"sample string 3","image":"sample string 4","shorttitle":"sample string 5","dateup":1},{"idnews":1,"iddic":1,"title":"sample string 2","summary":"sample string 3","image":"sample string 4","shorttitle":"sample string 5","dateup":1}]},{"idmenu":1,"parent":1,"title":"sample string 2","shorttitle":"sample string 3","idkey":"sample string 4","idlink":1,"titlelink":"sample string 5","listnews":[{"idnews":1,"iddic":1,"title":"sample string 2","summary":"sample string 3","image":"sample string 4","shorttitle":"sample string 5","dateup":1},{"idnews":1,"iddic":1,"title":"sample string 2","summary":"sample string 3","image":"sample string 4","shorttitle":"sample string 5","dateup":1}]}],"time":1,"status":"sample string 2","message":"sample string 3","codemessage":"samplestring3"});

application/xml, text/xml

Sample:
<objmenuindex 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>
  <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>
  <data>
    <menuindex>
      <Parent>1</Parent>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <listnews>
        <NewsHome>
          <dateup>1</dateup>
          <iddic>1</iddic>
          <idnews>1</idnews>
          <image>sample string 4</image>
          <shorttitle>sample string 5</shorttitle>
          <summary>sample string 3</summary>
          <title>sample string 2</title>
        </NewsHome>
        <NewsHome>
          <dateup>1</dateup>
          <iddic>1</iddic>
          <idnews>1</idnews>
          <image>sample string 4</image>
          <shorttitle>sample string 5</shorttitle>
          <summary>sample string 3</summary>
          <title>sample string 2</title>
        </NewsHome>
      </listnews>
      <shorttitle>sample string 3</shorttitle>
      <title>sample string 2</title>
      <titlelink>sample string 5</titlelink>
    </menuindex>
    <menuindex>
      <Parent>1</Parent>
      <idkey>sample string 4</idkey>
      <idlink>1</idlink>
      <idmenu>1</idmenu>
      <listnews>
        <NewsHome>
          <dateup>1</dateup>
          <iddic>1</iddic>
          <idnews>1</idnews>
          <image>sample string 4</image>
          <shorttitle>sample string 5</shorttitle>
          <summary>sample string 3</summary>
          <title>sample string 2</title>
        </NewsHome>
        <NewsHome>
          <dateup>1</dateup>
          <iddic>1</iddic>
          <idnews>1</idnews>
          <image>sample string 4</image>
          <shorttitle>sample string 5</shorttitle>
          <summary>sample string 3</summary>
          <title>sample string 2</title>
        </NewsHome>
      </listnews>
      <shorttitle>sample string 3</shorttitle>
      <title>sample string 2</title>
      <titlelink>sample string 5</titlelink>
    </menuindex>
  </data>
</objmenuindex>