Venues Endpoint

Use case - Retrieve the ticketUrls and locations of all active venues

GET REQUEST: /venues?fs={isActive, ticketUrl, location{street, city, postalCode, country}}&s={"$query" : {"isActive" : true}}

Field Selector :

{
  isActive, 
  ticketUrl,
  location {
    street, 
    city, 
    postalCode, 
    country
  }
}

Query:

{
  "$query" : {
    "isActive" : true
  }
}

GET RESPONSE:

{
  "pager": {
    "previous": "/resources/prev",
    "self": "/venues?fs={isActive, ticketUrl, location{street, city, postalCode, country}}&s={'$query' : {'isActive' : true, 'pager.offset': 0}}",
    "next": "/venues?fs={isActive, ticketUrl, location{street, city, postalCode, country}}&s={'$query' : {'isActive' : true, 'pager.offset': 4}}",
      "limit": 3,
      "offset": 0
  },
  "data": [
    {
      "isActive": true,
      "ticketUrl": "http://www.denverbroncos.com/tickets-and-stadium/ticket-info.html",
      "location": {
        "street": "1701 Bryant Street",
        "city": "Denver",
        "postalCode": 80204,
        "country": "United States"
      }
    },
    {
      "isActive": true,
      "ticketUrl": "http://www.seahawks.com/tickets/",
      "location": {
        "street": "800 Occidental Avenue South",
        "city": "Seattle",
        "postalCode": 98134,
        "country": "United States"
      }
    },
    {
      "isActive": true,
      "ticketUrl": "http://www.patriots.com/tickets/index.html",
      "location": {
        "street": "1 Patriot Place",
        "city": "Foxborough",
        "postalCode": 1053,
        "country": "United States"
      }
    }
  ]
}