MM-57013 Added download button for downloading logs from server logs page in system console (#26389)
* added download system logs * download all logs * download all logs check-lint fix * check lint fix * download logs api * download logs api working * download logs working with error log * linting issues and code cleanup * CI check fix * documented the api and logs from file with error handling * test and final changes done * final changes done * Fix order of server-side translations * Fix incorrect indentation of logs.yaml --------- Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
71c25fb316
Коммит
a8b18ac807
18
api/v4/source/logs.yaml
Обычный файл
18
api/v4/source/logs.yaml
Обычный файл
@@ -0,0 +1,18 @@
|
||||
/api/v4/logs/download:
|
||||
get:
|
||||
tags:
|
||||
- logs
|
||||
summary: Download system logs
|
||||
description: >
|
||||
Downloads the system logs as a text file.
|
||||
operationId: DownloadSystemLogs
|
||||
responses:
|
||||
"200":
|
||||
description: System logs downloaded successfully.
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
format: binary
|
||||
"500":
|
||||
$ref: "#/components/responses/InternalServerError"
|
||||
Ссылка в новой задаче
Block a user