GET api/Websites/GetGalleries/{id}

Galleries are a collection of images and texts about the images

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The website id (GUID) can be found by caling the Get method

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CmsGallery
NameDescriptionTypeAdditional information
CmsGalleryId

globally unique identifier

None.

Headline

string

None.

Summary

string

None.

Link

string

None.

PrimaryImage

ImageInfo

None.

Images

Collection of ImageInfo

None.

ShowImageTexts

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CmsGalleryId": "38ebb1d0-117c-4bda-8c7d-da7e477306e0",
    "Headline": "sample string 2",
    "Summary": "sample string 3",
    "Link": "sample string 4",
    "PrimaryImage": {
      "ThumbUrl": "sample string 1",
      "FileUrl": "sample string 2",
      "FileTitle": "sample string 3"
    },
    "Images": [
      {
        "ThumbUrl": "sample string 1",
        "FileUrl": "sample string 2",
        "FileTitle": "sample string 3"
      },
      {
        "ThumbUrl": "sample string 1",
        "FileUrl": "sample string 2",
        "FileTitle": "sample string 3"
      }
    ],
    "ShowImageTexts": true
  },
  {
    "CmsGalleryId": "38ebb1d0-117c-4bda-8c7d-da7e477306e0",
    "Headline": "sample string 2",
    "Summary": "sample string 3",
    "Link": "sample string 4",
    "PrimaryImage": {
      "ThumbUrl": "sample string 1",
      "FileUrl": "sample string 2",
      "FileTitle": "sample string 3"
    },
    "Images": [
      {
        "ThumbUrl": "sample string 1",
        "FileUrl": "sample string 2",
        "FileTitle": "sample string 3"
      },
      {
        "ThumbUrl": "sample string 1",
        "FileUrl": "sample string 2",
        "FileTitle": "sample string 3"
      }
    ],
    "ShowImageTexts": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCmsGallery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <CmsGallery>
    <CmsGalleryGuid>38ebb1d0-117c-4bda-8c7d-da7e477306e0</CmsGalleryGuid>
    <Headline>sample string 2</Headline>
    <Images>
      <ImageInfo>
        <FileTitle>sample string 3</FileTitle>
        <FileUrl>sample string 2</FileUrl>
        <ThumbUrl>sample string 1</ThumbUrl>
      </ImageInfo>
      <ImageInfo>
        <FileTitle>sample string 3</FileTitle>
        <FileUrl>sample string 2</FileUrl>
        <ThumbUrl>sample string 1</ThumbUrl>
      </ImageInfo>
    </Images>
    <Link>sample string 4</Link>
    <PrimaryImage>
      <FileTitle>sample string 3</FileTitle>
      <FileUrl>sample string 2</FileUrl>
      <ThumbUrl>sample string 1</ThumbUrl>
    </PrimaryImage>
    <ShowImageTexts>true</ShowImageTexts>
    <Summary>sample string 3</Summary>
  </CmsGallery>
  <CmsGallery>
    <CmsGalleryGuid>38ebb1d0-117c-4bda-8c7d-da7e477306e0</CmsGalleryGuid>
    <Headline>sample string 2</Headline>
    <Images>
      <ImageInfo>
        <FileTitle>sample string 3</FileTitle>
        <FileUrl>sample string 2</FileUrl>
        <ThumbUrl>sample string 1</ThumbUrl>
      </ImageInfo>
      <ImageInfo>
        <FileTitle>sample string 3</FileTitle>
        <FileUrl>sample string 2</FileUrl>
        <ThumbUrl>sample string 1</ThumbUrl>
      </ImageInfo>
    </Images>
    <Link>sample string 4</Link>
    <PrimaryImage>
      <FileTitle>sample string 3</FileTitle>
      <FileUrl>sample string 2</FileUrl>
      <ThumbUrl>sample string 1</ThumbUrl>
    </PrimaryImage>
    <ShowImageTexts>true</ShowImageTexts>
    <Summary>sample string 3</Summary>
  </CmsGallery>
</ArrayOfCmsGallery>