Class VocApiController

java.lang.Object
com.bytedesk.voc.controller.VocApiController

@RestController @RequestMapping("/api/v1/voc") public class VocApiController extends Object
  • Field Details

  • Constructor Details

    • VocApiController

      public VocApiController()
  • Method Details

    • createFeedback

      @PostMapping("/feedback") @PreAuthorize("isAuthenticated()") public org.springframework.http.ResponseEntity<FeedbackEntity> createFeedback(@RequestParam String content, @RequestParam String type, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails)
    • createReply

      @PostMapping("/feedback/{feedbackId}/reply") @PreAuthorize("isAuthenticated()") public org.springframework.http.ResponseEntity<ReplyEntity> createReply(@PathVariable Long feedbackId, @RequestParam String content, @RequestParam(required=false) Long parentId, @RequestParam(required=false) Boolean internal, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails)
    • updateStatus

      @PostMapping("/feedback/{feedbackId}/status") @PreAuthorize("hasRole(\'ADMIN\')") public org.springframework.http.ResponseEntity<Void> updateStatus(@PathVariable Long feedbackId, @RequestParam String status)
    • assignFeedback

      @PostMapping("/feedback/{feedbackId}/assign") @PreAuthorize("hasRole(\'ADMIN\')") public org.springframework.http.ResponseEntity<Void> assignFeedback(@PathVariable Long feedbackId, @RequestParam Long assignedTo)