summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorCyber <44707958+CyberL1@users.noreply.github.com>2021-09-04 23:21:14 +0200
committerCyber <44707958+CyberL1@users.noreply.github.com>2021-09-04 23:21:14 +0200
commitdc2a3d99841d81b91a53d31896c43fa66f595cec (patch)
tree1454ba6cb3fabbd50c12c17fcd50570bcbf42c6f /api
parent:arrow_up: update test client (diff)
downloadserver-dc2a3d99841d81b91a53d31896c43fa66f595cec.tar.xz
Add token authorization method to swagger openapi
Diffstat (limited to 'api')
-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