- Convert all JSON tests to JavaScript functions for bruToJsonV2 compatibility
- Update authentication to use 'inherit' instead of manual headers
- Fix hardcoded URLs to use {{base_url}} variables
- Standardize variable syntax from {{ _.var }} to {{var}}
- Add comprehensive API documentation to all requests
- Update environment variables with missing required fields
- Apply consistent structure: meta, http method, headers, tests, vars, settings, docs
- Enhanced validation with proper error handling and field checks
40 lines
784 B
Plaintext
40 lines
784 B
Plaintext
meta {
|
|
name: Start Scanner
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/scanner/start
|
|
auth: inherit
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
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
|
|
} |