Class SyntheticCollectionJsonController
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.application.web.SyntheticCollectionJsonController
@RestController
@CrossOrigin
@RequestMapping(value="/api/v1/synthetics",
name="SyntheticCollectionJsonController",
produces="application/json")
public class SyntheticCollectionJsonController
extends Object
-
Constructor Summary
ConstructorDescriptionSyntheticCollectionJsonController
(SyntheticService syntheticService, SyntheticCodaGenerationService genService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
amplitudeCorrectedSyntheticsQuery
(String eventId, String stationName, Double lowFreq, Double highFreq, Double sampleRate) org.springframework.http.ResponseEntity<?>
delete
(SyntheticCoda synthetic) org.springframework.http.ResponseEntity<?>
generateSynthetic
(@Valid SyntheticGenerationRequest request, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
getAll()
org.springframework.http.ResponseEntity<?>
getBatch
(Collection<Long> ids) org.springframework.http.ResponseEntity<?>
getSyntheticCoda
(Long id) void
setSyntheticService
(SyntheticService syntheticService) org.springframework.http.ResponseEntity<?>
update
(SyntheticCoda storedSyntheticCoda, @Valid SyntheticCoda synthetic, org.springframework.validation.BindingResult result)
-
Constructor Details
-
SyntheticCollectionJsonController
@Autowired public SyntheticCollectionJsonController(SyntheticService syntheticService, SyntheticCodaGenerationService genService)
-
-
Method Details
-
getAll
@GetMapping(value={"/all","/all/"}, name="getAll") public org.springframework.http.ResponseEntity<?> getAll() -
getBatch
@GetMapping(value="/batch/{ids}", name="getBatch") public org.springframework.http.ResponseEntity<?> getBatch(@PathVariable("ids") Collection<Long> ids) -
getSyntheticCoda
@GetMapping(value="/single/{id}", name="getSyntheticCoda") public org.springframework.http.ResponseEntity<?> getSyntheticCoda(@PathVariable("id") Long id) -
amplitudeCorrectedSyntheticsQuery
@PostMapping(value={"/amplitude-corrected/query","/amplitude-corrected/query/"}, name="amplitudeCorrectedSyntheticsQuery") public org.springframework.http.ResponseEntity<?> amplitudeCorrectedSyntheticsQuery(@RequestParam(required=false) String eventId, @RequestParam(required=false) String stationName, @RequestParam(required=false) Double lowFreq, @RequestParam(required=false) Double highFreq, @RequestParam(required=false) Double sampleRate) -
update
@PutMapping(name="update") public org.springframework.http.ResponseEntity<?> update(@ModelAttribute SyntheticCoda storedSyntheticCoda, @Valid @RequestBody @Valid SyntheticCoda synthetic, org.springframework.validation.BindingResult result) -
delete
@DeleteMapping(name="delete") public org.springframework.http.ResponseEntity<?> delete(@ModelAttribute SyntheticCoda synthetic) -
generateSynthetic
@PostMapping(value={"/generate","/generate/"}, name="generateSynthetic") public org.springframework.http.ResponseEntity<?> generateSynthetic(@Valid @RequestBody @Valid SyntheticGenerationRequest request, org.springframework.validation.BindingResult result) -
getSyntheticService
-
setSyntheticService
-