GET api/Category?SiteID={SiteID}

Thông tin cần

Các tham số URI

NameDescriptionTypeAdditional information
SiteID

integer

Required

Không có.

Thông tin trả về

Mô tả các trường dữ liệu

Collection of CategoryItem
NameDescriptionTypeAdditional information
CategoryName

string

None.

CategoryNameAscii

string

None.

IsShow

boolean

None.

CategoryOrder

integer

None.

CategoryDescription

string

None.

CategoryAllID

string

None.

CategoryParentID

integer

None.

SiteID

integer

None.

LstNews

Collection of NewsItems

None.

TypeLayout

integer

None.

CategoryLink

string

None.

Id

integer

None.

Kiểu dữ liệu

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "CategoryName": "sample string 1",
    "CategoryNameAscii": "sample string 2",
    "IsShow": true,
    "CategoryOrder": 4,
    "CategoryDescription": "sample string 5",
    "CategoryAllID": "sample string 6",
    "CategoryParentID": 1,
    "SiteID": 7,
    "LstNews": [
      {
        "$id": "2",
        "NewsTitle": "sample string 1",
        "NewsTitleAscii": "sample string 2",
        "NewsEventID": 1,
        "NewsSiteID": 1,
        "NewsTypeID": 1,
        "NewsPictureID": 1,
        "NewsImagesUrl": "sample string 3",
        "NewsDescription": "sample string 4",
        "NewsShow": true,
        "NewsHot": true,
        "NewsAllowComment": true,
        "NewsDetails": "sample string 5",
        "NewsViewed": 6,
        "NewsSeoTitle": "sample string 7",
        "NewsSeoDescription": "sample string 8",
        "Id": 9,
        "CreatedDate": "2019-05-27T04:07:26.9633172+07:00",
        "ModifiedDate": "2019-05-27T04:07:26.9633172+07:00",
        "CreatedUser": "sample string 10",
        "ModifiedUser": "sample string 11",
        "NewsOrder": 12,
        "IsDeleted": true,
        "Picture": {
          "$id": "3",
          "PictureName": "sample string 1",
          "PictureUrl": "sample string 2",
          "PictureAlbumID": 3,
          "PictureCategoryID": 4,
          "PictureDescription": "sample string 5",
          "CreatedDate": "2019-05-27T04:07:26.9633172+07:00",
          "PictureLink": "sample string 6",
          "IsDeleted": true,
          "IsShow": true,
          "Id": 9
        },
        "Categories": [
          {
            "$ref": "1"
          },
          {
            "$ref": "1"
          }
        ],
        "Tags": [
          {
            "$id": "4",
            "Id": 1,
            "TagName": "sample string 2",
            "IsShow": true,
            "CreatedDate": "2019-05-27T04:07:26.9633172+07:00",
            "ModifiedDate": "2019-05-27T04:07:26.9633172+07:00",
            "CreatedUser": "sample string 3",
            "ModifiedUser": "sample string 4",
            "IsDeleted": true,
            "News": [
              {
                "$ref": "2"
              },
              {
                "$ref": "2"
              }
            ]
          },
          {
            "$ref": "4"
          }
        ],
        "Files": [
          {
            "$id": "5",
            "Id": 1,
            "FileName": "sample string 2",
            "FileLink": "sample string 3"
          },
          {
            "$ref": "5"
          }
        ]
      },
      {
        "$ref": "2"
      }
    ],
    "TypeLayout": 8,
    "CategoryLink": "sample string 9",
    "Id": 10
  },
  {
    "$ref": "1"
  }
]