Files
bookhoard/bruno/scanner/Stop Scanner.bru
T
john-okeefe 8db5939892 refactor: standardize Bruno API requests with bruToJsonV2 format
- 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
2026-01-28 20:13:56 -05:00

40 lines
761 B
Plaintext

meta {
name: Stop Scanner
type: http
seq: 3
}
post {
url: {{base_url}}/api/scanner/stop
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
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
}