GET api/Categories/GetDetailedSiteCategory?CategoryID={CategoryID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CategoryID

integer

Required

Body Parameters

None.

Response Information

Resource Description

SiteCategoryDetailedModel
NameDescriptionTypeAdditional information
Category

Category

None.

CategoryGalleries

Collection of GalleryModel

None.

CategoryFiles

Collection of FileModel

None.

Contents

Collection of ContentModel

None.

Grids

Collection of GridModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Category": null,
  "CategoryGalleries": [
    {
      "GalleryID": 1,
      "GalleryName": "sample string 2",
      "IsActive": true,
      "GalleryPhotos": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    },
    {
      "GalleryID": 1,
      "GalleryName": "sample string 2",
      "IsActive": true,
      "GalleryPhotos": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    }
  ],
  "CategoryFiles": [
    {
      "FileID": 1,
      "Name": "sample string 2",
      "Extention": "sample string 3",
      "FileUrl": "sample string 4"
    },
    {
      "FileID": 1,
      "Name": "sample string 2",
      "Extention": "sample string 3",
      "FileUrl": "sample string 4"
    }
  ],
  "Contents": [
    {
      "Content": {
        "ContentID": 1,
        "SiteID": 2,
        "Status": 3,
        "DateOn": "2025-12-28T12:49:27.3384089+00:00",
        "LastUpdate": "2025-12-28T12:49:27.3384089+00:00",
        "Label": "sample string 6",
        "Data": {
          "PageName": "sample string 1",
          "Headline": "sample string 2",
          "Remarks": "sample string 3",
          "SEOTitle": "sample string 4",
          "SEODescription": "sample string 5",
          "KeyWords": "sample string 6",
          "Canonical": "sample string 7",
          "Text1": "sample string 8",
          "Video": "sample string 9",
          "Text2": "sample string 10",
          "PicAFileID": 11,
          "FileAID": 12,
          "PicCredit": "sample string 13",
          "PicAAlt": "sample string 14",
          "PicBFileID": 15,
          "PicBCredit": "sample string 16",
          "PicCFileID": 17,
          "PicCCredit": "sample string 18",
          "PicDFileID": 19,
          "ContentLinkText": "sample string 20",
          "ContentLinkURL": "sample string 21",
          "ContentLinkNoFollow": true,
          "WriterCredit": "sample string 23",
          "hideDate": true,
          "ReadingTime": "sample string 25",
          "ShowContentTextOnGallery": true,
          "DisplayOrder": 27,
          "GalleryID": 28,
          "CustomTemplateID": 29,
          "CustomFieldValues": {
            "1": "sample string 2",
            "3": "sample string 4"
          },
          "CustomFormFieldValues": {
            "1": "sample string 2",
            "3": "sample string 4"
          },
          "ClassName": "sample string 30",
          "HidePageInSearchResults": true,
          "CreationDate": "2025-12-28T12:49:27.3384089+00:00"
        },
        "Tags": [
          1,
          2
        ]
      },
      "SEODetails": {
        "Title": "sample string 1",
        "Description": "sample string 2",
        "Keywords": "sample string 3",
        "Canonical": "sample string 4"
      },
      "ContentCustomFields": [
        {
          "CustomFieldID": 1,
          "Name": "sample string 2",
          "Type": 3,
          "IsFile": true,
          "IsGallery": true,
          "ItemValue": "sample string 6",
          "File": {
            "FileID": 1,
            "Name": "sample string 2",
            "Extention": "sample string 3",
            "FileUrl": "sample string 4"
          },
          "Gallery": {
            "GalleryID": 1,
            "GalleryName": "sample string 2",
            "IsActive": true,
            "GalleryPhotos": [
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              },
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              }
            ]
          }
        },
        {
          "CustomFieldID": 1,
          "Name": "sample string 2",
          "Type": 3,
          "IsFile": true,
          "IsGallery": true,
          "ItemValue": "sample string 6",
          "File": {
            "FileID": 1,
            "Name": "sample string 2",
            "Extention": "sample string 3",
            "FileUrl": "sample string 4"
          },
          "Gallery": {
            "GalleryID": 1,
            "GalleryName": "sample string 2",
            "IsActive": true,
            "GalleryPhotos": [
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              },
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              }
            ]
          }
        }
      ],
      "ContentGalleries": [
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        },
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        }
      ],
      "ContentFiles": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    },
    {
      "Content": {
        "ContentID": 1,
        "SiteID": 2,
        "Status": 3,
        "DateOn": "2025-12-28T12:49:27.3384089+00:00",
        "LastUpdate": "2025-12-28T12:49:27.3384089+00:00",
        "Label": "sample string 6",
        "Data": {
          "PageName": "sample string 1",
          "Headline": "sample string 2",
          "Remarks": "sample string 3",
          "SEOTitle": "sample string 4",
          "SEODescription": "sample string 5",
          "KeyWords": "sample string 6",
          "Canonical": "sample string 7",
          "Text1": "sample string 8",
          "Video": "sample string 9",
          "Text2": "sample string 10",
          "PicAFileID": 11,
          "FileAID": 12,
          "PicCredit": "sample string 13",
          "PicAAlt": "sample string 14",
          "PicBFileID": 15,
          "PicBCredit": "sample string 16",
          "PicCFileID": 17,
          "PicCCredit": "sample string 18",
          "PicDFileID": 19,
          "ContentLinkText": "sample string 20",
          "ContentLinkURL": "sample string 21",
          "ContentLinkNoFollow": true,
          "WriterCredit": "sample string 23",
          "hideDate": true,
          "ReadingTime": "sample string 25",
          "ShowContentTextOnGallery": true,
          "DisplayOrder": 27,
          "GalleryID": 28,
          "CustomTemplateID": 29,
          "CustomFieldValues": {
            "1": "sample string 2",
            "3": "sample string 4"
          },
          "CustomFormFieldValues": {
            "1": "sample string 2",
            "3": "sample string 4"
          },
          "ClassName": "sample string 30",
          "HidePageInSearchResults": true,
          "CreationDate": "2025-12-28T12:49:27.3384089+00:00"
        },
        "Tags": [
          1,
          2
        ]
      },
      "SEODetails": {
        "Title": "sample string 1",
        "Description": "sample string 2",
        "Keywords": "sample string 3",
        "Canonical": "sample string 4"
      },
      "ContentCustomFields": [
        {
          "CustomFieldID": 1,
          "Name": "sample string 2",
          "Type": 3,
          "IsFile": true,
          "IsGallery": true,
          "ItemValue": "sample string 6",
          "File": {
            "FileID": 1,
            "Name": "sample string 2",
            "Extention": "sample string 3",
            "FileUrl": "sample string 4"
          },
          "Gallery": {
            "GalleryID": 1,
            "GalleryName": "sample string 2",
            "IsActive": true,
            "GalleryPhotos": [
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              },
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              }
            ]
          }
        },
        {
          "CustomFieldID": 1,
          "Name": "sample string 2",
          "Type": 3,
          "IsFile": true,
          "IsGallery": true,
          "ItemValue": "sample string 6",
          "File": {
            "FileID": 1,
            "Name": "sample string 2",
            "Extention": "sample string 3",
            "FileUrl": "sample string 4"
          },
          "Gallery": {
            "GalleryID": 1,
            "GalleryName": "sample string 2",
            "IsActive": true,
            "GalleryPhotos": [
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              },
              {
                "FileID": 1,
                "Name": "sample string 2",
                "Extention": "sample string 3",
                "FileUrl": "sample string 4"
              }
            ]
          }
        }
      ],
      "ContentGalleries": [
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        },
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        }
      ],
      "ContentFiles": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    }
  ],
  "Grids": [
    {
      "GridSection": null,
      "GridGalleries": [
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        },
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        }
      ],
      "GridFiles": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    },
    {
      "GridSection": null,
      "GridGalleries": [
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        },
        {
          "GalleryID": 1,
          "GalleryName": "sample string 2",
          "IsActive": true,
          "GalleryPhotos": [
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            },
            {
              "FileID": 1,
              "Name": "sample string 2",
              "Extention": "sample string 3",
              "FileUrl": "sample string 4"
            }
          ]
        }
      ],
      "GridFiles": [
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        },
        {
          "FileID": 1,
          "Name": "sample string 2",
          "Extention": "sample string 3",
          "FileUrl": "sample string 4"
        }
      ]
    }
  ]
}

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'BLL.Categories.Category' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.