Skip to content

Commit 957e8aa

Browse files
committed
fix: add openapi descriptions for lost password endpoints
1 parent e5cac7e commit 957e8aa

File tree

1 file changed

+12
-0
lines changed
  • server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement

1 file changed

+12
-0
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/UserEndpoints.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,21 @@ public interface UserEndpoints
121121
@PostMapping("/reset-password")
122122
public Mono<ResponseView<String>> resetPassword(@RequestBody ResetPasswordRequest request);
123123

124+
@Operation(
125+
tags = TAG_USER_PASSWORD_MANAGEMENT,
126+
operationId = "lostPassword",
127+
summary = "Lost User Password",
128+
description = "Initiate a Lost Password recovery process."
129+
)
124130
@PostMapping("/lost-password")
125131
public Mono<ResponseView<Boolean>> lostPassword(@RequestBody LostPasswordRequest request);
126132

133+
@Operation(
134+
tags = TAG_USER_PASSWORD_MANAGEMENT,
135+
operationId = "resetLostPassword",
136+
summary = "Reset Lost User Password",
137+
description = "Resets lost password based on the token from lost password email."
138+
)
127139
@PostMapping("/reset-lost-password")
128140
public Mono<ResponseView<Boolean>> resetLostPassword(@RequestBody ResetLostPasswordRequest request);
129141

0 commit comments

Comments
 (0)