Skip to content

feat: add /api/topics endpoint analogous to /api/channels#401

Merged
bagbag merged 1 commit into
mediathekview:masterfrom
boingbasti:feature/api-topics
May 17, 2026
Merged

feat: add /api/topics endpoint analogous to /api/channels#401
bagbag merged 1 commit into
mediathekview:masterfrom
boingbasti:feature/api-topics

Conversation

@boingbasti
Copy link
Copy Markdown
Contributor

Adds a new GET /api/topics endpoint that returns all unique topics, optionally filtered by channel (?channel=ARD).

The implementation follows the same pattern as the existing /api/channels endpoint, using a Terms Aggregation on topic.keyword with alphabetical ordering. Size is set to 10000 to cover all unique topics.

Closes #400

@bagbag bagbag merged commit 5de3e90 into mediathekview:master May 17, 2026
@bagbag
Copy link
Copy Markdown
Member

bagbag commented May 17, 2026

Ist live und ausreichend schnell. Aber mit jetzt schon 9000 topics ist das aktuelle Limit bei 10000 wohl nicht langfristig passend. Aber das ist ein Problem für die Zukunft, nichts für die jetzige Codebasis mit OpenSearch.

@boingbasti boingbasti deleted the feature/api-topics branch May 18, 2026 07:45
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.

Feature-Wunsch: /api/topics Endpunkt (analog zu /api/channels)

2 participants