Api endpoints and responses - vanemarendajaks-team15/pb-frontend GitHub Wiki
/api/v1/tournaments
- "id": 1,
- "name": "inventore nostrum explicabo",
- "location": "North Spencer",
- "start_date": "2026-05-11 18:37:14",
- "end_date": "2026-06-03 03:08:48",
- "description": "Consequatur impedit blanditiis unde ut."
/api/v1/tournaments/{id}
- "id": 1,
- "name": "inventore nostrum explicabo",
- "location": "North Spencer",
- "start_date": "2026-05-11 18:37:14",
- "end_date": "2026-06-03 03:08:48",
- "description": "Consequatur impedit blanditiis unde ut."
/api/v1/categories
- "id": 1,
- "tournament_id": 1,
- "name": "laudantium"
/api/v1/categories/{id}
- "id": 1,
- "tournament_id": 1,
- "name": "laudantium"
/api/v1/tournament-registrations
- "id": 1,
- "tournament_id": 1,
- "player1_id": 3,
- "player1_name": "Lorenza Hintz",
- "player2_id": 8,
- "player2_name": "William Lynch",
- "category_id": 1
/api/v1/tournament-registrations/{id}
- "id": 1,
- "tournament_id": 1,
- "player1_id": 3,
- "player1_name": "Lorenza Hintz",
- "player2_id": 8,
- "player2_name": "William Lynch",
- "category_id": 1
/api/v1/groups
- "id": 1,
- "category_id": 1,
- "name": "iure"
/api/v1/groups/{id}
- "id": 1,
- "category_id": 1,
- "name": "iure"
/api/v1/courts
- "id": 1,
- "tournament_id": 1,
- "court_name": "Court 5"
/api/v1/courts/{id}
- "id": 1,
- "tournament_id": 1,
- "court_name": "Court 5"
/api/v1/games
- "id": 1,
- "tournament_id": 1,
- "team_a": 2,
- "team_b": 7,
- "court_id": 1,
- "team_a_score": [
7,
4
],
- "team_b_score": [
8,
8
],
- "serving_team": "B",
- "serving_player": 2,
- "status": "cancelled",
- "scheduled_at": "2026-04-10T03:19:50.000000Z" <- muuta kontrolleris carboniga loetavasse formaati
/api/v1/games/{id}
- "id": 1,
- "tournament_id": 1,
- "team_a": 2,
- "team_b": 7,
- "court_id": 1,
- "team_a_score": [
7,
4
],
- "team_b_score": [
8,
8
],
- "serving_team": "B",
- "serving_player": 2,
- "status": "cancelled",
- "scheduled_at": "2026-04-10T03:19:50.000000Z"
/api/v1/tournament-managers
- "id": 1,
- "tournament_id": 1,
- "user_id": 4,
- "role": "admin",
/api/tournament-managers/{id}
- "id": 1,
- "tournament_id": 1,
- "user_id": 4,
- "role": "admin"