Subissue of EPIC #1938 — REST API Contract-First Migration
Problem
The auth_key context has 4 handlers and 7 response functions defined locally in axum-rest-api-server. It calls tracker_core::authentication::{Key, AddKeyRequest, KeysHandler} directly. Local DTOs (AuthKey, AddKeyForm, KeyParam) should live in rest-api-protocol.
Scope
- Move
AuthKey, AddKeyForm, KeyParam DTOs to rest-api-protocol/src/v1/resources/auth_key.rs
- Define
AuthKeyCommandPort trait in rest-api-application/src/ports/
- Implement
AuthKeyApiService use-case
- Implement
TrackerAuthKeyAdapter in rest-api-runtime-adapter wrapping KeysHandler + clock
- Rewire Axum handlers to use
AuthKeyApiService
Checklist
Subissue of EPIC #1938 — REST API Contract-First Migration
Problem
The
auth_keycontext has 4 handlers and 7 response functions defined locally inaxum-rest-api-server. It callstracker_core::authentication::{Key, AddKeyRequest, KeysHandler}directly. Local DTOs (AuthKey,AddKeyForm,KeyParam) should live inrest-api-protocol.Scope
AuthKey,AddKeyForm,KeyParamDTOs torest-api-protocol/src/v1/resources/auth_key.rsAuthKeyCommandPorttrait inrest-api-application/src/ports/AuthKeyApiServiceuse-caseTrackerAuthKeyAdapterinrest-api-runtime-adapterwrappingKeysHandler+clockAuthKeyApiServiceChecklist
AuthKeyCommandPorttrait definedAuthKeyApiServiceuse-case implementedTrackerAuthKeyAdapterimplemented