Class SegmentController

java.lang.Object
com.easy_model.webservice.model.segment.SegmentController

@RestController public class SegmentController extends Object
  • Constructor Details

  • Method Details

    • addSegment

      @PostMapping("/api/model/{modelId}/segment") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<Long> addSegment(@PathVariable("modelId") Model model, @Valid @RequestBody @Valid SegmentData segmentData, Principal principal)
    • updateSegment

      @PutMapping("/api/model/{modelId}/segment/{segmentId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<String> updateSegment(@PathVariable("modelId") Model model, @PathVariable("segmentId") Segment segment, @Valid @RequestBody @Valid SegmentData segmentData, Principal principal)
    • deleteSegment

      @DeleteMapping("/api/model/{modelId}/segment/{segmentId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<String> deleteSegment(@PathVariable("modelId") Model model, @PathVariable("segmentId") Segment segment, Principal principal)
      Deletes a segment
    • addSegmentWithVariableValues

      @PostMapping("/api/model/{modelId}/segmentwithvariablevalues") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<Long> addSegmentWithVariableValues(@PathVariable("modelId") Model model, @Valid @RequestBody @Valid SegmentWithVariableValues segmentWithVariableValues, Principal principal)