Add authorization to hardware contract

This commit is contained in:
kashiuno 2025-01-08 08:35:36 +03:00
parent 95f866cd78
commit 2cc798376c

View File

@ -21,6 +21,8 @@ paths:
summary: Получение qr кодов
description: Получение qr кодов за сегодня, за исключением прошедшего времени
operationId: getQrCodes
security:
- bearerAuth: [ ]
responses:
'200':
description: Successful operation
@ -46,6 +48,8 @@ paths:
summary: Отметка qr-кода как использованного(Для сбора метрик).
description: Отправляется микрокомпьютером, когда qr-код был задействован.
operationId: markQrCodeAsUsed
security:
- bearerAuth: [ ]
responses:
'200':
description: Successfull mark
@ -81,3 +85,8 @@ components:
type: string
format: uuid
example: 'dd654b6c-a671-488e-8fc9-eb564d0a8f22'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT