Skip to content

Commit 42e0e2b

Browse files
committed
update spec
1 parent b86ebe2 commit 42e0e2b

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

openapi.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ paths:
5151
'200':
5252
$ref: '#/components/responses/VerificationResponse'
5353

54+
/pkcs12/aliases:
55+
post:
56+
tags:
57+
- Info
58+
summary: Возвращает список алиасов для ключей.
59+
requestBody:
60+
content:
61+
application/json:
62+
schema:
63+
type: object
64+
properties:
65+
keys:
66+
type: array
67+
minItems: 1
68+
items:
69+
$ref: '#/components/schemas/SignerRequest'
70+
responses:
71+
'200':
72+
$ref: '#/components/responses/AliasesResponse'
73+
5474
/x509/info:
5575
post:
5676
tags:
@@ -322,6 +342,25 @@ components:
322342
xml:
323343
$ref: '#/components/schemas/SignedXML'
324344

345+
AliasesResponse:
346+
description: Список алиасов для каждого сертификата.
347+
content:
348+
application/json:
349+
schema:
350+
allOf:
351+
- $ref: '#/components/schemas/ResponseStatus'
352+
- properties:
353+
aliases:
354+
type: array
355+
description: Список алиасов для каждого ключа.
356+
items:
357+
type: array
358+
description: Список алиасов.
359+
items:
360+
type: string
361+
description: Алиас.
362+
example: e3fe35adda3b45cbea3a3f1ed48f263dc55c556e
363+
325364
VerificationResponse:
326365
description: Результат проверки подписей в XML
327366
content:
@@ -399,7 +438,8 @@ components:
399438
SignerAlias:
400439
type: string
401440
description: Алиас ключа в хранилище PKCS12
402-
example: e3fe35adda3b45cbea3a3f1ed48f263dc55c556e
441+
nullable: true
442+
example: null
403443

404444
SignerRequest:
405445
type: object

0 commit comments

Comments
 (0)