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.
Elijah Voigt bc48924d16 feat(quotesdb): implement API DB layer and all HTTP handlers
DB layer (src/bin/api/db/):
- native.rs: NativeRepository (tokio-rusqlite) implementing all CRUD ops,
  dynamic WHERE for filters, two-phase auth check for update, 13 unit tests
- d1.rs: D1Repository wasm32 stub (all methods return Internal error)
- connection.rs: open() helper — WAL + foreign_keys pragmas
- mod.rs: cfg-gate async_trait (Send on native, ?Send on wasm32)

Handlers (src/bin/api/handlers/mod.rs):
- All 7 routes: GET /api/, random, {id}, list, PUT create, POST update, DELETE
- Router order: random BEFORE {id} (prevents "random" matching as id)
- Auth: X-Auth-Code header validation → 403 on mismatch
- 13 handler unit tests with MockRepo

main.rs: opens DB, runs migrations, wraps in Arc<dyn Repo + Send + Sync>,
  binds on $PORT (default 3000)

Cargo.toml: tower dev-dep for ServiceExt::oneshot in tests

All 32 tests pass (26 api + 6 lib)

Tickets closed: 00aff0 a5049d 6e829e 28e7d9 886bfd 2ce22e 5dbb7d 05f8ae
                d792e2 5d9f5a b20b5a 175382 03bb91

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 months ago
..
00aff0.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
0bc655.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
00d6d7.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
0d84fa.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
0d987f.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
0fbdd5.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
1a274d.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
1ba523.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
1e6a09.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
1f5bb5.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
2ab7a8.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
2c5a57.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
2ce22e.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
2d1371.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
2ec8b1.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
03bb91.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
4a4c26.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
04f865.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5c0c64.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
5cdbd9.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5d9f5a.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5dbb7d.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5e3e37.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
5f5ba0.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
05f8ae.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5f1112.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
6e829e.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
6ed325.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
6f2e18.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
7a0d9f.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
07cafb.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
07feaa.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
08af7a.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
8c87db.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
9b581f.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
9c9546.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
9ef703.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
25c413.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
28e7d9.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
33ed29.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
57fe5e.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
71b1d4.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
75e3f0.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
93f1b6.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
580e66.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
789d0f.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
886bfd.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
893eba.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
3781c9.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5137d7.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
5379eb.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
8892d5.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
75489a.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
93515e.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
166996.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
175382.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
182210.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
372790.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
657836.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
a6bce1.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
a5049d.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
a9534d.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
a23489.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
a91260.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
aa0eab.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
ae6a82.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
ae886f.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
af56a7.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
b3ef98.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
b20b5a.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
b38032.md docs(quotesdb): add XML tags to all tickets for improved LLM guidance 3 months ago
bb1514.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
c3503b.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
ce1e4f.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
d0da0b.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
d3d502.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
d6ba23.md docs(quotesdb): add XML tags to all tickets for improved LLM guidance 3 months ago
d792e2.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
d5839a.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
dc3d2b.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
e2bd9b.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
e8a330.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
e8f5cf.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
ec118c.md feat(quotesdb): add QuoteRepository trait, migrations, and thiserror dependency 3 months ago
efee79.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
f3dc74.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
f9f448.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
f850c6.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
fae330.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
fba598.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago
fc2f51.md feat(quotesdb): implement API DB layer and all HTTP handlers 3 months ago
fc9bfd.md chore(quotesdb): resolve all triage tickets and create implementation tickets 3 months ago