Beginning adding OTP verification to client shange screen

This commit is contained in:
Lucas Mathews
2024-05-28 17:49:31 +02:00
parent 5d44aef65f
commit 870dd1435f
33 changed files with 72 additions and 29 deletions

15
api.yml
View File

@@ -112,7 +112,7 @@ paths:
'404':
description: client_id not found
/OTP/Generate:
get:
post:
tags:
- auth
summary: Generate OTP
@@ -148,6 +148,13 @@ paths:
required: true
schema:
type: string
- name: otp_code
in: query
description: OTP to verify
required: true
schema:
type: integer
format: int32
- name: name
in: query
description: Client Name
@@ -187,8 +194,12 @@ paths:
responses:
'200':
description: Successful operation
'400':
'404':
description: Invalid Client ID supplied
'403':
description: Unauthorised
'405':
description: OTP not valid
get:
tags:
- client