TD-176: Add 401 errors to payres paths (#10)

This commit is contained in:
Alexey S 2022-03-05 18:14:31 +03:00 committed by GitHub
parent 1235c0abd6
commit 932fa254a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,8 @@ post:
$ref: '#/definitions/StoreBankCardResponse'
'400':
$ref: '#/responses/BadRequest'
'401':
$ref: '#/responses/Unauthorized'
'422':
description: Непригодные данные банковской карты
schema:

View File

@ -19,5 +19,7 @@ get:
$ref: '#/definitions/SecuredBankCard'
'400':
$ref: '#/responses/BadRequest'
'401':
$ref: '#/responses/Unauthorized'
'404':
$ref: '#/responses/NotFound'

View File

@ -45,6 +45,9 @@ responses:
schema:
$ref: '#/definitions/BadRequest'
Unauthorized:
description: Ошибка авторизации
parameters:
requestID: