GET api/Games/Played/{playerID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
playerID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Game
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

None.

Note

string

None.

Start

date

None.

End

date

None.

BookingCourtID

integer

None.

Player1ID

integer

None.

Player2ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Title": "sample string 2",
    "Note": "sample string 3",
    "Start": "2025-04-28T16:04:25.4788611+02:00",
    "End": "2025-04-28T16:04:25.4788611+02:00",
    "BookingCourtID": 6,
    "Player1ID": 7,
    "Player2ID": 1
  },
  {
    "ID": 1,
    "Title": "sample string 2",
    "Note": "sample string 3",
    "Start": "2025-04-28T16:04:25.4788611+02:00",
    "End": "2025-04-28T16:04:25.4788611+02:00",
    "BookingCourtID": 6,
    "Player1ID": 7,
    "Player2ID": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfGame xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.Models">
  <Game>
    <BookingCourtID>6</BookingCourtID>
    <End>2025-04-28T16:04:25.4788611+02:00</End>
    <ID>1</ID>
    <Note>sample string 3</Note>
    <Player1ID>7</Player1ID>
    <Player2ID>1</Player2ID>
    <Start>2025-04-28T16:04:25.4788611+02:00</Start>
    <Title>sample string 2</Title>
  </Game>
  <Game>
    <BookingCourtID>6</BookingCourtID>
    <End>2025-04-28T16:04:25.4788611+02:00</End>
    <ID>1</ID>
    <Note>sample string 3</Note>
    <Player1ID>7</Player1ID>
    <Player2ID>1</Player2ID>
    <Start>2025-04-28T16:04:25.4788611+02:00</Start>
    <Title>sample string 2</Title>
  </Game>
</ArrayOfGame>