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": "8be7bed7-7ec7-48e1-9074-2baf2b35fd76",
      "QuestionCount": 3,
      "MyGameCount": 4,
      "TotalGameCount": 5,
      "BestGame": {
        "PlayDateTime": "2017-09-20T02:21:04.59475+02:00",
        "Score": 2,
        "Rank": 3
      },
      "LastGame": {
        "PlayDateTime": "2017-09-20T02:21:04.59475+02:00",
        "Score": 2,
        "Rank": 3
      }
    },
    {
      "Name": "sample string 1",
      "QuizId": "8be7bed7-7ec7-48e1-9074-2baf2b35fd76",
      "QuestionCount": 3,
      "MyGameCount": 4,
      "TotalGameCount": 5,
      "BestGame": {
        "PlayDateTime": "2017-09-20T02:21:04.59475+02:00",
        "Score": 2,
        "Rank": 3
      },
      "LastGame": {
        "PlayDateTime": "2017-09-20T02:21:04.59475+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-09-20T02:21:04.59475+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </BestGame>
      <LastGame>
        <PlayDateTime>2017-09-20T02:21:04.59475+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </LastGame>
      <MyGameCount>4</MyGameCount>
      <Name>sample string 1</Name>
      <QuestionCount>3</QuestionCount>
      <QuizId>8be7bed7-7ec7-48e1-9074-2baf2b35fd76</QuizId>
      <TotalGameCount>5</TotalGameCount>
    </GameSummary>
    <GameSummary>
      <BestGame>
        <PlayDateTime>2017-09-20T02:21:04.59475+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </BestGame>
      <LastGame>
        <PlayDateTime>2017-09-20T02:21:04.59475+02:00</PlayDateTime>
        <Rank>3</Rank>
        <Score>2</Score>
      </LastGame>
      <MyGameCount>4</MyGameCount>
      <Name>sample string 1</Name>
      <QuestionCount>3</QuestionCount>
      <QuizId>8be7bed7-7ec7-48e1-9074-2baf2b35fd76</QuizId>
      <TotalGameCount>5</TotalGameCount>
    </GameSummary>
  </Games>
</GameList>