fix(swagger): restore apikey security definition with Bearer usage description

This commit is contained in:
2025-12-25 11:32:55 +08:00
parent c8fced4cf1
commit b566eb8058
4 changed files with 52 additions and 7 deletions

View File

@@ -798,7 +798,7 @@ info:
email: support@swagger.io
name: API Support
url: http://www.swagger.io/support
description: Master key for tenant API access
description: Management API for EZ-API Gateway system.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
@@ -3025,4 +3025,17 @@ paths:
summary: Update child key
tags:
- master
securityDefinitions:
AdminAuth:
description: 'Type "Bearer" followed by a space and the admin token. Example:
Bearer admin123'
in: header
name: Authorization
type: apiKey
MasterAuth:
description: 'Type "Bearer" followed by a space and the master key. Example: Bearer
sk-xxx'
in: header
name: Authorization
type: apiKey
swagger: "2.0"