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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user