- 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
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
info:
|
|
name: Get Media Highlights
|
|
type: http
|
|
seq: 1
|
|
http:
|
|
method: GET
|
|
url: '{{base_url}}/api/media-items/{{media_item_id}}/highlights'
|
|
auth: inherit
|
|
body:
|
|
type: none
|
|
|
|
docs: |-
|
|
## Get Media Highlights
|
|
|
|
Retrieves all highlights for a specific media item for the authenticated user.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/media-items/:id/highlights
|
|
|
|
**Path Parameters:**
|
|
- `id` (string): Media item ID
|
|
|
|
**Response:**
|
|
- Array of highlight objects with fields:
|
|
- `id` (string): Highlight ID
|
|
- `media_item_id` (string): Media item ID
|
|
- `user_id` (string): User ID
|
|
- `selection_text` (string): Highlighted text
|
|
- `start_position` (string): Start position
|
|
- `end_position` (string): End position
|
|
- `color` (string): Highlight color (hex)
|
|
- `note_id` (string): Optional associated note ID
|
|
- `created_at` (string): Creation timestamp
|
|
- `updated_at` (string): Last update timestamp
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 404: Media item not found
|