refactor(bruno): reorganize file structure from bruno-yaml to flat bruno directory

- Move all files from bruno-yaml/* to bruno/*
- Maintains existing directory structure within categories
- Updates bruno/user/auth files with OAuth2 refresh token flow
- Updates bruno/user/profile files for user profile management
- Adds bruno/dashboard/ directory with dashboard API tests
- Preserves all existing test scenarios and OpenCollection YAML format
- No functional changes - file reorganization only
This commit is contained in:
2026-02-17 20:22:21 -05:00
parent 96730d9475
commit f859b2714d
221 changed files with 0 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
info:
name: Get Profile
type: http
seq: 1
http:
method: GET
url: '{{base_url}}/api/auth/profile'
auth: inherit
body:
type: none
docs: |-
## Get User Profile
Retrieves the authenticated user's profile.
**Method:** GET
**Endpoint:** /api/auth/profile
**Authentication:** Required
**Response:**
- `id` (string): User ID
- `email` (string): Email
- `username` (string): Username
- `theme` (string): User theme preference
- `first_name` (string, optional): First name
- `last_name` (string, optional): Last name
**Status Codes:**
- 200: Success
- 401: Unauthorized
+33
View File
@@ -0,0 +1,33 @@
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
+37
View File
@@ -0,0 +1,37 @@
info:
name: Update Password
type: http
seq: 3
http:
method: PUT
url: '{{base_url}}/api/auth/password'
auth: inherit
body:
type: json
jsonBody: "{\n \"current_password\": \"password123\",\n \"new_password\"\
: \"newpassword123\",\n \"confirm_password\": \"newpassword123\""
docs: |-
## Update Password
Updates the authenticated user's password.
**Method:** PUT
**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
+34
View File
@@ -0,0 +1,34 @@
info:
name: Update Profile
type: http
seq: 4
http:
method: PUT
url: '{{base_url}}/api/auth/profile'
auth: inherit
body:
type: json
jsonBody: "{\n \"first_name\": \"Updated\",\n \"last_name\": \"Name\""
docs: |-
## Update User Profile
Updates the authenticated user's profile information.
**Method:** PUT
**Endpoint:** /api/auth/profile
**Authentication:** Required (Bearer token)
**Request Body:**
- `first_name` (string, optional): First name
- `last_name` (string, optional): Last name
**Response:**
- `message` (string): Success message
**Status Codes:**
- 200: Success
- 400: Invalid request
- 401: Unauthorized
+33
View File
@@ -0,0 +1,33 @@
info:
name: Update Theme
type: http
seq: 4
http:
method: PUT
url: '{{base_url}}/api/auth/theme'
auth: inherit
body:
type: json
jsonBody: "{\n \"theme\": \"dracula\""
docs: |-
## Update User Theme
Updates the authenticated user's theme preference.
**Method:** PUT
**Endpoint:** /api/auth/theme
**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)
**Response:**
- `message` (string): Success message
**Status Codes:**
- 200: Success
- 400: Invalid theme
- 401: Unauthorized
+33
View File
@@ -0,0 +1,33 @@
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