feat: add get all session endpoint
This commit is contained in:
parent
71c8deeb4a
commit
2b30d5c1b0
4 changed files with 94 additions and 1 deletions
63
swagger.json
63
swagger.json
|
|
@ -106,6 +106,52 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/session/getSessions": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Session"
|
||||
],
|
||||
"summary": "Get all sessions",
|
||||
"description": "Get all sessions.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Retrieved all sessions.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/GetSessionsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ForbiddenResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Server failure.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"apiKeyAuth": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/session/start/{sessionId}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
@ -11069,6 +11115,23 @@
|
|||
"xml": {
|
||||
"name": "ForbiddenResponse"
|
||||
}
|
||||
},
|
||||
"GetSessionsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"success": {
|
||||
"type": "boolean",
|
||||
"example": true
|
||||
},
|
||||
"result": {
|
||||
"type": "array",
|
||||
"example": [],
|
||||
"items": {}
|
||||
}
|
||||
},
|
||||
"xml": {
|
||||
"name": "GetSessionsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"securitySchemes": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue