GET me/views/editgamescore?id={id}&type={type}
get the score view model for a game
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | game id |
Define this parameter in the request URI. |
type | game type |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{ "game_result_options": [ { "value": "sample string 1", "text": "sample string 2" }, { "value": "sample string 1", "text": "sample string 2" }, { "value": "sample string 1", "text": "sample string 2" } ], "team_fd_options": [ { "value": "sample string 1", "text": "sample string 2" }, { "value": "sample string 1", "text": "sample string 2" }, { "value": "sample string 1", "text": "sample string 2" } ], "game_periods": { "period_name": "sample string 1", "period_count": 2, "period_details": [ { "id": 1, "num": 2, "home_score": 1, "away_score": 1 }, { "id": 1, "num": 2, "home_score": 1, "away_score": 1 }, { "id": 1, "num": 2, "home_score": 1, "away_score": 1 } ] }, "game_result": 0, "home_id": "sample string 1", "home_name": "sample string 2", "home_score": "sample string 3", "home_points": "sample string 4", "home_fd": 0, "away_id": "sample string 5", "away_name": "sample string 6", "away_score": "sample string 7", "away_points": "sample string 8", "away_fd": 0 }
application/xml, text/xml
Sample:
<GameEditScoreVMOutDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output"> <away_fd>None</away_fd> <away_id>sample string 5</away_id> <away_name>sample string 6</away_name> <away_points>sample string 8</away_points> <away_score>sample string 7</away_score> <game_periods> <period_count>2</period_count> <period_details> <GamePeriodDetailsDto> <away_score>1</away_score> <home_score>1</home_score> <id>1</id> <num>2</num> </GamePeriodDetailsDto> <GamePeriodDetailsDto> <away_score>1</away_score> <home_score>1</home_score> <id>1</id> <num>2</num> </GamePeriodDetailsDto> <GamePeriodDetailsDto> <away_score>1</away_score> <home_score>1</home_score> <id>1</id> <num>2</num> </GamePeriodDetailsDto> </period_details> <period_name>sample string 1</period_name> </game_periods> <game_result>NotPlayed</game_result> <game_result_options xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common"> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> </game_result_options> <home_fd>None</home_fd> <home_id>sample string 1</home_id> <home_name>sample string 2</home_name> <home_points>sample string 4</home_points> <home_score>sample string 3</home_score> <team_fd_options xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common"> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> <d2p1:KeyValuePairOutVO> <d2p1:text>sample string 2</d2p1:text> <d2p1:value>sample string 1</d2p1:value> </d2p1:KeyValuePairOutVO> </team_fd_options> </GameEditScoreVMOutDto>