GET api/Document/cate?api={api}&page={page}&limit={limit}&idtype={idtype}&orderby={orderby}

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

page

Trang hiện tại: mặc định là trang 1

integer

Default value is 1

limit

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

integer

Default value is 50

idtype

ID loại tài liệu

integer

Default value is 0

orderby

Sắp xếp theo cột dữ liệu : tên cột-Kiểu (Kiểu: ASC (Xuôi),DESC (Ngược))

string

Default value is

Body Parameters

None.

Response Information

Resource Description

objDocumentcate
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.

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": [
    {
      "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",
  "page": 5,
  "totalpage": 6.1,
  "totalrecord": 7.1
}

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","page":5,"totalpage":6.1,"totalrecord":7.1});

application/xml, text/xml

Sample:
<objDocumentcate 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>
    <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>
</objDocumentcate>