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.4 KiB
2.4 KiB
| title | status | type | priority | created_at | updated_at | blocked_by | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Implement PUT /api/quotes — create quote, generate UUID v4 ID, generate auth_code if not provided, return 201 with auth_code | completed | task | normal | 2026-03-10T23:32:05Z | 2026-03-10T23:32:12Z |
|
Shared types and utilities are in src/lib.rs — code placed there must compile for both the host target and wasm32-unknown-unknown.
PUT /api/quotes creates a new quote. The request body is JSON; auth_code is optional — if omitted, one is generated. The response is 201 with the full quote object and the auth_code (always returned so the user can save it).
Request body: { text, author, source?, tags?, date?, auth_code? }
Response 201: { quote: {...}, auth_code: "word-word-word-word" }
cargo fmt
cargo check
cargo clippy
cargo test
`feat(quotesdb): implement PUT /api/quotes — create quote with UUID v4 and auth_code`