- 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
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
info:
|
|
name: Update System Configuration
|
|
type: http
|
|
seq: 4
|
|
http:
|
|
method: PUT
|
|
url: '{{base_url}}/api/system/config'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: "{\n \"base_url\": \"https://bookhoard.example.com\",\n \"opds_base_url\"\
|
|
: \"https://bookhoard.example.com/opds\",\n \"api_base_url\": \"https://bookhoard.example.com/api\""
|
|
headers:
|
|
- key: Authorization
|
|
value: Bearer {{admin_token
|
|
|
|
docs: |-
|
|
## Update System Configuration
|
|
|
|
Updates system-wide configuration settings for the Bookhoard instance.
|
|
|
|
**Method:** PUT
|
|
|
|
**Endpoint:** /api/system/config
|
|
|
|
**Authentication:** Bearer token (admin only)
|
|
|
|
**Request Body:**
|
|
- `base_url` (string): Base URL for the instance
|
|
- `opds_base_url` (string): OPDS endpoint base URL
|
|
- `api_base_url` (string): API endpoint base URL
|
|
|
|
**Response:**
|
|
- `status` (string): Update status
|
|
- `config` (object): Updated configuration
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid configuration
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (admin only)
|
|
- 500: Internal server error
|