Files
bookhoard/bruno/collections/Create Collection.bru
T
john-okeefe d6d208c3d1 test(bruno): Add API tests for Kobo, Koreader, OPDS, collections
- Add Kobo bookmark/markup sync tests
- Add Koreader progress/bookmark sync tests
- Add OPDS feed tests
- Add collection tests
- Add sync tests for book linking
2026-01-31 22:32:56 -05:00

38 lines
581 B
Plaintext

meta {
name: Create Collection
type: http
seq: 1
}
post {
url: {{base_url}}/api/collections
body: json
auth: bearer
}
auth:bearer {
token: {{token}}
}
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"
}
}
}