Skip to content

Commit 563159c

Browse files
committed
Use ValidatedQuery for GET list handlers
Import extractors::ValidatedQuery so Axum reads and validates query parameters from the query string
1 parent 08d3637 commit 563159c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

HTTP_SPECS_CORRECTIONS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
- analytics_v1: keep POST (complex analytics). Optional future rename: `/metrics` or `/search`.
4646
- category_v1, tag_v1: public list stays `GET /list`; admin search uses `POST /search`.
4747

48+
## Controller validation
49+
- GET list handlers should consume `ValidatedQuery` instead of `ValidatedJson`, and their modules must import `extractors::ValidatedQuery` so Axum pulls parameters from the query string and validates them consistently.
50+
4851
## Minimal Shapes
4952
- List simple: `GET /{module}/v1?status=published&page=1`
5053
- Search complex: `POST /{module}/v1/search { filters... }`

0 commit comments

Comments
 (0)