docs(progress): update T41-T43 completion status
- Mark T41, T42, T43 as completed with commit reference - Update progress to 52% (38/74 tasks) - Add T41-T43 context to githistory.md - 24 tests with 100% coverage on tokens router
This commit is contained in:
@@ -128,19 +128,19 @@
|
||||
- [x] T40: Scrivere test per public API endpoints - ✅ Completato (2026-04-07)
|
||||
- 27 test endpoint + 18 test rate limit + 25 test schemas = 70 test totali
|
||||
- Coverage: public_api.py 100%, rate_limit.py 98%
|
||||
- [x] T41: Implementare POST /api/tokens (generate) - ✅ Completato (2026-04-07)
|
||||
- [x] T41: Implementare POST /api/tokens (generate) - ✅ Completato (2026-04-07, commit: 5e89674)
|
||||
- Endpoint: POST /api/tokens con auth JWT
|
||||
- Limite: MAX_API_TOKENS_PER_USER (default 5)
|
||||
- Token plaintext mostrato SOLO in risposta creazione
|
||||
- Hash SHA-256 salvato nel DB
|
||||
- Test: 8 test passanti, 100% coverage
|
||||
- [x] T42: Implementare GET /api/tokens (list) - ✅ Completato (2026-04-07)
|
||||
- [x] T42: Implementare GET /api/tokens (list) - ✅ Completato (2026-04-07, commit: 5e89674)
|
||||
- Endpoint: GET /api/tokens con auth JWT
|
||||
- NO token values in risposta (sicurezza)
|
||||
- Ordinamento: created_at DESC
|
||||
- Solo token attivi (is_active=True)
|
||||
- Test: 7 test passanti
|
||||
- [x] T43: Implementare DELETE /api/tokens/{id} - ✅ Completato (2026-04-07)
|
||||
- [x] T43: Implementare DELETE /api/tokens/{id} - ✅ Completato (2026-04-07, commit: 5e89674)
|
||||
- Endpoint: DELETE /api/tokens/{id} con auth JWT
|
||||
- Soft delete: is_active=False
|
||||
- Verifica ownership (403 se non proprio)
|
||||
|
||||
Reference in New Issue
Block a user