Skip to content

Commit

Permalink
updated swagger doc for update password, reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
NeerajK007 committed Oct 22, 2024
1 parent 51dd03c commit f943703
Showing 1 changed file with 78 additions and 4 deletions.
82 changes: 78 additions & 4 deletions seller/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,37 +309,111 @@
},
"/api/v1/auth/updatePassword": {
"post": {
"security": [
{
"bearerAuth": []
},
{
"accessTokenAuth": []
}
],
"parameters": [
{
"name": "access-token",
"in": "header",
"schema": {
"type": "string"
},
"example": "Bearer {{JWT_Token}}"
}
],
"tags": [
"oasp-apis > authentication"
],
"summary": "updatePassword",
"requestBody": {
"content": {}
"content": {
"application/json": {
"schema": {
"type": "object",
"example": {
"email": "[email protected]",
"currentPassword": "Openfort@1234",
"password": "Openfort@12345"
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {}
"application/json": {
"schema": {
"type": "object",
"example": {
"data": {
"message": "Password Update Successfull"
}
}
}
}
}
}
}
}
},
"/api/v1/auth/resetPassword": {
"post": {
"security": [
{
"bearerAuth": []
},
{
"accessTokenAuth": []
}
],
"parameters": [
{
"name": "access-token",
"in": "header",
"schema": {
"type": "string"
},
"example": "Bearer {{JWT_Token}}"
}
],
"tags": [
"oasp-apis > authentication"
],
"summary": "resetPassword",
"requestBody": {
"content": {}
"content": {
"application/json": {
"schema": {
"type": "object",
"example": {
"password": "Openfort@1234"
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {}
"application/json": {
"schema": {
"type": "object",
"example": {
"data": {
"message": "reset Password successfull"
}
}
}
}
}
}
}
Expand Down

0 comments on commit f943703

Please sign in to comment.