Skip to content

Update OpenAPI spec: remove auth requirement from teams and top-users endpoints#78

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/openapi-auth-hardening-1774094673
Open

Update OpenAPI spec: remove auth requirement from teams and top-users endpoints#78
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/openapi-auth-hardening-1774094673

Conversation

@mintlify
Copy link

@mintlify mintlify bot commented Mar 21, 2026

Summary

Syncs the OpenAPI spec with d-sports-ecosystem/d-sports-api@b167e06 ("fix: harden read endpoints against auth resolution failures").

Changes in d-sports-api

  • app/api/teams/route.tsGET /api/teams catches auth failures and continues without a user
  • app/api/user/top-users/route.ts — error response changed from 400 to 500
  • server/user-actions.tsgetTopUsers no longer requires authentication
  • app/api/wallets/route.ts — auth hardened but still required (no spec change)
  • server/locker-room-actions.ts — uses optional auth for reads (spec already public)

OpenAPI spec updates (api-reference/openapi.json)

  • GET /api/teams: security changed from [{ "bearerAuth": [] }] to []; updated description
  • GET /api/user/top-users: security changed from [{ "bearerAuth": [] }] to []; added 500 error response and description

@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, 12:06 PM

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