chore(bruno): update library API collection and add dev DB setup

Update all library API request files to the current Bruno format
with proper settings blocks, updated sequence numbers, and cleaner
YAML formatting.

Add NewDevDBSetup collection with requests for creating comic, ebook,
and manga libraries, user registration, and folder configuration to
speed up development environment setup.
This commit is contained in:
2026-04-19 14:27:35 -04:00
parent c337b46bef
commit e2d2dbecab
18 changed files with 484 additions and 75 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
info:
name: Create Library
type: http
seq: 1
seq: 2
http:
method: POST
+20 -11
View File
@@ -1,23 +1,32 @@
info:
name: Delete Library Folder
type: http
seq: 4
seq: 13
http:
method: DELETE
url: '{{base_url}}/api/libraries/{{library_id}}/folders'
auth: inherit
url: "{{base_url}}/api/libraries/{{library_id}}/folders"
headers:
- name: ""
value: application/json
body:
type: json
json:
folder_path: /path/to/folder
headers:
- key: Content-Type
value: application/json
data: ""
auth: inherit
runtime:
scripts:
- type: tests
code: "test_delete_library_folder_success(status, headers, body) {\n if (status\
\ !== 204) {\n throw new Error(\"Expected status 204, got \" + status);"
- type: tests
code: |-
test_delete_library_folder_success(status, headers, body) {
if (status !== 204) {
throw new Error("Expected status 204, got " + status);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Delete Library Folder
+1 -1
View File
@@ -1,7 +1,7 @@
info:
name: Delete Library
type: http
seq: 3
seq: 12
http:
method: DELETE
+1 -1
View File
@@ -1,7 +1,7 @@
info:
name: Get Libraries (Admin)
type: http
seq: 1
seq: 3
http:
method: GET
+12 -7
View File
@@ -1,16 +1,21 @@
info:
name: Get Library Folders
type: http
seq: 1
seq: 5
http:
method: GET
url: '{{base_url}}/api/libraries/{{library_id}}/folders'
auth: inherit
body:
type: none
url: "{{base_url}}/api/libraries/{{library_id}}/folders"
headers:
- key: Content-Type
value: application/json
- name: ""
value: application/json
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Get Library Folders
+18 -10
View File
@@ -1,21 +1,29 @@
info:
name: Get Library Stats
type: http
seq: 5
seq: 14
http:
method: GET
url: '{{base_url}}/api/libraries/{{library_id}}/stats'
auth: inherit
body:
type: none
url: "{{base_url}}/api/libraries/{{library_id}}/stats"
headers:
- key: Content-Type
value: application/json
- name: ""
value: application/json
auth: inherit
runtime:
scripts:
- type: tests
code: "test_get_library_stats_success(status, headers, body) {\n if (status\
\ !== 200) {\n throw new Error(\"Expected status 200, got \" + status);"
- type: tests
code: |-
test_get_library_stats_success(status, headers, body) {
if (status !== 200) {
throw new Error("Expected status 200, got " + status);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Get Library Stats
+12 -7
View File
@@ -1,16 +1,21 @@
info:
name: Get Library Types
type: http
seq: 1
seq: 6
http:
method: GET
url: '{{base_url}}/api/libraries/types'
auth: inherit
body:
type: none
url: "{{base_url}}/api/libraries/types"
headers:
- key: Content-Type
value: application/json
- name: ""
value: application/json
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Get Library Types
+18 -10
View File
@@ -1,21 +1,29 @@
info:
name: Get Library
type: http
seq: 1
seq: 4
http:
method: GET
url: '{{base_url}}/api/libraries/{{library_id}}'
auth: inherit
body:
type: none
url: "{{base_url}}/api/libraries/{{library_id}}"
headers:
- key: Content-Type
value: application/json
- name: ""
value: application/json
auth: inherit
runtime:
scripts:
- type: tests
code: "test_get_library_success(status, headers, body) {\n if (status !== 200)\
\ {\n throw new Error(\"Expected status 200, got \" + status);"
- type: tests
code: |-
test_get_library_success(status, headers, body) {
if (status !== 200) {
throw new Error("Expected status 200, got " + status);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Get Library
+1 -1
View File
@@ -1,7 +1,7 @@
info:
name: Get Scan Settings
type: http
seq: 2
seq: 10
http:
method: GET
+12 -7
View File
@@ -1,16 +1,21 @@
info:
name: Get User Visible Libraries
type: http
seq: 1
seq: 7
http:
method: GET
url: '{{base_url}}/api/libraries/visible'
auth: inherit
body:
type: none
url: "{{base_url}}/api/libraries/visible"
headers:
- key: Content-Type
value: application/json
- name: ""
value: application/json
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Get User Visible Libraries
+13 -6
View File
@@ -1,11 +1,14 @@
info:
name: Set Library Visibility
type: http
seq: 1
seq: 8
http:
method: POST
url: '{{base_url}}/api/libraries/visibility'
auth: inherit
url: "{{base_url}}/api/libraries/visibility"
headers:
- name: ""
value: application/json
body:
type: json
data: |-
@@ -13,9 +16,13 @@ http:
"library_id": "{{library_id}}",
"is_visible": true
}
headers:
- key: Content-Type
value: application/json
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Set Library Visibility
+20 -12
View File
@@ -1,24 +1,32 @@
info:
name: Update Library
type: http
seq: 2
seq: 11
http:
method: PUT
url: '{{base_url}}/api/libraries/{{library_id}}'
auth: inherit
url: "{{base_url}}/api/libraries/{{library_id}}"
headers:
- name: ""
value: application/json
body:
type: json
json:
name: Updated Library Name
description: Updated library description
headers:
- key: Content-Type
value: application/json
data: ""
auth: inherit
runtime:
scripts:
- type: tests
code: "test_update_library_success(status, headers, body) {\n if (status !==\
\ 200) {\n throw new Error(\"Expected status 200, got \" + status);"
- type: tests
code: |-
test_update_library_success(status, headers, body) {
if (status !== 200) {
throw new Error("Expected status 200, got " + status);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Update Library
+1 -1
View File
@@ -1,7 +1,7 @@
info:
name: Update Scan Settings
type: http
seq: 1
seq: 9
http:
method: PUT