Skip to content

This application produces data and sends it to Data analyser service

Notifications You must be signed in to change notification settings

JavaCoDED78/data-producer-service

Repository files navigation

Data generator microservice

codecov

This application produces data and sends it to Data analyser service with Apache Kafka.

Usage

To start an application you need to pass variables to .env file.

You can use example .env.example file with some predefined environments.

Application is running on port 8081.

All insignificant features (checkstyle, build check, dto validation) are not presented.

Application has two endpoints:

  • POST /api/v1/data/send

Example JSON

{
  "sensorId": 1,
  "timestamp": "2023-09-12T12:10:05",
  "measurement": 15.5,
  "measurementType": "TEMPERATURE"
}
  • POST /api/v1/data/test/send

Example JSON

{
  "delayInSeconds": 3,
  "measurementTypes": [
    "POWER",
    "VOLTAGE",
    "TEMPERATURE"
  ]
}

About

This application produces data and sends it to Data analyser service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published