refactor(api): rename scan_frequency_minutes to scan_poll_interval_seconds

- Update API field from scan_frequency_minutes to scan_poll_interval_seconds
- Update database schema default value key
- Update Bruno API collection requests and documentation
- Update OpenAPI documentation examples and field descriptions
This commit is contained in:
2026-02-28 12:56:53 -05:00
parent 286d0b5e06
commit 877fccbb52
6 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ docs: |-
**Authentication:** Required (Bearer token)
**Response:**
- `scan_frequency_minutes` (number): Minutes between automatic scans (minimum 1)
- `scan_poll_interval_seconds` (number): Minutes between automatic scans (minimum 1)
- `auto_scan_enabled` (boolean): Whether automatic scanning is enabled
- `last_scan_at` (string, optional): Timestamp of last scan
- `next_scan_at` (string, optional): Timestamp of next scheduled scan
+2 -2
View File
@@ -13,7 +13,7 @@ http:
type: json
data: |-
{
"scan_frequency_minutes": 30,
"scan_poll_interval_seconds": 30,
"auto_scan_enabled": true
}
auth: inherit
@@ -36,7 +36,7 @@ docs: |-
**Authentication:** Required
**Request Body:**
- `scan_frequency_minutes` (integer, required): Minutes between automatic scans (15-1440)
- `scan_poll_interval_seconds` (integer, required): Minutes between automatic scans (15-1440)
- `auto_scan_enabled` (boolean, required): Whether automatic scanning is enabled
**Response:**
+6 -6
View File
@@ -4,22 +4,22 @@ info:
seq: 2
http:
method: PUT
url: '{{base_url}}/api/libraries/scan-settings'
url: "{{base_url}}/api/libraries/scan-settings"
auth: inherit
body:
type: json
json:
scan_frequency_minutes: 30
scan_poll_interval_seconds: 30
auto_scan_enabled: true
headers:
- key: Content-Type
value: application/json
- key: Content-Type
value: application/json
docs: |-
## Update System Scan Settings
Updates system-wide scan settings that apply to all libraries.
**Authentication**: Admin token required
**Request**: Scan frequency (15-1440 minutes) and enabled status
**Response**: Success message