Skip to content

Add GET /api/leagues endpoint to OpenAPI spec#47

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/add-leagues-endpoint-1773980358
Open

Add GET /api/leagues endpoint to OpenAPI spec#47
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/add-leagues-endpoint-1773980358

Conversation

@mintlify
Copy link

@mintlify mintlify bot commented Mar 20, 2026

Summary

Syncs the OpenAPI spec with the new GET /api/leagues endpoint added in d-sports-api@c3d105d.

Trigger repo changes

  • app/api/leagues/route.ts — new public endpoint listing all leagues with metadata
  • lib/sync-leagues.ts — league sync logic from GitHub leagues repo
  • app/api/admin/leagues/sync/route.ts — admin-only sync trigger (not added to public spec)
  • app/api/webhooks/leagues-sync/route.ts — webhook trigger (not added to public spec)

Docs repo changes

  • api-reference/openapi.json — added Leagues tag and GET /api/leagues path with query parameter (country), response schema (id, slug, name, fullName, country, logo, logoFormat, colors, source, timestamps, team count), and error response.

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.

0 participants