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
+24
View File
@@ -0,0 +1,24 @@
// Package main holds the global Swagger annotations.
// Run “swag init --parseDependency --parseInternal” after editing.
package main
// -----------------------------------------------------------------------------
// General API information
// -----------------------------------------------------------------------------
// @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 still needs `@Security ApiKeyAuth`)
// -----------------------------------------------------------------------------