/Teams Examples

Example: Here is how to retrieve the Houston Texans profile page.

Field selector:

{
    fullName,
    branding{
        logos{
            logo{
                href
            }
        },
        size
    }
    conference,
    division,
    webDomain,
    venue{
        name, 
        ticketPhoneNumber,
        ticketUrl
    },
    established,
    standings{
        overallWins,
        overallLosses,
        overallTies,
        divisionRank
    }
}

Query: Find team where team.abbr is "HOU".

{
    "$query": {"abbr" : "HOU"}}
}

Request: GET /teams?s={"$query" : {"abbr" : "HOU"}}&fs={fullName,branding{logos{logo{href}}, size}conference,division,webDomain,venue{name, ticketPhoneNumber, ticketUrl},established,standings{overallWins, overallLosses, overallTies, divisionRank}}

Response payload:

 {
    "pager": {},
    "data": [
        {
            "branding": {
                "logos" : [
                    {
                        "href" : "http://path.to/thumb/logo.jpg",
                        "size" : "THUMB"
                    },
                    {
                        "href" : "http://path.to/small/logo.jpg",
                        "size" : "SMALL"
                    },
                    {
                        "href" : "http://path.to/medium/logo.jpg",
                        "size" : "MEDIUM"
                    },
                    {
                        "href" : "http://path.to/mezzanine/logo.jpg",
                        "size" : "MEZZANINE"
                    }
                ]
            },
            "fullName": "Houston Texans",
            "conference": "AFC",
            "division": "ACS",
            "webDomain": "http://www.houstontexans.com",
            "established": 2002,
            "venue": {
                "name":"NRG Stadium",
                "ticketPhoneNumber" : "832-667-2390",
                "ticketUrl" : "http://www.nfl.com/tickets/houston-texans"
            },
            "standings" : {
                "overallWins":8,
                "overallLosses":4,
                "overallTies":0,
                "divisionRank":2
            }
        }
    ]
 }