Class ModelGraphController

java.lang.Object
com.easy_model.webservice.model.graph.ModelGraphController

@RestController public class ModelGraphController extends Object
  • Constructor Details

    • ModelGraphController

      public ModelGraphController(EntityService entityService, Events events)
  • 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)