Game

This service will allow creation and updating of a game. The required nested nodes '''team''' and '''venue''' will need to exist first.

NOTE: Limited query support at launch. Below is are the supported query signatures. Anything different will result in an error response:

Use Case Supported queries
Scores by Week /games?s={"$query":{"week.season":2015,"week.seasonType":"REG","week.week":1}}&fs={week{season,seasonType,week},id,gameTime,gameStatus,homeTeam{id,abbr},visitorTeam{id,abbr},homeTeamScore,visitorTeamScore}
Scores by Week Type /games?s={"$query":{"week.weekType":"SB"},"$take":10,"$skip":0}&fs={week{season,seasonType,week},id,gameTime,gameStatus,homeTeam{id,abbr},visitorTeam{id,abbr},homeTeamScore,visitorTeamScore}
Scores by Team /games?s={"$query":{"week.season":2015,"$or":[{"homeTeam.abbr":"PIT"},{"visitorTeam.abbr":"PIT"}]}}&fs={week{season,seasonType,week},homeTeam{id,abbr},visitorTeam{id,abbr},homeTeamScore,visitorTeamScore,gameStatus,homeTeamScore,visitorTeamScore}
Scores by historical games (home vs visitor) /games?s={"$query":{"$or":[{"visitorTeam.abbr":"PIT","homeTeam.abbr":"MIN"},{"homeTeam.abbr":"PIT","visitorTeam.abbr":"MIN"}]},"$sort":{"gameTime":1},"$take":10}&fs={id,type,week{season,seasonType,name,week},id,gameTime,gameStatus,homeTeam{id,type,abbr},visitorTeam{id,type,abbr},homeTeamScore,visitorTeamScore}
/games?s={"$query":{"$or":[{"$and":[{"visitorTeam.abbr":"PIT"},{"homeTeam.abbr":"MIN"}]},{"$and":[{"homeTeam.abbr":"PIT"},{"visitorTeam.abbr":"MIN"}]}]},"$sort":{"gameTime":1},"$take":10}&fs={id,type,week{season,seasonType,name,week},id,gameTime,gameStatus,homeTeam{id,type,abbr},visitorTeam{id,type,abbr},homeTeamScore,visitorTeamScore}
deprecated /games?s={"$query":{"$and":[{"visitorTeam.abbr":"PIT"},{"homeTeam.abbr":"MIN"}]},"$sort":{"gameTime":1},"$take":10}&fs={id,type,week{season,seasonType,name,week},id,gameTime,gameStatus,homeTeam{id,type,abbr},visitorTeam{id,type,abbr},homeTeamScore,visitorTeamScore}

Deprecated - avoid to use it. If you already use it, replace it with two other available endpoints.

$take - The default value is 10 $skip - The default value is 0

Fields

Name Default Field Type Description
id * UUID unique identifier
type enum Type Domain type
lastModifiedDate DateTime
week * Week Contains seasson, seasonTypeOrder, seasonType, week and week name
gameTime * String Game Time in ISO 8601
homeTeam * Team Home Team Info
visitorTeam * Team Visitor Team Info
venue Venue Stadium Info
gameStatus * GameStatus information on current score, status of the game
homeTeamScore * TeamScore Home Team Game information and scores
visitorTeamScore * TeamScore Visitor Team information and scores
homeTeamStats TeamGameStats Home team statistics
visitorTeamStats TeamGameStats Visitor teams statistics
homeTeamPlayersStats List<PlayerGameStats> Home team player statistics
visitorTeamPlayersStats List<PlayerGameStats> Vistor team player statistics
drives List<Drive> List of drives in this game information
related Related Provides information for other entities associated with this game
gameDateForecast ForecastWeather day time & night time weather forecast
audios Collection Audio List of audios
networkChannels List<String> List of Network Channels (["NFL NETWORK", "NBC"])
ticketMasterUrl String Link to buy tickets
homeTeamFacts List<Article> Facts about the home team
visitorTeamFacts List<Article> Facts about the visitor team
pregameHighlight Video Pregame highlights.
postgameHighlight Video Postgame highlights.
gsisId String Legacy game Key.
esbId String Legacy game Id.

Default Sorting Field

Default Sorting Field Default Ordering
gameTime DESC

Usage

expected headers, roles, authorization (see Identity/Jersey?)

Name Required Values Default Type Description
CONTENT-TYPE Y application/json string Used to alert the rest service to the presence of a json body

Select a game

/games/{game-id}