Class SpectraMeasurementJsonController

java.lang.Object
gov.llnl.gnem.apps.coda.calibration.application.web.SpectraMeasurementJsonController

@RestController @CrossOrigin @RequestMapping(value={"/api/v1/spectra-measurements","/api/v1/spectra-measurements/"}, name="SpectraMeasurementJsonController", produces="application/json") public class SpectraMeasurementJsonController extends Object
  • Constructor Details

  • Method Details

    • getMeasurements

      @GetMapping(name="getMeasurements", path={"/all","/all/"}) public List<SpectraMeasurement> getMeasurements()
    • getMeasurementsMetadata

      @GetMapping(name="getMeasurementsMetadata", path={"/metadata/all","/metadata/all/"}) public List<SpectraMeasurement> getMeasurementsMetadata()
    • getMeasurementsMetadataByIds

      @PostMapping(name="getMeasurementsMetadataById", path={"/metadata/by-ids","/metadata/by-ids/"}) public List<SpectraMeasurement> getMeasurementsMetadataByIds(@RequestBody List<Long> ids)
    • computeSpectraForEventId

      @PostMapping(value={"/reference-spectra","/reference-spectra/"}, name="computeSpectraForEventId") public org.springframework.http.ResponseEntity<?> computeSpectraForEventId(@RequestBody String eventId, org.springframework.validation.BindingResult result)
    • computeValidationSpectraForEventId

      @PostMapping(value={"/validation-spectra","/validation-spectra/"}, name="computeValidationSpectraForEventId") public org.springframework.http.ResponseEntity<?> computeValidationSpectraForEventId(@RequestBody String eventId, org.springframework.validation.BindingResult result)
    • computeSpectra

      @PostMapping(value={"/compute-spectra","/compute-spectra/"}, name="computeSpectra") public org.springframework.http.ResponseEntity<?> computeSpectra(@RequestBody Double moment, @RequestBody Double apparentStress, @RequestBody Double start, @RequestBody Double stop, @RequestBody Integer count, org.springframework.validation.BindingResult result)
    • getFitSpectraForEventId

      @PostMapping(value={"/fit-spectra","/fit-spectra/"}, name="getFitSpectraForEventId") public org.springframework.http.ResponseEntity<?> getFitSpectraForEventId(@RequestBody String eventId, org.springframework.validation.BindingResult result)
    • getService

      public SpectraMeasurementService getService()
    • setService

      public void setService(SpectraMeasurementService service)