Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
malikzh committed Oct 7, 2022
1 parent b86ebe2 commit 42e0e2b
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@ paths:
'200':
$ref: '#/components/responses/VerificationResponse'

/pkcs12/aliases:
post:
tags:
- Info
summary: Возвращает список алиасов для ключей.
requestBody:
content:
application/json:
schema:
type: object
properties:
keys:
type: array
minItems: 1
items:
$ref: '#/components/schemas/SignerRequest'
responses:
'200':
$ref: '#/components/responses/AliasesResponse'

/x509/info:
post:
tags:
Expand Down Expand Up @@ -322,6 +342,25 @@ components:
xml:
$ref: '#/components/schemas/SignedXML'

AliasesResponse:
description: Список алиасов для каждого сертификата.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ResponseStatus'
- properties:
aliases:
type: array
description: Список алиасов для каждого ключа.
items:
type: array
description: Список алиасов.
items:
type: string
description: Алиас.
example: e3fe35adda3b45cbea3a3f1ed48f263dc55c556e

VerificationResponse:
description: Результат проверки подписей в XML
content:
Expand Down Expand Up @@ -399,7 +438,8 @@ components:
SignerAlias:
type: string
description: Алиас ключа в хранилище PKCS12
example: e3fe35adda3b45cbea3a3f1ed48f263dc55c556e
nullable: true
example: null

SignerRequest:
type: object
Expand Down

0 comments on commit 42e0e2b

Please sign in to comment.