mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
api key auth added
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//go:build docs
|
||||
// +build docs
|
||||
|
||||
// Package docs Only contains Swagger annotations that are **global**.
|
||||
// Run `swag init --parseDependency --parseInternal` after editing.
|
||||
package docs
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// General API meta (kept here so CI can inject version/build).
|
||||
// ------------------------------------------------------------
|
||||
|
||||
// @title NBA_Go API
|
||||
// @version 1.0
|
||||
// @description Stats service with API‑key auth
|
||||
// @BasePath /
|
||||
// @schemes http https
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// 🔐 SECURITY – this block is what you asked for
|
||||
// ------------------------------------------------------------
|
||||
//
|
||||
// @securityDefinitions.apikey ApiKeyAuth
|
||||
// @in header
|
||||
// @name X-API-Key
|
||||
//
|
||||
// (every protected endpoint still needs `@Security ApiKeyAuth`)
|
||||
// ------------------------------------------------------------
|
||||
Reference in New Issue
Block a user