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,33 +0,0 @@
|
||||
info:
|
||||
name: Update Email
|
||||
type: http
|
||||
seq: 2
|
||||
http:
|
||||
method: PUT
|
||||
url: '{{base_url}}/api/auth/email'
|
||||
auth: inherit
|
||||
body:
|
||||
type: json
|
||||
|
||||
docs: |-
|
||||
## Update Email
|
||||
|
||||
Updates the authenticated user's email address.
|
||||
|
||||
**Method:** PUT
|
||||
|
||||
**Endpoint:** /api/auth/email
|
||||
|
||||
**Authentication:** Required
|
||||
|
||||
**Request Body:**
|
||||
- `email` (string, required): New email address (must be valid email format)
|
||||
|
||||
**Response:**
|
||||
- `message` (string): Success message
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 400: Invalid email format
|
||||
- 401: Unauthorized
|
||||
- 409: Email already taken
|
||||
@@ -8,7 +8,14 @@ http:
|
||||
auth: inherit
|
||||
body:
|
||||
type: json
|
||||
jsonBody: "{\n \"first_name\": \"Updated\",\n \"last_name\": \"Name\""
|
||||
jsonBody: |-
|
||||
{
|
||||
"username": "updateduser",
|
||||
"email": "updated@example.com",
|
||||
"first_name": "Updated",
|
||||
"last_name": "User",
|
||||
"theme": "dracula"
|
||||
}
|
||||
|
||||
docs: |-
|
||||
## Update User Profile
|
||||
@@ -22,8 +29,11 @@ docs: |-
|
||||
**Authentication:** Required (Bearer token)
|
||||
|
||||
**Request Body:**
|
||||
- `username` (string, optional): New username (must be unique)
|
||||
- `email` (string, optional): New email address (must be unique)
|
||||
- `first_name` (string, optional): First name
|
||||
- `last_name` (string, optional): Last name
|
||||
- `theme` (string, optional): Theme preference
|
||||
|
||||
**Response:**
|
||||
- `message` (string): Success message
|
||||
@@ -32,3 +42,4 @@ docs: |-
|
||||
- 200: Success
|
||||
- 400: Invalid request
|
||||
- 401: Unauthorized
|
||||
- 409: Username or email already taken
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
info:
|
||||
name: Update Theme
|
||||
type: http
|
||||
seq: 4
|
||||
seq: 5
|
||||
http:
|
||||
method: PUT
|
||||
url: '{{base_url}}/api/auth/theme'
|
||||
auth: inherit
|
||||
body:
|
||||
type: json
|
||||
jsonBody: "{\n \"theme\": \"dracula\""
|
||||
jsonBody: |-
|
||||
{
|
||||
"theme": "dracula"
|
||||
}
|
||||
|
||||
docs: |-
|
||||
## Update User Theme
|
||||
## Update Theme
|
||||
|
||||
Updates the authenticated user's theme preference.
|
||||
Fast theme switching for the application UI.
|
||||
|
||||
**Method:** PUT
|
||||
|
||||
@@ -22,7 +25,7 @@ docs: |-
|
||||
**Authentication:** Required (Bearer token)
|
||||
|
||||
**Request Body:**
|
||||
- `theme` (string): Theme name (tokyo-night, dracula, nord, solarized-dark, monokai, one-dark-pro, material-dark, catppuccin-mocha, catppuccin-macchiato, catppuccin-frappe, catppuccin-latte)
|
||||
- `theme` (string, required): Theme name
|
||||
|
||||
**Response:**
|
||||
- `message` (string): Success message
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
info:
|
||||
name: Update Username
|
||||
type: http
|
||||
seq: 1
|
||||
http:
|
||||
method: PUT
|
||||
url: '{{base_url}}/api/auth/username'
|
||||
auth: inherit
|
||||
body:
|
||||
type: json
|
||||
|
||||
docs: |-
|
||||
## Update Username
|
||||
|
||||
Updates the authenticated user's username.
|
||||
|
||||
**Method:** PUT
|
||||
|
||||
**Endpoint:** /api/auth/username
|
||||
|
||||
**Authentication:** Required
|
||||
|
||||
**Request Body:**
|
||||
- `username` (string, required): New username (3-50 characters)
|
||||
|
||||
**Response:**
|
||||
- `message` (string): Success message
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 400: Invalid username
|
||||
- 401: Unauthorized
|
||||
- 409: Username already taken
|
||||
Reference in New Issue
Block a user