mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 20:52:42 +01:00
Add token authorization method to swagger openapi
This commit is contained in:
parent
0bf59ee28a
commit
405a2964da
@ -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": []
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user