diff --git a/doc/specs/lichess-api.yaml b/doc/specs/lichess-api.yaml index 1848d86..0d2d6c2 100644 --- a/doc/specs/lichess-api.yaml +++ b/doc/specs/lichess-api.yaml @@ -426,6 +426,9 @@ paths: /broadcast/new: $ref: './tags/broadcasts/broadcast-new.yaml' + /broadcast/by/{username}: + $ref: './tags/broadcasts/broadcast-by-user.yaml' + /broadcast/{slug}/{broadcastTournamentId}: $ref: './tags/broadcasts/broadcast-slug-broadcastTournamentId.yaml' diff --git a/doc/specs/tags/broadcasts/broadcast-by-user.yaml b/doc/specs/tags/broadcasts/broadcast-by-user.yaml new file mode 100644 index 0000000..1afa75e --- /dev/null +++ b/doc/specs/tags/broadcasts/broadcast-by-user.yaml @@ -0,0 +1,30 @@ +get: + operationId: broadcastByUser + summary: Get broadcasts by a user + description: | + Returns all of the tournaments being broadcast by a user. Results are paginated. + tags: + - Broadcasts + security: [] + parameters: + - in: path + name: username + required: true + schema: + type: string + - in: query + name: page + required: false + description: Selects the desired page of results. + schema: + type: integer + minimum: 1 + maximum: 19 + default: 1 + responses: + "200": + description: The list of tournaments being broadcast by a user. Returns html for the webpage that shows all tournaments that are being broadcast by the user. + content: + text/html: + schema: + type: object