- Convert all existing .bru files from JSON to Bruno DSL format - Remove obsolete files (conflicts/api.bru, kobo/Kobo Initialization.bru) - Update auth configuration to use 'inherit' instead of explicit bearer tokens - Add comprehensive documentation to all test files - Improve test scripts with proper assertions and error handling
35 lines
556 B
Plaintext
35 lines
556 B
Plaintext
meta {
|
|
name: Update Collection
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
put {
|
|
url: {{base_url}}/api/collections/{{collection_id}}
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
|
|
body:json {
|
|
{
|
|
"name": "Sci-Fi Favorites",
|
|
"description": "Updated description",
|
|
"color": "#00ff00",
|
|
"icon": "⭐",
|
|
"auto_assign_rules": [
|
|
{
|
|
"id": "rule-2",
|
|
"field": "series",
|
|
"operator": "equals",
|
|
"value": "Foundation",
|
|
"priority": 9
|
|
}
|
|
],
|
|
"view_settings": {
|
|
"sort_by": "author",
|
|
"view_mode": "list"
|
|
}
|
|
}
|
|
}
|