Class ModelGraphController
java.lang.Object
com.easy_model.webservice.model.graph.ModelGraphController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Long> addGraph(Model model, @Valid ModelGraphData graphData, Principal principal) org.springframework.http.ResponseEntity<String> deleteArea(Model model, ModelGraph graph, Principal principal) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) org.springframework.http.ResponseEntity<Long> updateGraph(Model model, ModelGraph existingGraph, @Valid ModelGraphData updatedGraphData, Principal principal)
-
Constructor Details
-
ModelGraphController
-
-
Method Details
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) -
addGraph
@PostMapping("/api/model/{modelId}/graph") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<Long> addGraph(@PathVariable("modelId") Model model, @RequestBody @Valid @Valid ModelGraphData graphData, Principal principal) -
updateGraph
@PutMapping("/api/model/{modelId}/graph/{graphId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<Long> updateGraph(@PathVariable("modelId") Model model, @PathVariable("graphId") ModelGraph existingGraph, @RequestBody @Valid @Valid ModelGraphData updatedGraphData, Principal principal) -
deleteArea
@DeleteMapping("/api/model/{modelId}/graph/{graphId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<String> deleteArea(@PathVariable("modelId") Model model, @PathVariable("graphId") ModelGraph graph, Principal principal)
-