summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 23:27:41 +0200
committerGitHub <noreply@github.com>2021-09-04 23:27:41 +0200
commit5fa3820d547086a56d35877c2e9024e47b28be66 (patch)
tree4546515dc813b25fa6a9f7d9de2d5c277f4c78df
parent:arrow_up: update test client (diff)
parentAdd token authorization method to swagger openapi (diff)
downloadserver-5fa3820d547086a56d35877c2e9024e47b28be66.tar.xz
Merge pull request #338 from CyberL1/master
Add token authorization method to swagger openapi
-rw-r--r--api/assets/openapi.json19
1 files changed, 13 insertions, 6 deletions
diff --git a/api/assets/openapi.json b/api/assets/openapi.json

index 5244da36..fa527911 100644 --- a/api/assets/openapi.json +++ b/api/assets/openapi.json
@@ -32,7 +32,8 @@ "description": "User not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } - } + }, + "security": [{ "Token": [] }] } }, "/users/@me": { @@ -46,7 +47,8 @@ "description": "Authenticated user", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPublic" } } } } - } + }, + "security": [{ "Token": [] }] } } }, @@ -1470,9 +1472,14 @@ } }, "requestBodies": {}, - "securitySchemes": {}, + "securitySchemes": { + "Token": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + }, "links": {}, "callbacks": {} - }, - "security": [] -} + } +} \ No newline at end of file