Skip to content

Match Detail API added:#52

Merged
allyharrison merged 1 commit into
mainfrom
issue-41-Create_group_API
Jul 19, 2025
Merged

Match Detail API added:#52
allyharrison merged 1 commit into
mainfrom
issue-41-Create_group_API

Conversation

@jayshira

@jayshira jayshira commented Jul 19, 2025

Copy link
Copy Markdown
Contributor

API Routes for dropdown

  • api/details/stages: get a list of stages for the dropdown
  • api/details/groups: get a list of groups for the dropdown

API Routes for group/knockout stage details

  • api/details/group_stage/int:groupid: get table objects filtered by group
  • api/details/knockout_stage/int:stageid: get knockout stage objects filtered by stageid (cant take 0 as a stageid since it is used for group stage)

How the data is structured for group/knockout stage:

[
    [
        {team1 row details}, # one team row
        {team2 row details},
    ], # one table
    [
        {team2 row details},
        {team3 row details},
    ]
]

Related issue

- api/details/stages: get a list of stages for the dropdown
- api/details/groups: get a list of groups for the dropdown

- api/details/group_stage/<int:groupid>: get table objects filtered by group
- api/details/knockout_stage/<int:stageid>: get knockout stage objects filtered by stageid (cant take 0 as a stageid since it is used for group stage)

How the data is structured for group/knockout stage:
[
    [
        {team1 row details}, (one team row)
        {team2 row details},
    ], (one table)
    [
        {team2 row details},
        {team3 row details},
    ]
]
@allyharrison allyharrison merged commit 5ab7a60 into main Jul 19, 2025
6 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.

Create group API

2 participants