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 Scan Status
type: http
seq: 4
http:
method: GET
url: '{{base_url}}/api/scanner/status/{{job_id}}'
auth: inherit
docs: |-
## Get Scan Status
Retrieves the status and progress of an asynchronous scan job.
**Method:** GET
**Endpoint:** /api/scanner/status/:jobId
**Authentication:** Required (Bearer token, Admin only)
**URL Parameters:**
- `jobId` (string, required): The job ID returned from the scan endpoint
- Example: `550e8400-e29b-41d4-a716-446655440000`
**Response:**
```json
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"error": "",
"result": {
"message": "scan completed",
"library_id": "550e8400-e29b-41d4-a716-446655440000"
+28
View File
@@ -0,0 +1,28 @@
info:
name: Get Watch Mode Status
type: http
seq: 7
http:
method: GET
url: '{{base_url}}/api/scanner/watch/status'
auth: inherit
docs: |-
## Get Watch Mode Status
Retrieves the current status of watch mode for all libraries.
**Method:** GET
**Endpoint:** /api/scanner/watch/status
**Authentication:** Required (Bearer token, Admin only)
**Response:** HTTP 200 (OK)
```json
{
"watching_libraries": [
"550e8400-e29b-41d4-a716-446655440000",
"660e8400-e29b-41d4-a716-446655440001"
],
"total_watching": 2
+33
View File
@@ -0,0 +1,33 @@
info:
name: Scan Media Items (Background)
type: http
seq: 1
http:
method: POST
url: '{{base_url}}/api/scanner/scan'
auth: inherit
body:
type: json
jsonBody: "{\n \"folder_paths\": [\"/path/to/media\"]"
docs: |-
## Scan Media Items (Background)
Triggers an asynchronous media items scanning operation. The scan runs in the background and can be monitored using the job ID.
**Method:** POST
**Endpoint:** /api/scanner/scan
**Authentication:** Required (Bearer token, Admin only)
**Request Body:**
- `folder_paths` (array of strings, required): List of folder paths to scan
- Example: `["/path/to/media", "/another/path"]`
**Response:** HTTP 202 (Accepted)
```json
{
"message": "scan job enqueued",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "pending"
+32
View File
@@ -0,0 +1,32 @@
info:
name: Start Scanner
type: http
seq: 2
http:
method: POST
url: '{{base_url}}/api/scanner/start'
auth: inherit
docs: |-
## Start Scanner
Starts the media scanner service for indexing library content.
**Method:** POST
**Endpoint:** /api/scanner/start
**Authentication:** Required (Bearer token)
**Response:**
- JSON object containing scanner status
- `status` (string): Scanner state ("started", "running")
- `message` (string): Status message
- `started_at` (string): Timestamp when scanner started
**Status Codes:**
- 200: Scanner started successfully
- 401: Unauthorized
- 403: Forbidden (insufficient permissions)
- 409: Scanner already running
- 500: Internal server error
+32
View File
@@ -0,0 +1,32 @@
info:
name: Start Watch Mode
type: http
seq: 5
http:
method: POST
url: '{{base_url}}/api/scanner/watch/start'
auth: inherit
body:
type: json
jsonBody: "{\n \"library_id\": \"{{library_id"
docs: |-
## Start Watch Mode
Starts real-time file system monitoring for a specific library. New media items will be detected and processed almost instantly.
**Method:** POST
**Endpoint:** /api/scanner/watch/start
**Authentication:** Required (Bearer token, Admin only)
**Request Body:**
- `library_id` (string, required): UUID of the library to watch
- Example: `"550e8400-e29b-41d4-a716-446655440000"`
**Response:** HTTP 200 (OK)
```json
{
"message": "watch mode started for library",
"library_id": "550e8400-e29b-41d4-a716-446655440000"
+32
View File
@@ -0,0 +1,32 @@
info:
name: Stop Scanner
type: http
seq: 3
http:
method: POST
url: '{{base_url}}/api/scanner/stop'
auth: inherit
docs: |-
## Stop Scanner
Stops the currently running media scanner service.
**Method:** POST
**Endpoint:** /api/scanner/stop
**Authentication:** Required (Bearer token)
**Response:**
- JSON object containing scanner status
- `status` (string): Scanner state ("stopped", "idle")
- `message` (string): Status message
- `stopped_at` (string): Timestamp when scanner stopped
**Status Codes:**
- 200: Scanner stopped successfully
- 401: Unauthorized
- 403: Forbidden (insufficient permissions)
- 409: Scanner not running
- 500: Internal server error
+32
View File
@@ -0,0 +1,32 @@
info:
name: Stop Watch Mode
type: http
seq: 6
http:
method: POST
url: '{{base_url}}/api/scanner/watch/stop'
auth: inherit
body:
type: json
jsonBody: "{\n \"library_id\": \"{{library_id"
docs: |-
## Stop Watch Mode
Stops real-time file system monitoring for a specific library.
**Method:** POST
**Endpoint:** /api/scanner/watch/stop
**Authentication:** Required (Bearer token, Admin only)
**Request Body:**
- `library_id` (string, required): UUID of the library to stop watching
- Example: `"550e8400-e29b-41d4-a716-446655440000"`
**Response:** HTTP 200 (OK)
```json
{
"message": "watch mode stopped for library",
"library_id": "550e8400-e29b-41d4-a716-446655440000"