Update Bruno API tests for user endpoints including new profile management

This commit is contained in:
2026-01-23 21:27:13 -05:00
parent 382a2369c5
commit 7c70e9e85a
12 changed files with 144 additions and 81 deletions
+12 -12
View File
@@ -5,14 +5,14 @@ meta {
}
put {
url: {{base_url}}/api/user/password
url: {{base_url}}/api/auth/password
body: json
auth: inherit
}
body {
body:json {
{
"current_password": "currentpassword",
"current_password": "password123",
"new_password": "newpassword123",
"confirm_password": "newpassword123"
}
@@ -25,26 +25,26 @@ settings {
docs {
## Update Password
Updates the authenticated user's password.
**Method:** PUT
**Endpoint:** /api/user/password
**Endpoint:** /api/auth/password
**Authentication:** Required
**Request Body:**
- `current_password` (string, required): Current password for verification
- `new_password` (string, required): New password (minimum 6 characters)
- `confirm_password` (string, required): Confirmation of new password
**Response:**
- `message` (string): Success message
**Status Codes:**
- 200: Success
- 400: Password validation failed
- 401: Current password incorrect
- 401: Unauthorized
}
}