我有一个Swagger文件,从以下开始
{
"swagger": "2.0",
"basePath": "/api",
"schemes": [
"https"
],
"securityDefinitions": {
"internalApiKey": {
"type": "apiKey",
"name": "AAuthorization",
"in": "header"
}
},
"security" : [
{ "internalApiKey": [ ] }
],
Run Code Online (Sandbox Code Playgroud)
此prolog将安全设置应用于文件中的每个路径.例如.
"paths": {
"/foo": {
"get": {
Run Code Online (Sandbox Code Playgroud)
有没有什么方法可以在一个特定的路径或方法上禁用安全性?