chore: update swagger
This commit is contained in:
parent
2d0c55848b
commit
6f1d761c99
|
@ -12,15 +12,15 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/LoginRequest"
|
$ref: '#/components/schemas/LoginRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Successfully logged in
|
description: Successfully logged in
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/LoginResponse"
|
$ref: '#/components/schemas/LoginResponse'
|
||||||
"401":
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
/api/auth/register:
|
/api/auth/register:
|
||||||
post:
|
post:
|
||||||
|
@ -30,11 +30,11 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/RegisterRequest"
|
$ref: '#/components/schemas/RegisterRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Successfully registered
|
description: Successfully registered
|
||||||
"400":
|
'400':
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
/api/auth/verify-email:
|
/api/auth/verify-email:
|
||||||
post:
|
post:
|
||||||
|
@ -44,20 +44,20 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/VerifyEmailRequest"
|
$ref: '#/components/schemas/VerifyEmailRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Email verified successfully
|
description: Email verified successfully
|
||||||
/api/auth/otp/generate:
|
/api/auth/otp/generate:
|
||||||
get:
|
get:
|
||||||
summary: Generate OTP for two-factor authentication
|
summary: Generate OTP for two-factor authentication
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OTP generated successfully
|
description: OTP generated successfully
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/OTPGenerateResponse"
|
$ref: '#/components/schemas/OTPGenerateResponse'
|
||||||
/api/auth/otp/verify:
|
/api/auth/otp/verify:
|
||||||
post:
|
post:
|
||||||
summary: Verify OTP for enabling two-factor authentication
|
summary: Verify OTP for enabling two-factor authentication
|
||||||
|
@ -66,9 +66,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/OTPVerifyRequest"
|
$ref: '#/components/schemas/OTPVerifyRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OTP verified successfully
|
description: OTP verified successfully
|
||||||
/api/auth/otp/validate:
|
/api/auth/otp/validate:
|
||||||
post:
|
post:
|
||||||
|
@ -78,9 +78,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/OTPValidateRequest"
|
$ref: '#/components/schemas/OTPValidateRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OTP validated successfully
|
description: OTP validated successfully
|
||||||
/api/auth/otp/disable:
|
/api/auth/otp/disable:
|
||||||
post:
|
post:
|
||||||
|
@ -90,9 +90,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/OTPDisableRequest"
|
$ref: '#/components/schemas/OTPDisableRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: OTP disabled successfully
|
description: OTP disabled successfully
|
||||||
/api/auth/password-reset/request:
|
/api/auth/password-reset/request:
|
||||||
post:
|
post:
|
||||||
|
@ -102,9 +102,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/PasswordResetRequest"
|
$ref: '#/components/schemas/PasswordResetRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Password reset requested successfully
|
description: Password reset requested successfully
|
||||||
/api/auth/password-reset/confirm:
|
/api/auth/password-reset/confirm:
|
||||||
post:
|
post:
|
||||||
|
@ -114,17 +114,21 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/PasswordResetVerifyRequest"
|
$ref: '#/components/schemas/PasswordResetVerifyRequest'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Password reset successfully
|
description: Password reset successfully
|
||||||
/api/auth/ping:
|
/api/auth/ping:
|
||||||
post:
|
post:
|
||||||
summary: Auth check endpoint
|
summary: Auth check endpoint
|
||||||
responses:
|
responses:
|
||||||
"200":
|
'200':
|
||||||
description: Pong
|
description: Pong
|
||||||
"401":
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/PingResponse'
|
||||||
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
|
|
||||||
components:
|
components:
|
||||||
|
@ -147,14 +151,14 @@ components:
|
||||||
RegisterRequest:
|
RegisterRequest:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- firstName
|
- first_name
|
||||||
- lastName
|
- last_name
|
||||||
- email
|
- email
|
||||||
- password
|
- password
|
||||||
properties:
|
properties:
|
||||||
firstName:
|
first_name:
|
||||||
type: string
|
type: string
|
||||||
lastName:
|
last_name:
|
||||||
type: string
|
type: string
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
|
@ -216,3 +220,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
|
PingResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
ping:
|
||||||
|
type: string
|
||||||
|
|
Loading…
Reference in New Issue