Add team renaming functionality to API and frontend. Implement backend logic for renaming teams, including validation and synchronization with event rosters. Update frontend components to allow team name editing and ensure proper state management. Enhance translations and styles for new features.
This commit is contained in:
@@ -559,6 +559,25 @@ paths:
|
||||
$ref: "#/components/schemas/Team"
|
||||
"422":
|
||||
$ref: "#/components/responses/ValidationError"
|
||||
/api/teams/{teamId}/name:
|
||||
put:
|
||||
tags: [Teams]
|
||||
operationId: renameLiveTeam
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/TeamId"
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [name]
|
||||
properties:
|
||||
name: { type: string, minLength: 2, maxLength: 32 }
|
||||
responses:
|
||||
"200": { description: Team renamed, content: { application/json: { schema: { $ref: "#/components/schemas/Team" } } } }
|
||||
"403": { $ref: "#/components/responses/Forbidden" }
|
||||
"409": { $ref: "#/components/responses/Conflict" }
|
||||
/api/coin-toss:
|
||||
post:
|
||||
tags: [Series]
|
||||
|
||||
Reference in New Issue
Block a user