Skip to content

endpoint statistics added as getrequest according to Discord, swagger…#47

Merged
kvten merged 1 commit intok10xp:rewritefrom
Jari1980:teamStats
Mar 6, 2026
Merged

endpoint statistics added as getrequest according to Discord, swagger…#47
kvten merged 1 commit intok10xp:rewritefrom
Jari1980:teamStats

Conversation

@Jari1980
Copy link
Copy Markdown
Collaborator

@Jari1980 Jari1980 commented Mar 4, 2026

… documentation added

Description

Get request for endpoint statistics with Swagger documentation.
Returning result from:
SELECT
AVG(home_team_score) AS avg_home_score,
AVG(away_team_score) AS avg_away_score,

MIN(home_team_score) AS min_home_score,
MAX(home_team_score) AS max_home_score,

MIN(away_team_score) AS min_away_score,
MAX(away_team_score) AS max_away_score

FROM matches;
as wanted in Discord.

Related Issue

Team statistics

Checklist

Add x inside [ ] to check if applicable, else leave unchecked:

Required

  • Code runs locally

Optional

  • Tests added or updated
  • Configurations added or updated
  • Documentation updated

@Jari1980 Jari1980 requested a review from kvten March 4, 2026 13:29
@kvten kvten merged commit 06a9973 into k10xp:rewrite Mar 6, 2026
2 checks passed
@kvten kvten mentioned this pull request Mar 6, 2026
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.

2 participants