GET v1/shows/search/advanced/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

SavedShowSearchResource
NameDescriptionTypeAdditional information
SavedShowSearch

SavedShowSearch

None.

Response Formats

application/json, text/json

Sample:
{
  "savedShowSearch": {
    "id": 1,
    "name": "sample string 2",
    "query": {
      "sortOptions": [
        {
          "descending": true,
          "field": "showId"
        },
        {
          "descending": true,
          "field": "showId"
        }
      ],
      "groups": [
        {
          "orAnd": "and",
          "filters": [
            {
              "operator": "equals",
              "field": "showId",
              "showField": 1,
              "searchValue": "sample string 1"
            },
            {
              "operator": "equals",
              "field": "showId",
              "showField": 1,
              "searchValue": "sample string 1"
            }
          ]
        },
        {
          "orAnd": "and",
          "filters": [
            {
              "operator": "equals",
              "field": "showId",
              "showField": 1,
              "searchValue": "sample string 1"
            },
            {
              "operator": "equals",
              "field": "showId",
              "showField": 1,
              "searchValue": "sample string 1"
            }
          ]
        }
      ]
    },
    "results": [
      1,
      2
    ]
  }
}

application/xml, text/xml

Sample:
<SavedShowSearchResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.Controllers.api.v1">
  <SavedShowSearch>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <Query xmlns:d3p1="http://schemas.datacontract.org/2004/07/TRMS.Cablecast.Models">
      <d3p1:Groups>
        <d3p1:ShowSearchGroup>
          <d3p1:Filters>
            <d3p1:ShowSearchFilter>
              <d3p1:Field>ShowId</d3p1:Field>
              <d3p1:Operator>Equals</d3p1:Operator>
              <d3p1:SearchValue>sample string 1</d3p1:SearchValue>
              <d3p1:ShowField>1</d3p1:ShowField>
            </d3p1:ShowSearchFilter>
            <d3p1:ShowSearchFilter>
              <d3p1:Field>ShowId</d3p1:Field>
              <d3p1:Operator>Equals</d3p1:Operator>
              <d3p1:SearchValue>sample string 1</d3p1:SearchValue>
              <d3p1:ShowField>1</d3p1:ShowField>
            </d3p1:ShowSearchFilter>
          </d3p1:Filters>
          <d3p1:OrAnd>And</d3p1:OrAnd>
        </d3p1:ShowSearchGroup>
        <d3p1:ShowSearchGroup>
          <d3p1:Filters>
            <d3p1:ShowSearchFilter>
              <d3p1:Field>ShowId</d3p1:Field>
              <d3p1:Operator>Equals</d3p1:Operator>
              <d3p1:SearchValue>sample string 1</d3p1:SearchValue>
              <d3p1:ShowField>1</d3p1:ShowField>
            </d3p1:ShowSearchFilter>
            <d3p1:ShowSearchFilter>
              <d3p1:Field>ShowId</d3p1:Field>
              <d3p1:Operator>Equals</d3p1:Operator>
              <d3p1:SearchValue>sample string 1</d3p1:SearchValue>
              <d3p1:ShowField>1</d3p1:ShowField>
            </d3p1:ShowSearchFilter>
          </d3p1:Filters>
          <d3p1:OrAnd>And</d3p1:OrAnd>
        </d3p1:ShowSearchGroup>
      </d3p1:Groups>
      <d3p1:SortOptions>
        <d3p1:ShowSearchSortingOption>
          <d3p1:Descending>true</d3p1:Descending>
          <d3p1:Field>ShowId</d3p1:Field>
        </d3p1:ShowSearchSortingOption>
        <d3p1:ShowSearchSortingOption>
          <d3p1:Descending>true</d3p1:Descending>
          <d3p1:Field>ShowId</d3p1:Field>
        </d3p1:ShowSearchSortingOption>
      </d3p1:SortOptions>
    </Query>
    <Results xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Results>
  </SavedShowSearch>
</SavedShowSearchResource>