Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

A microservice that sends notifications to users via email and sms.

License

Notifications You must be signed in to change notification settings

tim-hoffmann/notification-service

Repository files navigation

Notification Microservice

Email Microservice written in Node.js that supports localized email templates build with mjml.

This is work in progress!

API Design

Method Path Description
POST /v1/:tenantId/templates Creates new template with default locale if none is specified
GET /v1/:tenantId/templates Finds all templates with pagination
GET /v1/:tenantId/templates/:id Finds one by id
PATCH /v1/:tenantId/templates/:id Updates template and localized fields of default locale
DELETE /v1/:tenantId/templates/:id Deletes templates and all locales
POST /v1/:tenantId/templates/:id/locales Creates a new template locale for the given template
GET /v1/:tenantId/templates/:id/locales Finds all locales of the template
GET /v1/:tenantId/templates/:id/locales/:locale Finds one locale of the template
PATCH /v1/:tenantId/templates/:id/locales/:locale Updates locale of the template
DELETE /v1/:tenantId/templates/:id/locales/:locale Deletes locale of the template