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
@@ -0,0 +1,42 @@
info:
name: Delete Reading Progress
type: http
seq: 1
http:
method: DELETE
url: '{{base_url}}/api/media-items/{{media_item_id}}/progress'
auth: inherit
headers:
- key: Content-Type
value: application/json
runtime:
scripts:
- type: tests
code: "test_delete_reading_progress_success(status, headers, body) {\n if (status\
\ !== 200 && status !== 204) {\n throw new Error(\"Expected status 200\
\ or 204, got \" + status);"
docs: |-
## Delete Reading Progress
Deletes reading progress for a media item. This is a legacy endpoint - consider using universal progress endpoints instead.
**Method:** DELETE
**Endpoint:** /api/media-items/:id/progress
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string, required): Media item UUID
**Response:** Success message or empty
**Status Codes:**
- 200: Success
- 204: Success (no content)
- 401: Unauthorized
- 404: Media item not found
- 500: Internal server error
**Note:** This is a legacy endpoint. Use `/api/progress/:id` endpoints for new implementations.
+30
View File
@@ -0,0 +1,30 @@
info:
name: Get Reading Progress
type: http
seq: 6
http:
method: GET
url: '{{base_url}}/api/media-items/{{media_item_id}}/progress'
auth: inherit
body:
type: none
docs: |-
## Get Reading Progress
Retrieves the authenticated user's reading progress for a media item.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Media Item UUID
**Response:**
- `id` (string): Media Item UUID
- `user_id` (string): User UUID
- `current_page` (number): Current page number
- `total_pages` (number, nullable): Total pages
- `last_read_at` (string): Last read timestamp
**Error Responses:**
- 401: Invalid authentication
@@ -0,0 +1,31 @@
info:
name: Update Reading Progress
type: http
seq: 7
http:
method: PUT
url: '{{base_url}}/api/media-items/{{media_item_id}}/progress'
auth: inherit
body:
type: json
jsonBody: "{\n \"current_page\": 45,\n \"total_pages\": 200"
docs: |-
## Update Reading Progress
Updates the authenticated user's reading progress for a media item.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Media Item UUID
**Request Body:**
- `current_page` (number, required): Current page number
- `total_pages` (number, optional): Total pages in book
**Response:** Updated progress object
**Error Responses:**
- 401: Invalid authentication
- 400: Invalid request data