38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
post:
|
|
tags: [Verification, Auth]
|
|
summary: Verify code and complete pending flow
|
|
description: |
|
|
Verifies submitted code and consumes verification token.
|
|
For login purpose, returns full auth payload (access + refresh tokens); for other purposes returns operation result.
|
|
operationId: verificationVerifyCode
|
|
security:
|
|
- bearerAuth: []
|
|
requestBody:
|
|
$ref: ./bodies/verification.yaml#/components/requestBodies/VerifyCodeBody
|
|
responses:
|
|
'200':
|
|
description: Verification successful
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
|
|
- type: object
|
|
properties:
|
|
data:
|
|
$ref: ./response/verification.yaml#/components/schemas/VerifyResultData
|
|
'400':
|
|
$ref: ../response/operation.yaml#/components/responses/BadRequest
|
|
'401':
|
|
$ref: ../response/operation.yaml#/components/responses/Unauthorized
|
|
'403':
|
|
$ref: ../response/operation.yaml#/components/responses/Forbidden
|
|
'404':
|
|
$ref: ../response/operation.yaml#/components/responses/NotFound
|
|
'410':
|
|
$ref: ../response/operation.yaml#/components/responses/Gone
|
|
'409':
|
|
$ref: ../response/operation.yaml#/components/responses/Conflict
|
|
'500':
|
|
$ref: ../response/operation.yaml#/components/responses/InternalServerError
|