Pet Project I created a REST API service that receives data from a "sensor". Since I don't have a real sensor, RestClient will act as a sensor. That is, a server with a Spring REST API application will run on the computer, and the computer will send HTTP requests to the Spring application as if it were a "sensor".
Spring REST,Spring MVC, Spring Boot, Hibernate, JPA, PostgreSQL, Maven.
- Sensor registration POST http://localhost:8080/sensors/registration
- Adding a measurement from a sensor POST http://localhost:8080/measurements/add
- Getting all measurements GET http://localhost:8080/measurements
- Getting the number of rainy days GET http://localhost:8080/measurements/rainyDaysCount