swagger fixed

This commit is contained in:
Ravi Prasad
2025-05-08 17:11:25 -05:00
parent 8c577b441c
commit 1d3edc68b4
8 changed files with 119 additions and 56 deletions
+23
View File
@@ -0,0 +1,23 @@
// swagger/swagger_doc.go
package main
// -----------------------------------------------------------------------------
// Global Swagger metadata
// -----------------------------------------------------------------------------
// @title NBA_Go API
// @version 1.0
// @description Stats service with APIkey auth
// @schemes http https
// @BasePath /
//
// -----------------------------------------------------------------------------
// 🔐 SECURITY
// -----------------------------------------------------------------------------
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name X-API-Key
//
// (each protected handler should still add `@Security ApiKeyAuth`)
// -----------------------------------------------------------------------------