mirror of
https://github.com/valitydev/swag-url-shortener.git
synced 2024-11-06 01:15:19 +00:00
MSPF-320: Explicitly allow 401s (#4)
This commit is contained in:
parent
d03407f562
commit
a3e9bac2d6
@ -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'
|
||||||
|
@ -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':
|
||||||
|
@ -41,6 +41,8 @@ security:
|
|||||||
responses:
|
responses:
|
||||||
NotFound:
|
NotFound:
|
||||||
description: Объект не найден
|
description: Объект не найден
|
||||||
|
Unauthorized:
|
||||||
|
description: Операция требует авторизации
|
||||||
Forbidden:
|
Forbidden:
|
||||||
description: Операция недоступна
|
description: Операция недоступна
|
||||||
BadRequest:
|
BadRequest:
|
||||||
|
Loading…
Reference in New Issue
Block a user