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.
47 lines
1.6 KiB
Markdown
47 lines
1.6 KiB
Markdown
---
|
|
# quotesdb-45sn
|
|
title: Write api/README.md, api/docs/PLANNING.md, api/docs/ARCHITECTURE.md
|
|
status: completed
|
|
type: task
|
|
priority: low
|
|
created_at: 2026-03-10T23:32:05Z
|
|
updated_at: 2026-03-10T23:32:12Z
|
|
blocked_by:
|
|
- quotesdb-kh9l
|
|
---
|
|
|
|
<context>
|
|
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`.
|
|
</context>
|
|
|
|
<goal>
|
|
Write the three documentation files for the API domain:
|
|
1. `README.md` — what the API does, how to run it (`cargo run`), how to test it, license, Claude Code disclaimer
|
|
2. `docs/PLANNING.md` — development phases and work log for the API sub-domain
|
|
3. `docs/ARCHITECTURE.md` — API component overview: router, handlers, database layer, auth, OpenAPI spec
|
|
</goal>
|
|
|
|
<constraints>
|
|
- README must include the dual Apache-2.0 + MIT license notice.
|
|
- README must include a disclaimer that the software was written with Claude Code (model: claude-sonnet-4-6).
|
|
- ARCHITECTURE.md must describe how the API binary wires together (router → handlers → db layer).
|
|
- PLANNING.md must reflect the actual work done (link to ticket IDs where appropriate).
|
|
</constraints>
|
|
|
|
<validation>
|
|
Run in order from the `quotesdb/` directory:
|
|
|
|
```sh
|
|
cargo fmt
|
|
cargo check
|
|
cargo clippy
|
|
cargo test
|
|
```
|
|
</validation>
|
|
|
|
<commit>
|
|
`docs(quotesdb): write api README, PLANNING.md, and ARCHITECTURE.md`
|
|
</commit>
|