Pular para o conteúdo principal

Email Templates

Doc da API: ver APIs

Diagrama de sequencia

sequenceDiagram
participant Client as Admin
participant Guard as JwtAuthGuard
participant Ctrl as EmailTemplateV1Controller
participant Svc as GlobalEmailTemplateService
participant AuthDB as PostgreSQL Auth

Client->>Guard: GET /api/v1/email-templates/:templateKey Bearer
Guard-->>Ctrl: actor
Ctrl->>Svc: get template
Svc->>AuthDB: select global_email_template
Svc-->>Client: 200 template

Client->>Ctrl: PATCH /api/v1/email-templates/:templateKey
Ctrl->>Svc: update template
Svc->>AuthDB: update
Svc-->>Client: 200 template atualizado