Skip to content

Sync OpenAPI spec: add 8 missing routes, fix stale profile GET#73

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/openapi-sync-1774093993
Open

Sync OpenAPI spec: add 8 missing routes, fix stale profile GET#73
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/openapi-sync-1774093993

Conversation

@mintlify
Copy link

@mintlify mintlify bot commented Mar 21, 2026

Summary

Triggered by d-sports-api@cabaac2 (phase 2c server action normalization — initial repo commit).

Source changes (d-sports-api)

All app/api/** route files were added in the initial commit. Compared every route file against the existing openapi.json and found 8 production-facing routes missing from the spec plus one stale operation.

Docs changes

File changed: api-reference/openapi.json

Added endpoints:

Path Methods Tag
/api/leagues GET Leagues
/api/user/all GET User
/api/user/check-username GET User
/api/v1/product_entitlement_mapping GET Products
/api/thirdweb-proxy GET, POST Wallet and web3
/api/thirdweb-link POST Wallets
/api/webhooks/leagues-sync POST Webhooks

Fixed:

  • Removed phantom GET operation from /api/user/profile — the source code only exports PATCH and POST

Other:

  • Added Leagues tag
  • Updated webhookSecret security scheme description to cover both RevenueCat and leagues-sync webhooks

Not included (intentionally): admin-only routes (/api/admin/*, /api/leaderboard/reset, /api/pregen-wallet, /api/rewards/admin-override), cron jobs, and debug/test endpoints — consistent with the existing spec scope.

Add 8 undocumented production endpoints to openapi.json:
- /api/leagues (GET)
- /api/user/all (GET)
- /api/user/check-username (GET)
- /api/v1/product_entitlement_mapping (GET)
- /api/thirdweb-proxy (GET, POST)
- /api/thirdweb-link (POST)
- /api/webhooks/leagues-sync (POST)
Remove phantom GET operation from /api/user/profile that does
not exist in source code (only PATCH and POST are exported).
Add Leagues tag and update webhookSecret description.
Generated-By: mintlify-agent
@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:54 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