{
"openapi": "3.0.0",
"info": {
"title": "Multiple Auth Schemes Test API",
"version": "1.0.0",
"description": "API for testing multiple authentication schemes with x-aperture-secret extensions"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "Bearer token authentication",
"x-aperture-secret": {
"source": "env",
"name": "MULTI_BEARER_TOKEN"
}
},
"apiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key",
"description": "API key authentication",
"x-aperture-secret": {
"source": "env",
"name": "MULTI_API_KEY"
}
}
}
},
"paths": {
"/bearer-protected": {
"get": {
"summary": "Bearer protected endpoint",
"operationId": "getBearerProtected",
"tags": ["bearer"],
"security": [{"bearerAuth": []}],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {"type": "string"}
}
}
}
}
}
}
}
},
"/api-key-protected": {
"get": {
"summary": "API key protected endpoint",
"operationId": "getApiKeyProtected",
"tags": ["apikey"],
"security": [{"apiKeyAuth": []}],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {"type": "string"}
}
}
}
}
}
}
}
}
},
"servers": [
{"url": "https://api.example.com"}
]
}