- 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
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
info:
|
|
name: Get Dashboard Sections
|
|
type: http
|
|
seq: 1
|
|
http:
|
|
method: GET
|
|
url: '{{base_url}}/api/dashboard/sections'
|
|
auth: inherit
|
|
body:
|
|
type: none
|
|
runtime:
|
|
scripts:
|
|
- type: tests
|
|
code: "test(\"status must be 200 with auth\", function() {\n expect(res.status).to.eql(200);"
|
|
|
|
docs: |-
|
|
Get all dashboard sections for a specific library.
|
|
|
|
**Endpoint**: GET /api/dashboard/sections
|
|
**Auth**: Required (Bearer token via auth: inherit)
|
|
|
|
## Query Parameters
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|----------|-------------|
|
|
| library_id | string | Yes | Library UUID |
|
|
|
|
## Response
|
|
|
|
Returns array of sections including:
|
|
- Smart sections (continue-reading, in-progress, recently-added, etc.)
|
|
- User collections marked with show_on_dashboard: true
|
|
|
|
## Section Types
|
|
|
|
| Type | Description |
|
|
|------|-------------|
|
|
| smart | Auto-generated sections based on user activity |
|
|
| collection | User-created collections with dashboard enabled |
|
|
|
|
## Example Response
|
|
|
|
```json
|
|
{
|
|
"sections": [
|
|
{
|
|
"id": "continue-reading",
|
|
"type": "smart",
|
|
"title": "Continue Reading",
|
|
"icon": "📖",
|
|
"items": [...],
|
|
"view_all_url": "/section/continue-reading"
|