docs(swagger): Swagger auth

This commit is contained in:
2024-12-11 19:39:18 +01:00
parent a1ba28cacb
commit 1dfd96869d
4 changed files with 37 additions and 2 deletions

View File

@@ -320,7 +320,19 @@ const docTemplate = `{
}
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "key",
"in": "query"
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it

View File

@@ -311,5 +311,17 @@
}
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "key",
"in": "query"
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}

View File

@@ -211,4 +211,11 @@ paths:
summary: Generate a contract
tags:
- contracts
security:
- ApiKeyAuth: []
securityDefinitions:
ApiKeyAuth:
in: query
name: key
type: apiKey
swagger: "2.0"