Skip to main content

Module acp_handlers

Module acp_handlers 

Source
Expand description

Handlers Actix pour /acps — Story 1.1.

Endpoints :

  • POST /acps : create (admin)
  • GET /acps : list filtré par rôle
  • GET /acps/{id} : get + scope guard
  • PUT /acps/{id} : update (admin + scope)
  • DELETE /acps/{id} : archive (admin + scope)

Le mapping AuthenticatedUser → AcpCaller se fait ici (couche infra), pour garder le use-case 100% testable en pur Rust.

Audit : infrastructure::audit::AuditLogEntry consigne chaque mutation réussie ET chaque échec (pattern Building, traçabilité INV-24).

Structs§

archive_acp
create_acp
get_acp
list_acps
list_acps_with_metrics
update_acp