Commit b08d08d
fix(rest): ADR-0046 — /meta/doc list omits content by default (#1790)
The runtime dispatcher's /metadata/doc route already slims doc list
responses (#1789), but the console reads the REST server's /meta/:type
route, which still returned full bodies. Apply the same rule here:
list responses carry name + label only, ?include=content opts back in,
and GET /meta/doc/:name always returns the full body.
Found during live verification of the console /docs/:name route — the
list endpoint is the path that must stay content-free because manuals
are the one metadata payload that grows unbounded.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 1ada658 commit b08d08d
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1835 | 1858 | | |
1836 | 1859 | | |
1837 | 1860 | | |
| |||
0 commit comments