added bearer token authentication
This commit was merged in pull request #17.
This commit is contained in:
@@ -28,6 +28,15 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "Auth",
|
||||
"description": "Get access token for verification",
|
||||
"externalDocs": {
|
||||
"description": "Find out more",
|
||||
"url": "https://www.simbrellang.net"
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"name": "RACCheck",
|
||||
"description": "Risk Acceptance Criteria Request",
|
||||
@@ -110,6 +119,9 @@
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/api/Auth/generate-token": {
|
||||
"$ref": "swagger/paths/GenerateToken.json"
|
||||
},
|
||||
"/api/system-health-check": {
|
||||
"$ref": "swagger/paths/HealthCheck.json"
|
||||
},
|
||||
@@ -146,6 +158,12 @@
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
"GenerateTokenRequest": {
|
||||
"$ref": "./schemas/GenerateTokenRequest.json"
|
||||
},
|
||||
"GenerateTokenResponse": {
|
||||
"$ref": "./schemas/GenerateTokenResponse.json"
|
||||
},
|
||||
"RACCheckRequest": {
|
||||
"$ref": "./schemas/RACCheckRequest.json"
|
||||
},
|
||||
@@ -217,24 +235,18 @@
|
||||
}
|
||||
},
|
||||
"securitySchemes": {
|
||||
"api_key": {
|
||||
"type": "apiKey",
|
||||
"name": "x-api-key",
|
||||
"in": "header"
|
||||
},
|
||||
"app_id": {
|
||||
"type": "apiKey",
|
||||
"name": "App-Id",
|
||||
"in": "header"
|
||||
}
|
||||
}
|
||||
"BearerAuth": {
|
||||
"type": "http",
|
||||
"scheme": "bearer",
|
||||
"bearerFormat": "JWT",
|
||||
"description": "Standard Authorization header using the Bearer scheme. Example: 'Bearer {token}'"
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
},
|
||||
{
|
||||
"app_id": []
|
||||
}
|
||||
]
|
||||
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user