Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement player count per platform and player list API endpoints #1014

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

Slendy
Copy link
Contributor

@Slendy Slendy commented Apr 23, 2024

This PR adds new endpoints to the v1 API to support fetching player counts grouped by platform as well as fetching the entire list of online users.

Example /api/v1/players response:

{
  "players": [
    {
      "username": "Slendy",
      "game": "LittleBigPlanet2",
      "platform": "RPCS3"
    }
  ]
}

Example /api/v1/playerCount/platform response:

{
  "platforms": [
    {
      "platform": "PS3",
      "playerCount": 0
    },
    {
      "platform": "RPCS3",
      "playerCount": 1
    },
    {
      "platform": "Vita",
      "playerCount": 0
    },
    {
      "platform": "PSP",
      "playerCount": 0
    }
  ],
  "totalPlayerCount": 1
}

@Slendy Slendy requested review from Zaprit and sudokoko April 23, 2024 00:26
@W0lf4llo
Copy link
Contributor

LGTM

@Slendy Slendy added this pull request to the merge queue Aug 29, 2024
Merged via the queue into LBPUnion:main with commit 0af064a Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants