feat: support puppage screenshots
This commit is contained in:
parent
cdbb915d7b
commit
b422374639
3 changed files with 115 additions and 1 deletions
64
swagger.json
64
swagger.json
|
|
@ -741,6 +741,70 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/session/getPageScreenshot/{sessionId}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Session"
|
||||
],
|
||||
"summary": "Get page screenshot",
|
||||
"description": "Screenshot of the client with the given session ID.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "sessionId",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Unique identifier for the session (alphanumeric and - allowed)",
|
||||
"example": "f8377d8d-a589-4242-9ba6-9486a04ef80c"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Screenshot image.",
|
||||
"content": {
|
||||
"image/png": {}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ForbiddenResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"422": {
|
||||
"description": "Unprocessable Entity.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Server failure.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"apiKeyAuth": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/client/getClassInfo/{sessionId}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue