You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.1 KiB
2.1 KiB
+++ title = "Implement GET /api/quotes — paginated list with author filter (case-insensitive) and tag filter" priority = 5 status = "todo" ticket_type = "task" dependencies = ["f3dc74", "a5049d", "d792e2", "175382"] +++
The `quotesdb` API is built with Axum + Tokio, targeting Cloudflare Workers via `workers-rs`. It serves JSON at `/api/*` endpoints and persists data to Cloudflare D1 (production) or a local SQLite file via Turso (development). Source lives in `src/bin/api/`.Shared types and utilities are in src/lib.rs — code placed there must compile for both the host target and wasm32-unknown-unknown.
GET /api/quotes returns a paginated list of quotes. Query parameters:
page(default 1): page number (1-indexed)author: case-insensitive author filter (partial match acceptable)tag: filter to quotes that have this tag
Response shape: {"quotes": [...], "page": N, "total_pages": N, "total_count": N}. Page size is 10.
cargo fmt
cargo check
cargo clippy
cargo test
`feat(quotesdb): implement GET /api/quotes — paginated list with author and tag filters`