docs(434,435,438): decisions records, spa-conventions §12, api-conventions
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -412,6 +412,22 @@ Returns the curated `SearchFieldCatalog` (name, friendly label, type, UI group,
|
||||
enum fields) as `List<SearchFieldResponseModel>`. Drives the SmartCollection rule builder and is
|
||||
introspectable by MCP; no query parameters.
|
||||
|
||||
**Endpoint inventory addition (#434, facet-value typeahead)**: one read-only `SearchController` GET,
|
||||
standard credential (catalog-read tier — no `[RequiresAuthentication]`):
|
||||
|
||||
| Method | Path | Operation | Summary |
|
||||
|---|---|---|---|
|
||||
| GET | `/api/v1/search/fields/{name}/values` | `GetSearchFieldValues` | List distinct term values for a text search field |
|
||||
|
||||
Query params: `q` (optional prefix filter, case-insensitive, default empty) and `limit` (optional,
|
||||
clamped `1..50`, default 50). `{name}` is allow-listed to `SearchFieldCatalog` fields with
|
||||
`type: "text"` — an unknown field or a non-text field (e.g. an enum) 404s rather than returning an
|
||||
empty list, since enum fields already ship their values inline on `GET /api/v1/search/fields` and
|
||||
never need this endpoint. Returns `SearchFieldValuesResponseModel` (`{ values: string[] }`), a thin
|
||||
pass-through to `ISearchIndex.GetFieldValues` with no server-side caching. Powers the visual rule
|
||||
builder's value-input combobox for text fields; see `docs/decisions.md` 2026-07-23 (#434) and
|
||||
`spa-conventions.md` §12.
|
||||
|
||||
**Param + DTO expansion (#293, cap `search/all-items`)**: no new endpoint — `GET /api/v1/search/all-items`
|
||||
gained two **optional** query params (`pageSize` default 500, clamped 1–1000 via the §1 Logs `Math.Clamp`
|
||||
precedent; `pageNum` 0-based, clamped `0..2_000_000` so `pageNum * pageSize` can't overflow `int` to a 500)
|
||||
|
||||
Reference in New Issue
Block a user