Package com.emse.spring.automacorp.model
Class MeasurementController
java.lang.Object
com.emse.spring.automacorp.model.MeasurementController
@CrossOrigin
@RestController
@RequestMapping("/api/sensor")
public class MeasurementController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<Measurement>>org.springframework.http.ResponseEntity<TimeRange>org.springframework.http.ResponseEntity<Integer>uploadMeasurements(org.springframework.web.multipart.MultipartFile file)
-
Constructor Details
-
MeasurementController
-
-
Method Details
-
getStudents
-
uploadMeasurements
@PostMapping(value="/upload", consumes="multipart/form-data") public org.springframework.http.ResponseEntity<Integer> uploadMeasurements(@RequestPart("file") org.springframework.web.multipart.MultipartFile file) throws IOException - Throws:
IOException
-
getAllMeasurements
@GetMapping("/measurements") public org.springframework.http.ResponseEntity<List<Measurement>> getAllMeasurements() -
getTimeRange
-