anwesen/tests/hurl/query/merge_order_desc.hurl
Andreas Brenner 03cc12e640 ANW-26 HTTP /query markdown-merge mode
Accept: text/markdown on /query concatenates matched note bodies into one
markdown document, each fragment preceded by an HTML-comment source marker.
Adds __anw-order (frontmatter-key ordering, asc/desc, missing-key-last) and
__anw-kind (homogeneity guard, 400 on a mixed merge). Both evaluate over the
full matched set before __anw-limit truncates. Merge mode uses its own
body-cloning projection; the JSON path is unchanged (no body clone).
2026-06-14 18:35:20 +03:00

7 lines
295 B
Text

# [ANW-26] __anw-order=num:desc orders fragments by the `num` key descending,
# so PDR-002 (num 2) precedes PDR-001 (num 1) in the merged body.
GET {{host}}/query?__anw-path=Projects&kind=PDR&__anw-order=num:desc
Accept: text/markdown
HTTP 200
[Asserts]
body matches /(?s)Second PDR.*First PDR/