Skip to content

Commit

Permalink
renamed resetPassword to updatePassword and added reset-password route (
Browse files Browse the repository at this point in the history
  • Loading branch information
blewisCycle authored Sep 18, 2023
1 parent 3f59e15 commit ee437bd
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
4 changes: 3 additions & 1 deletion public/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ paths:
"/v1/account/logins":
"$ref": "./paths/accounts/logins.yml"
"/v1/account/password":
"$ref": "./paths/accounts/password.yml"
"$ref": "./paths/accounts/updatePassword.yml"
"/v1/account/reset-password":
"$ref": "./paths/accounts/resetPassword.yml"
"/v1/account/2fa/setup":
"$ref": "./paths/accounts/twoFa/setup.yml"
"/v1/account/2fa/disable":
Expand Down
52 changes: 52 additions & 0 deletions public/paths/accounts/resetPassword.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
post:
operationId: "resetPassword"
security:
- bearerAuth: []
tags:
- Accounts
summary: Update Account Invite
description: Update a given invite.
requestBody:
description: Req body for updating account invite
content:
application/json:
schema:
oneOf:
- type: object
required:
- email
properties:
email:
type: object
required:
- address
properties:
address:
type: string
- type: object
required:
- token
- password
properties:
token:
type: string
password:
type: string
responses:
200:
description: Returns success true
content:
application/json:
schema:
title: "ResetPasswordApiResponse"
type: object
properties:
data:
type: object
required:
- success
properties:
success:
type: boolean
default:
$ref: ../../../components/responses/errors/DefaultError.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
patch:
operationId: "resetPassword"
operationId: "updatePassword"
security:
- bearerAuth: []
tags:
Expand All @@ -25,10 +25,10 @@ patch:
content:
application/json:
schema:
title: "ResetPasswordApiResponse"
title: "UpdatePasswordApiResponse"
type: object
properties:
data:
$ref: ../../../components/schemas/accounts/Account.yml
default:
$ref: ../../../components/responses/errors/DefaultError.yml
$ref: ../../../components/responses/errors/DefaultError.yml

0 comments on commit ee437bd

Please sign in to comment.