GET api/Game/GetGameList?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

Required

Body Parameters

None.

Response Information

Resource Description

GameList
NameDescriptionTypeAdditional information
Games

Collection of GameSummary

None.

Response Formats

application/json, text/json

Sample:
{
  "Games": [
    {
      "Name": "sample string 1",
      "QuizId": "0ee4e204-81dc-48f5-a452-07a7e28cc038",
      "QuestionCount": 3,
      "MyGameCount": 4,
      "TotalGameCount": 5,
      "BestGame": {
        "PlayDateTime": "2017-07-27T02:31:24.180625+02:00",
        "Score": 2,
        "Rank": 3
      },
      "LastGame": {
        "PlayDateTime": "2017-07-27T02:31:24.180625+02:00",
        "Score": 2,
        "Rank": 3
      }
    },
    {
      "Name": "sample string 1",
      "QuizId": "0ee4e204-81dc-48f5-a452-07a7e28cc038",
      "QuestionCount": 3,
      "MyGameCount": 4,
      "TotalGameCount": 5,
      "BestGame": {
        "PlayDateTime": "2017-07-27T02:31:24.180625+02:00",
        "Score": 2,
        "Rank": 3
      },
      "LastGame": {
        "PlayDateTime": "2017-07-27T02:31:24.180625+02:00",
        "Score": 2,
        "Rank": 3
      }
    }
  ]
}

application/xml, text/xml

Sample:
<GameList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIQuest.Web.API.Responses">
  <Games>
    <GameSummary>
      <BestGame>
        <PlayDateTime>2017-07-27T02:31:24.180625+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </BestGame>
      <LastGame>
        <PlayDateTime>2017-07-27T02:31:24.180625+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </LastGame>
      <MyGameCount>4</MyGameCount>
      <Name>sample string 1</Name>
      <QuestionCount>3</QuestionCount>
      <QuizId>0ee4e204-81dc-48f5-a452-07a7e28cc038</QuizId>
      <TotalGameCount>5</TotalGameCount>
    </GameSummary>
    <GameSummary>
      <BestGame>
        <PlayDateTime>2017-07-27T02:31:24.180625+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </BestGame>
      <LastGame>
        <PlayDateTime>2017-07-27T02:31:24.180625+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </LastGame>
      <MyGameCount>4</MyGameCount>
      <Name>sample string 1</Name>
      <QuestionCount>3</QuestionCount>
      <QuizId>0ee4e204-81dc-48f5-a452-07a7e28cc038</QuizId>
      <TotalGameCount>5</TotalGameCount>
    </GameSummary>
  </Games>
</GameList>