added bearer token authentication

This commit was merged in pull request #17.
This commit is contained in:
Chinenye Nmoh
2025-10-29 17:39:31 +01:00
parent 1293f28bf2
commit 5794ddfa0c
15 changed files with 339 additions and 43 deletions
+31 -19
View File
@@ -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": []
}
]
}