The generator moves into the Go toolchain per repo preference: internal/docs/bruno_gen.go emits the OpenCollection mirrors (same output contract — gate-verified example-request bodies, env-var params, device-token headers, login/register/refresh token-capture scripts) and TestBrunoMirrorsDocs grows a -update flag: verification by default, regeneration on demand: go test ./internal/docs -run TestBrunoMirrorsDocs -update Generator and checker are now the same code — they cannot drift apart. scripts/gen_bruno_from_docs.py deleted; opencollection.yml README points at the go-test command. Also fixed vs the Python pass: mirror placement follows the docs tree folder (RelPath), not the area frontmatter (several docs — highlights, notes, ratings, users, progress — carry a different area); docs blocks emit the collection's mapping form (content + type), not a bare scalar; JSON body sanity is checked at generation time. Idempotent: back-to-back -update runs are byte-identical. make test green (9 pkgs).
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
info:
|
|
name: Bulk Link Books
|
|
type: http
|
|
seq: 2
|
|
|
|
http:
|
|
method: POST
|
|
url: '{{base_url}}/api/sync/bulk-link-books'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"links": [
|
|
{
|
|
"unlinked_book_id": "770e8400-e29b-41d4-a716-446655440002",
|
|
"media_item_id": "660e8400-e29b-41d4-a716-446655440001",
|
|
"confidence_score": 0.95
|
|
},
|
|
{
|
|
"unlinked_book_id": "880e8400-e29b-41d4-a716-446655440003",
|
|
"media_item_id": "990e8400-e29b-41d4-a716-446655440004",
|
|
"confidence_score": 0.87
|
|
}
|
|
]
|
|
}
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
|
|
docs:
|
|
content: |-
|
|
# Bulk Link Books
|
|
|
|
`POST /api/sync/bulk-link-books` — auth: jwt.
|
|
|
|
Canonical reference: docs/developer/api/book-matching/bulk_link_books.md (docs site → Developer → API). This request is GENERATED from that doc; edit the doc, then run the drift test with -update.
|
|
type: text/markdown
|