- 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
547 B
Plaintext
35 lines
547 B
Plaintext
meta {
|
|
name: Create Collection
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/collections
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
|
|
body:json {
|
|
{
|
|
"name": "Science Fiction",
|
|
"description": "My favorite sci-fi books",
|
|
"color": "#ff0000",
|
|
"icon": "🚀",
|
|
"auto_assign_rules": [
|
|
{
|
|
"id": "rule-1",
|
|
"field": "genre",
|
|
"operator": "equals",
|
|
"value": "Science Fiction",
|
|
"priority": 8
|
|
}
|
|
],
|
|
"view_settings": {
|
|
"sort_by": "title",
|
|
"view_mode": "grid"
|
|
}
|
|
}
|
|
}
|