Adds jwt token to sample swagger

This commit is contained in:
Gabriel Matte 2024-11-26 18:51:22 -05:00
parent 7b348d54ad
commit 973f86b269

View file

@ -13,6 +13,11 @@
"description": "Via npm" "description": "Via npm"
} }
], ],
"security": [
{
"bearerAuth": []
}
],
"paths": { "paths": {
"/api/room": { "/api/room": {
"get": { "get": {
@ -100,6 +105,13 @@
} }
}, },
"components": { "components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
},
"schemas": { "schemas": {
"Room": { "Room": {
"type": "object", "type": "object",