Update Bruno API tests for user endpoints including new profile management
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user