Added openapi sec scheme for the scan station auth

ref #67
This commit is contained in:
2021-01-08 18:28:35 +01:00
parent ce8fed350e
commit 7728759bcd
3 changed files with 14 additions and 4 deletions

View File

@@ -39,7 +39,12 @@ export default async (app: Application) => {
"StatsApiToken": {
"type": "http",
"scheme": "bearer",
description: "Api token that can be obtained by creating a new stats client (post to /api/statsclients)."
description: "Api token that can be obtained by creating a new stats client (post to /api/statsclients). Only valid for obtaining stats."
},
"StationApiToken": {
"type": "http",
"scheme": "bearer",
description: "Api token that can be obtained by creating a new scan station (post to /api/stations). Only valid for creating scans."
}
}
},