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.
36 lines
684 B
YAML
36 lines
684 B
YAML
info:
|
|
name: Get Library Stats
|
|
type: http
|
|
seq: 14
|
|
|
|
http:
|
|
method: GET
|
|
url: "{{base_url}}/api/libraries/{{library_id}}/stats"
|
|
headers:
|
|
- name: ""
|
|
value: application/json
|
|
auth: inherit
|
|
|
|
runtime:
|
|
scripts:
|
|
- 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
|
|
|
|
Retrieves statistical information about a library's media items.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/libraries/{id
|