POST api/summerservices/photo/GetPhotos

Request Information

URI Parameters

None.

Body Parameters

GetPhotosRequest
NameDescriptionTypeAdditional information
PhotoIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PhotoIds": [
    1,
    2
  ]
}

application/javascript

Sample:
{"PhotoIds":[1,2]}

application/xml, text/xml

Sample:
<GetPhotosRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PhotoIds>
    <int>1</int>
    <int>2</int>
  </PhotoIds>
</GetPhotosRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetPhotosRequest'.

Response Information

Resource Description

WebMethodResultOfListOfPhoto
NameDescriptionTypeAdditional information
Result

Collection of Photo

None.

Success

boolean

None.

ErrorText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": [
    {
      "PhotoID": 1,
      "AlbumID": 2,
      "SeasonID": 3,
      "Caption": "sample string 4",
      "SortOrder": 5,
      "HiResUrl": "sample string 6",
      "HiResSize": "1, 2",
      "ZoominUrl": "sample string 7",
      "ZoominSize": "1, 2",
      "ThumbnailUrl": "sample string 8",
      "ThumbnailSize": "1, 2",
      "Tags": [
        {
          "TagID": 1,
          "CategoryID": 2
        },
        {
          "TagID": 1,
          "CategoryID": 2
        }
      ]
    },
    {
      "PhotoID": 1,
      "AlbumID": 2,
      "SeasonID": 3,
      "Caption": "sample string 4",
      "SortOrder": 5,
      "HiResUrl": "sample string 6",
      "HiResSize": "1, 2",
      "ZoominUrl": "sample string 7",
      "ZoominSize": "1, 2",
      "ThumbnailUrl": "sample string 8",
      "ThumbnailSize": "1, 2",
      "Tags": [
        {
          "TagID": 1,
          "CategoryID": 2
        },
        {
          "TagID": 1,
          "CategoryID": 2
        }
      ]
    }
  ],
  "Success": true,
  "ErrorText": "sample string 2"
}

application/javascript

Sample:
{"Result":[{"PhotoID":1,"AlbumID":2,"SeasonID":3,"Caption":"sample string 4","SortOrder":5,"HiResUrl":"sample string 6","HiResSize":"1, 2","ZoominUrl":"sample string 7","ZoominSize":"1, 2","ThumbnailUrl":"sample string 8","ThumbnailSize":"1, 2","Tags":[{"TagID":1,"CategoryID":2},{"TagID":1,"CategoryID":2}]},{"PhotoID":1,"AlbumID":2,"SeasonID":3,"Caption":"sample string 4","SortOrder":5,"HiResUrl":"sample string 6","HiResSize":"1, 2","ZoominUrl":"sample string 7","ZoominSize":"1, 2","ThumbnailUrl":"sample string 8","ThumbnailSize":"1, 2","Tags":[{"TagID":1,"CategoryID":2},{"TagID":1,"CategoryID":2}]}],"Success":true,"ErrorText":"sample string 2"}

application/xml, text/xml

Sample:
<WebMethodResultOfListOfPhoto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Success>true</Success>
  <ErrorText>sample string 2</ErrorText>
  <Result>
    <Photo>
      <PhotoID>1</PhotoID>
      <AlbumID>2</AlbumID>
      <SeasonID>3</SeasonID>
      <Caption>sample string 4</Caption>
      <SortOrder>5</SortOrder>
      <HiResUrl>sample string 6</HiResUrl>
      <HiResSize>
        <Width>1</Width>
        <Height>2</Height>
      </HiResSize>
      <ZoominUrl>sample string 7</ZoominUrl>
      <ZoominSize>
        <Width>1</Width>
        <Height>2</Height>
      </ZoominSize>
      <ThumbnailUrl>sample string 8</ThumbnailUrl>
      <ThumbnailSize>
        <Width>1</Width>
        <Height>2</Height>
      </ThumbnailSize>
      <Tags>
        <Tag>
          <TagID>1</TagID>
          <CategoryID>2</CategoryID>
        </Tag>
        <Tag>
          <TagID>1</TagID>
          <CategoryID>2</CategoryID>
        </Tag>
      </Tags>
    </Photo>
    <Photo>
      <PhotoID>1</PhotoID>
      <AlbumID>2</AlbumID>
      <SeasonID>3</SeasonID>
      <Caption>sample string 4</Caption>
      <SortOrder>5</SortOrder>
      <HiResUrl>sample string 6</HiResUrl>
      <HiResSize>
        <Width>1</Width>
        <Height>2</Height>
      </HiResSize>
      <ZoominUrl>sample string 7</ZoominUrl>
      <ZoominSize>
        <Width>1</Width>
        <Height>2</Height>
      </ZoominSize>
      <ThumbnailUrl>sample string 8</ThumbnailUrl>
      <ThumbnailSize>
        <Width>1</Width>
        <Height>2</Height>
      </ThumbnailSize>
      <Tags>
        <Tag>
          <TagID>1</TagID>
          <CategoryID>2</CategoryID>
        </Tag>
        <Tag>
          <TagID>1</TagID>
          <CategoryID>2</CategoryID>
        </Tag>
      </Tags>
    </Photo>
  </Result>
</WebMethodResultOfListOfPhoto>