GET api/Adv/getItem?api={api}&getnumber={getnumber}

Lấy dữ liệu trang chủ là chuyen de

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

string

Required

getnumber

integer

Required

Body Parameters

None.

Response Information

Resource Description

objHomeAdv
NameDescriptionTypeAdditional information
data

Collection of AdvHome

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": [
    {
      "title": "sample string 1",
      "image": "sample string 2",
      "link": "sample string 3",
      "typelink": true,
      "idLink": 1
    },
    {
      "title": "sample string 1",
      "image": "sample string 2",
      "link": "sample string 3",
      "typelink": true,
      "idLink": 1
    }
  ],
  "time": 1,
  "status": "sample string 2",
  "message": "sample string 3",
  "codemessage": "samplestring3"
}

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

Sample:
/**/ typeof  === 'function' && ({"data":[{"title":"sample string 1","image":"sample string 2","link":"sample string 3","typelink":true,"idLink":1},{"title":"sample string 1","image":"sample string 2","link":"sample string 3","typelink":true,"idLink":1}],"time":1,"status":"sample string 2","message":"sample string 3","codemessage":"samplestring3"});

application/xml, text/xml

Sample:
<objHomeAdv 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>
    <AdvHome>
      <IDLink>1</IDLink>
      <image>sample string 2</image>
      <link>sample string 3</link>
      <title>sample string 1</title>
      <typelink>true</typelink>
    </AdvHome>
    <AdvHome>
      <IDLink>1</IDLink>
      <image>sample string 2</image>
      <link>sample string 3</link>
      <title>sample string 1</title>
      <typelink>true</typelink>
    </AdvHome>
  </data>
</objHomeAdv>