rso-vaje-6315 / notification-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notification-service

build

Usage

Service consumes following data from Kafka:

{
  "sms": {
    "phoneNumber": "+386xxXXXxxx",
    "content": "Hello world from notification!"
  },
  "email": {
    "email": "person@mail.com",
    "subject": "Hello world!",
    "htmlContent": "<h1>Hello world!</h1><p>Hello world from notification</p>",
    "attachment": {
      "url": "https://download.oracle.com/javaee-archive/jax-rs-spec.java.net/jsr339-experts/att-3593/spec.pdf",
      "name": "jax-rs-spec.pdf"
    }
  }
}

Library provides object ChannelNotification which matches the required schema. If you leave out fields sms or email then this channel won't be used.

About


Languages

Language:Java 94.9%Language:Dockerfile 3.0%Language:Shell 2.1%