Files
bookhoard/bruno/notes/Get Media Notes.bru
T
john-okeefe 78851a940a feat: add comprehensive Bruno API tests for annotations
- Add complete Bruno collection for notes API (5 endpoints)
- Add complete Bruno collection for highlights API (5 endpoints)
- Include detailed request/response documentation
- Add proper validation examples and error cases
- Support both media-items and ebook endpoint testing
- Add environment variable support for dynamic IDs
2026-01-28 15:43:05 -05:00

48 lines
930 B
Plaintext

meta {
name: Get Media Notes
type: http
seq: 1
}
get {
url: {{base_url}}/api/media-items/{{media_item_id}}/notes
body: none
auth: inherit
}
script:post-response {
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Get Media Notes
Retrieves all notes for a specific media item for the authenticated user.
**Method:** GET
**Endpoint:** /api/media-items/:id/notes
**Path Parameters:**
- `id` (string): Media item ID
**Response:**
- Array of note objects with fields:
- `id` (string): Note ID
- `media_item_id` (string): Media item ID
- `user_id` (string): User ID
- `content` (string): Note content
- `position` (string): Optional position reference
- `created_at` (string): Creation timestamp
- `updated_at` (string): Last update timestamp
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 404: Media item not found
}