feat: create Bruno requests for library system API

- Add library management requests (CRUD operations)
- Create media items API requests for library content
- Implement library visibility controls
- Add user library access management
- Update deprecated ebook folder endpoints with migration guide
- Include comprehensive documentation and test cases
- Replace collection.bru with proper dashboard request

Complete Bruno collection supporting new multi-library architecture
This commit is contained in:
2026-01-28 11:15:36 -05:00
parent 84d846ae6c
commit 81fa177fe6
14 changed files with 285 additions and 48 deletions
+25
View File
@@ -0,0 +1,25 @@
meta {
name: Create Media Rating,
type: http,
seq: 1
}
post {
url: "/api/media-items/{{ _.mediaItemId }}/rating"
headers: {
Authorization: "Bearer {{ _.token }}",
Content-Type: "application/json"
}
body: {
rating: {{ _.rating }}
}
}
tests: {
test_create_rating_success: {
status: 201,
headers: {
"content-type": "application/json"
}
}
}
+22
View File
@@ -0,0 +1,22 @@
meta {
name: Get Media Item,
type: http,
seq: 1
}
get {
url: "/api/media-items/{{ _.mediaItemId }}"
headers: {
Authorization: "Bearer {{ _.token }}",
Content-Type: "application/json"
}
}
tests: {
test_get_media_item_success: {
status: 200,
headers: {
"content-type": "application/json"
}
}
}
+22
View File
@@ -0,0 +1,22 @@
meta {
name: List Media Items,
type: http,
seq: 1
}
get {
url: "/api/media-items?library_id={{ _.libraryId }}&limit=20&offset=0"
headers: {
Authorization: "Bearer {{ _.token }}",
Content-Type: "application/json"
}
}
tests: {
test_list_media_items_success: {
status: 200,
headers: {
"content-type": "application/json"
}
}
}