GET api/Gallery/GetClientData

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of GalleryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Type

byte

None.

Title

string

None.

CoverPhotoPath

string

None.

ThumbnailPath

string

None.

List

Collection of GalleryDetailViewModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Type": 64,
    "Title": "sample string 3",
    "CoverPhotoPath": "sample string 4",
    "ThumbnailPath": "sample string 5",
    "List": [
      {
        "Id": 1,
        "GalleryId": 2,
        "Caption": "sample string 3",
        "Path": "sample string 4",
        "ThumbnailPath": "sample string 5"
      },
      {
        "Id": 1,
        "GalleryId": 2,
        "Caption": "sample string 3",
        "Path": "sample string 4",
        "ThumbnailPath": "sample string 5"
      }
    ]
  },
  {
    "Id": 1,
    "Type": 64,
    "Title": "sample string 3",
    "CoverPhotoPath": "sample string 4",
    "ThumbnailPath": "sample string 5",
    "List": [
      {
        "Id": 1,
        "GalleryId": 2,
        "Caption": "sample string 3",
        "Path": "sample string 4",
        "ThumbnailPath": "sample string 5"
      },
      {
        "Id": 1,
        "GalleryId": 2,
        "Caption": "sample string 3",
        "Path": "sample string 4",
        "ThumbnailPath": "sample string 5"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfGalleryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Gallery">
  <GalleryViewModel>
    <CoverPhotoPath>sample string 4</CoverPhotoPath>
    <Id>1</Id>
    <List>
      <GalleryDetailViewModel>
        <Caption>sample string 3</Caption>
        <GalleryId>2</GalleryId>
        <Id>1</Id>
        <Path>sample string 4</Path>
        <ThumbnailPath>sample string 5</ThumbnailPath>
      </GalleryDetailViewModel>
      <GalleryDetailViewModel>
        <Caption>sample string 3</Caption>
        <GalleryId>2</GalleryId>
        <Id>1</Id>
        <Path>sample string 4</Path>
        <ThumbnailPath>sample string 5</ThumbnailPath>
      </GalleryDetailViewModel>
    </List>
    <ThumbnailPath>sample string 5</ThumbnailPath>
    <Title>sample string 3</Title>
    <Type>64</Type>
  </GalleryViewModel>
  <GalleryViewModel>
    <CoverPhotoPath>sample string 4</CoverPhotoPath>
    <Id>1</Id>
    <List>
      <GalleryDetailViewModel>
        <Caption>sample string 3</Caption>
        <GalleryId>2</GalleryId>
        <Id>1</Id>
        <Path>sample string 4</Path>
        <ThumbnailPath>sample string 5</ThumbnailPath>
      </GalleryDetailViewModel>
      <GalleryDetailViewModel>
        <Caption>sample string 3</Caption>
        <GalleryId>2</GalleryId>
        <Id>1</Id>
        <Path>sample string 4</Path>
        <ThumbnailPath>sample string 5</ThumbnailPath>
      </GalleryDetailViewModel>
    </List>
    <ThumbnailPath>sample string 5</ThumbnailPath>
    <Title>sample string 3</Title>
    <Type>64</Type>
  </GalleryViewModel>
</ArrayOfGalleryViewModel>