Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SpringBootCourses/data-generator-grpc-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

Data generator gRPC microservice

This is data generator gRPC microservice for YouTube course.

This application produces data and sends it to Data consumer gRPC service with gRPC.

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月12日T12:10:05",
 "measurement": 15.5,
 "measurementType": "TEMPERATURE"
}
  • POST /api/v1/data/test/send

Example JSON

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

About

gRPC client for YouTube course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /