48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
getTeam:
|
|
get:
|
|
tags:
|
|
- team
|
|
summary: Get team members
|
|
description: Retrieve players who are part of the specified team
|
|
operationId: getTeamMembers
|
|
parameters:
|
|
- name: team
|
|
in: path
|
|
required: true
|
|
description: The group name of the team
|
|
schema:
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: successful operation
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/TeamMembers'
|
|
default:
|
|
description: Unexpected error
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "../generic/errors.yml#/components/schemas/ApiError"
|
|
components:
|
|
schemas:
|
|
TeamMembers:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/Player'
|
|
Player:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: The name of the player
|
|
example: a_name
|
|
uuid:
|
|
type: string
|
|
example: 0c35e520-927e-4c6a-87ad-ff0739c22e9d
|
|
description: The uuid of the team player
|
|
required:
|
|
- name
|
|
- uuid
|