Skip to content

Sync OpenAPI spec with admin, leagues, and cron routes#70

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/sync-admin-routes-1774092532
Open

Sync OpenAPI spec with admin, leagues, and cron routes#70
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/sync-admin-routes-1774092532

Conversation

@mintlify
Copy link

@mintlify mintlify bot commented Mar 21, 2026

Summary

Syncs api-reference/openapi.json to match the current d-sports-api codebase after d-sports-ecosystem/d-sports-api@0f77afd ("normalize batch d admin mobile utility routes").

Changes to openapi.json

Added endpoints

  • Admin (14 routes): /api/admin/stats, /api/admin/users, /api/admin/users/{userId}, /api/admin/users/toggle-admin, /api/admin/teams, /api/admin/teams/{teamId}, /api/admin/teams/{teamId}/members, /api/admin/teams/{teamId}/members/{userId}, /api/admin/collectibles, /api/admin/collectibles/{id}, /api/admin/packs, /api/admin/packs/{id}, /api/admin/fix-team-ownership, /api/admin/leagues/sync
  • Leagues: /api/leagues (GET)
  • Leaderboard: /api/leaderboard/reset (POST, admin)
  • Rewards: /api/rewards/admin-override (POST, DELETE, superadmin)
  • User: /api/user/all (GET), /api/user/check-username (GET)
  • Cron: /api/cron/leaderboard-reset, /api/cron/sync-trends
  • Webhooks: /api/webhooks/leagues-sync

Fixed

  • Removed non-existent GET /api/user/profile (code only has PATCH and POST)

Updated

  • Added Admin, Leagues, and Cron tags
  • Updated Webhooks tag description to include leagues-sync
  • Added cronSecret and leaguesWebhookSecret security schemes
  • Bumped version to 1.1.0

Trigger repo files

All app/api/** route files in d-sports-api.

@mintlify
Copy link
Author

mintlify bot commented Mar 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
d-sports 🟢 Ready View Preview Mar 21, 2026, 11:29 AM

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