How appacta/acta-pg-api works
ACTA is a stateless REST API for managing organizations, users, and the PDCA improvement cycle. The main workflow is authenticated client requests routed through controllers to domain services, which enforce authorization and business rules, map DTOs to entities, and persist through JPA repositories. Domain capabilities span onboarding, problem analysis and planning, task execution, and outcome verification. The README describes these layers and capabilities; several domain nodes therefore use existing directories where implementation files were not sampled, and unsampled internal calls are not asserted.
Main entry points: controller REST endpoints · AuthService.java Auth and scope · BaseService.java CRUD template · repository JPA repositories
Components 21
Identity and access
- Firebase filter
src/main/java/br/com/acta/common/config/firebase/FirebaseAuthFilter.java - Auth and scope
src/main/java/br/com/acta/service/AuthService.java - User lookup
src/main/java/br/com/acta/repository/padrao/UsuarioRepository.java
Organization management
- Onboarding and invites
src/main/java/br/com/acta/service/OnboardingService.java - Users and staff
src/main/java/br/com/acta/service/UsuarioService.java - Company records
src/main/java/br/com/acta/service/EmpresaService.java - Contact details
src/main/java/br/com/acta/service/EmailService.java - Invitation email
src/main/java/br/com/acta/common/client/BrevoClient.java
PDCA improvement cycle
- PDCA cycles
src/main/java/br/com/acta/service/CicloService.java - Problem analysis
src/main/java/br/com/acta/service/ProblemaService.java - Priorities and plans
src/main/java/br/com/acta/service - Tasks and dependencies
src/main/java/br/com/acta/service/TarefaService.java - Goals and training
src/main/java/br/com/acta/service - Results and alerts
src/main/java/br/com/acta/service
API runtime
- REST endpoints
src/main/java/br/com/acta/controller - CRUD template
src/main/java/br/com/acta/service/base/BaseService.java - JPA repositories
src/main/java/br/com/acta/repository - Domain entities
src/main/java/br/com/acta/entity - Health check
src/main/java/br/com/acta/service/HealthService.java
Other components
- API client
- PostgreSQL
Connections 25
- API client → REST endpoints: sends requests
README.md - REST endpoints → Firebase filter: protected by
README.md - REST endpoints → Auth and scope: routes operations
README.md - Firebase filter → Auth and scope: provides identity
README.md - Auth and scope → User lookup: looks up users
src/main/java/br/com/acta/service/AuthService.java - Auth and scope → Users and staff: checks scope
README.md - REST endpoints → Onboarding and invites: routes onboarding
README.md - REST endpoints → Company records: routes company work
README.md - REST endpoints → Users and staff: routes people work
README.md - REST endpoints → Contact details: routes contacts
README.md - Onboarding and invites → Invitation email: sends invitations
- REST endpoints → PDCA cycles: routes cycle work
README.md - REST endpoints → Problem analysis: routes problem work
README.md - REST endpoints → Priorities and plans: routes planning work
README.md - REST endpoints → Tasks and dependencies: routes task work
src/main/java/br/com/acta/controller/TarefaController.java - REST endpoints → Goals and training: routes follow-up
README.md - REST endpoints → Results and alerts: routes verification
README.md - REST endpoints → Health check: routes health check
README.md - Users and staff → CRUD template: inherits CRUD flow
src/main/java/br/com/acta/service/UsuarioService.java - Tasks and dependencies → CRUD template: reuses CRUD flow
src/main/java/br/com/acta/service/TarefaService.java - CRUD template → Auth and scope: configures actor
src/main/java/br/com/acta/service/base/BaseService.java - CRUD template → JPA repositories: persists entities
src/main/java/br/com/acta/service/base/BaseService.java - JPA repositories → Domain entities: loads and saves
src/main/java/br/com/acta/repository/padrao/TarefaRepository.java - JPA repositories → PostgreSQL: accesses database
README.md - Health check → PostgreSQL: checks database
README.md