mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
fix(swagger): restore apikey security definition with Bearer usage description
This commit is contained in:
16
docs/docs.go
16
docs/docs.go
@@ -4714,6 +4714,20 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
"AdminAuth": {
|
||||
"description": "Type \"Bearer\" followed by a space and the admin token. Example: Bearer admin123",
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
},
|
||||
"MasterAuth": {
|
||||
"description": "Type \"Bearer\" followed by a space and the master key. Example: Bearer sk-xxx",
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
@@ -4724,7 +4738,7 @@ var SwaggerInfo = &swag.Spec{
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "EZ-API Control Plane",
|
||||
Description: "Master key for tenant API access",
|
||||
Description: "Management API for EZ-API Gateway system.",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
|
||||
Reference in New Issue
Block a user