test(bruno): update API collections for consolidated endpoints
Add collections for Delete User, Reset User Password, and Update User endpoints. Remove obsolete collections for individual profile update operations. Update Update Profile collection to reflect new consolidated API structure.
This commit is contained in:
1 parent
ff25454901
commit
2b92d5c6c1
8 files changed
+123
-97
No files matched your search
@@ -0,0 +1,25 @@
|
||||
info:
|
||||
name: Delete User
|
||||
type: http
|
||||
seq: 12
|
||||
http:
|
||||
method: DELETE
|
||||
url: '{{base_url}}/api/auth/profile/{{user_id}}'
|
||||
auth: inherit
|
||||
|
||||
docs: |-
|
||||
## Delete User Account
|
||||
|
||||
Delete a user account. Users can delete their own account, admins can delete any user.
|
||||
|
||||
**Method:** DELETE
|
||||
|
||||
**Endpoint:** /api/auth/profile (self) or /api/auth/profile/:id (admin)
|
||||
|
||||
**Authentication:** Required (Bearer token)
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 400: Cannot delete the last admin
|
||||
- 403: Not an admin (when trying to delete another user)
|
||||
- 404: User not found
|
||||
Reference in new issue
Block a user