H-3657: добавил Personal Access Tokens в v2 swagger #34

Merged
denis merged 4 commits from feature/H-3657 into master 2026-05-22 11:03:59 +00:00
Showing only changes of commit 4c74aa22f5 - Show all commits
+39 -3
View File
@@ -12379,6 +12379,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/Wallet' $ref: '#/components/schemas/Wallet'
_links:
$ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'
@@ -12411,6 +12413,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/WalletTransaction' $ref: '#/components/schemas/WalletTransaction'
_links:
$ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'
@@ -12490,10 +12494,13 @@ components:
1 — NEW, 2 — QUEUED, 3 — STARTED, 4 — FINISHED, 5 — ERROR, 6 — FATAL 1 — NEW, 2 — QUEUED, 3 — STARTED, 4 — FINISHED, 5 — ERROR, 6 — FATAL
arguments: arguments:
type: array type: array
result:
type: object
description: | description: |
Результат. Для wallet-excel содержит: Аргументы воркера. Для wallet-excel: `[WalletExcelProcessor::class, mappings]`.
Для excel-экспорта: `[ReportClass::class, params]`.
items: {}
result:
description: |
Результат. Для wallet-excel:
``` ```
{ {
"summary": { "totalRows": 4, "validCount": 1, "invalidCount": 3 }, "summary": { "totalRows": 4, "validCount": 1, "invalidCount": 3 },
@@ -12501,9 +12508,32 @@ components:
"invalidRows": [{ "row": 2, "errors": {...} }, ...] "invalidRows": [{ "row": 2, "errors": {...} }, ...]
} }
``` ```
Для незавершённой обработки или экспорта — пустой массив `[]`.
oneOf:
- type: object
- type: array
items: {}
created_at: { type: string } created_at: { type: string }
started_at: { type: string, nullable: true } started_at: { type: string, nullable: true }
finished_at: { type: string, nullable: true } finished_at: { type: string, nullable: true }
file:
type: object
nullable: true
description: |
Метаданные файла-источника. Возвращается всегда (не нужно `?expand=`).
Содержит `id, name, ext, fid, url, file_type, mime_type, size,
file_status_id, user_id, created_at` и др.
created:
type: string
description: 'Локализованная `created_at` (например `04.05.2026 at 13:56`).'
started:
type: string
nullable: true
description: Локализованная `started_at`.
finished:
type: string
nullable: true
description: Локализованная `finished_at`.
FileProcessingList: FileProcessingList:
type: object type: object
@@ -12512,6 +12542,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/FileProcessing' $ref: '#/components/schemas/FileProcessing'
_links:
$ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'
@@ -12567,6 +12599,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/UserApiToken' $ref: '#/components/schemas/UserApiToken'
_links:
$ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'
@@ -12634,6 +12668,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/UserApiTokenAdmin' $ref: '#/components/schemas/UserApiTokenAdmin'
_links:
$ref: '#/components/schemas/_links'
_meta: _meta:
$ref: '#/components/schemas/_meta' $ref: '#/components/schemas/_meta'