MSPF-320: Explicitly allow 401s (#4)

This commit is contained in:
Andrew Mayorov 2017-12-19 14:10:35 +03:00 committed by GitHub
parent d03407f562
commit a3e9bac2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -18,5 +18,7 @@ post:
$ref: '#/definitions/ShortenedUrl' $ref: '#/definitions/ShortenedUrl'
'400': '400':
$ref: '#/responses/BadRequest' $ref: '#/responses/BadRequest'
'401':
$ref: '#/responses/Unauthorized'
'403': '403':
$ref: '#/responses/Forbidden' $ref: '#/responses/Forbidden'

View File

@ -13,6 +13,8 @@ get:
$ref: '#/definitions/ShortenedUrl' $ref: '#/definitions/ShortenedUrl'
'400': '400':
$ref: '#/responses/BadRequest' $ref: '#/responses/BadRequest'
'401':
$ref: '#/responses/Unauthorized'
'403': '403':
$ref: '#/responses/Forbidden' $ref: '#/responses/Forbidden'
'404': '404':
@ -30,6 +32,8 @@ delete:
description: Короткая ссылка удалена description: Короткая ссылка удалена
'400': '400':
$ref: '#/responses/BadRequest' $ref: '#/responses/BadRequest'
'401':
$ref: '#/responses/Unauthorized'
'403': '403':
$ref: '#/responses/Forbidden' $ref: '#/responses/Forbidden'
'404': '404':

View File

@ -41,6 +41,8 @@ security:
responses: responses:
NotFound: NotFound:
description: Объект не найден description: Объект не найден
Unauthorized:
description: Операция требует авторизации
Forbidden: Forbidden:
description: Операция недоступна description: Операция недоступна
BadRequest: BadRequest: