GET api/Document/home?api={api}&limit={limit}

Lấy về tất cả các dòng dữ liệu bởi điều kiện truyền vào

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

Mã API do hệ thống cung cấp

string

Required

limit

Giới hạn dữ liệu lấy được trong 1 trang

integer

Default value is 50

Body Parameters

None.

Response Information

Resource Description

objDocumenthome
NameDescriptionTypeAdditional information
data

Collection of Documenthome

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": [
    {
      "iddocument": 1,
      "iddocumenttype": 2,
      "code": "sample string 3",
      "title": "sample string 4",
      "image": "sample string 5",
      "linkfile": "sample string 6",
      "publishedplace": "sample string 7",
      "idfield": 1,
      "documentnumber": "sample string 8",
      "effectivedate": 1,
      "publisheddate": 1,
      "description": "sample string 9"
    },
    {
      "iddocument": 1,
      "iddocumenttype": 2,
      "code": "sample string 3",
      "title": "sample string 4",
      "image": "sample string 5",
      "linkfile": "sample string 6",
      "publishedplace": "sample string 7",
      "idfield": 1,
      "documentnumber": "sample string 8",
      "effectivedate": 1,
      "publisheddate": 1,
      "description": "sample string 9"
    }
  ],
  "time": 1,
  "status": "sample string 2",
  "message": "sample string 3",
  "codemessage": "samplestring3"
}

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

Sample:
/**/ typeof  === 'function' && ({"data":[{"iddocument":1,"iddocumenttype":2,"code":"sample string 3","title":"sample string 4","image":"sample string 5","linkfile":"sample string 6","publishedplace":"sample string 7","idfield":1,"documentnumber":"sample string 8","effectivedate":1,"publisheddate":1,"description":"sample string 9"},{"iddocument":1,"iddocumenttype":2,"code":"sample string 3","title":"sample string 4","image":"sample string 5","linkfile":"sample string 6","publishedplace":"sample string 7","idfield":1,"documentnumber":"sample string 8","effectivedate":1,"publisheddate":1,"description":"sample string 9"}],"time":1,"status":"sample string 2","message":"sample string 3","codemessage":"samplestring3"});

application/xml, text/xml

Sample:
<objDocumenthome 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>
    <Documenthome>
      <code>sample string 3</code>
      <description>sample string 9</description>
      <documentnumber>sample string 8</documentnumber>
      <effectivedate>1</effectivedate>
      <iddocument>1</iddocument>
      <iddocumenttype>2</iddocumenttype>
      <idfield>1</idfield>
      <image>sample string 5</image>
      <linkfile>sample string 6</linkfile>
      <publisheddate>1</publisheddate>
      <publishedplace>sample string 7</publishedplace>
      <title>sample string 4</title>
    </Documenthome>
    <Documenthome>
      <code>sample string 3</code>
      <description>sample string 9</description>
      <documentnumber>sample string 8</documentnumber>
      <effectivedate>1</effectivedate>
      <iddocument>1</iddocument>
      <iddocumenttype>2</iddocumenttype>
      <idfield>1</idfield>
      <image>sample string 5</image>
      <linkfile>sample string 6</linkfile>
      <publisheddate>1</publisheddate>
      <publishedplace>sample string 7</publishedplace>
      <title>sample string 4</title>
    </Documenthome>
  </data>
</objDocumenthome>