diff --git a/spec/paths/shortened-urls.yaml b/spec/paths/shortened-urls.yaml index 49e09f7..171b344 100644 --- a/spec/paths/shortened-urls.yaml +++ b/spec/paths/shortened-urls.yaml @@ -18,5 +18,7 @@ post: $ref: '#/definitions/ShortenedUrl' '400': $ref: '#/responses/BadRequest' + '401': + $ref: '#/responses/Unauthorized' '403': $ref: '#/responses/Forbidden' diff --git a/spec/paths/shortened-urls@{shortenedUrlID}.yaml b/spec/paths/shortened-urls@{shortenedUrlID}.yaml index 6c7bb09..76a7c3f 100644 --- a/spec/paths/shortened-urls@{shortenedUrlID}.yaml +++ b/spec/paths/shortened-urls@{shortenedUrlID}.yaml @@ -13,6 +13,8 @@ get: $ref: '#/definitions/ShortenedUrl' '400': $ref: '#/responses/BadRequest' + '401': + $ref: '#/responses/Unauthorized' '403': $ref: '#/responses/Forbidden' '404': @@ -30,6 +32,8 @@ delete: description: Короткая ссылка удалена '400': $ref: '#/responses/BadRequest' + '401': + $ref: '#/responses/Unauthorized' '403': $ref: '#/responses/Forbidden' '404': diff --git a/spec/swagger.yaml b/spec/swagger.yaml index 230e31d..f14e17c 100644 --- a/spec/swagger.yaml +++ b/spec/swagger.yaml @@ -41,6 +41,8 @@ security: responses: NotFound: description: Объект не найден + Unauthorized: + description: Операция требует авторизации Forbidden: description: Операция недоступна BadRequest: