Class ReviewFeedbackController

java.lang.Object
com.skava.ratingandreviews.web.ReviewFeedbackController

@RestController @RequestMapping("/feedback") public class ReviewFeedbackController extends Object
Class ReviewFeedbackController

This class is the Rest Controller class. All the ReviewFeedback API calls are mapped to this class. It is the starting point of all the ReviewFeedback API calls.

Author:
Infosys Equinox
  • Constructor Details

  • Method Details

    • createReviewFeedback

      @ResponseStatus(CREATED) @PostMapping("") @PreAuthorize("hasValidSession()") public org.springframework.http.ResponseEntity<ReviewFeedbackResponse> createReviewFeedback(@RequestHeader(value="x-auth-token",required=true) String authToken, @RequestParam(required=false,defaultValue="en_US") @IgnoreAudit String locale, @RequestHeader(value="ratingid",required=true) long ratingsReviewsId, @RequestHeader(required=false) String userid, @RequestHeader(value="x-store-id",required=false) String storeId, @RequestBody(required=true) ReviewFeedbackRequest request)
      method CreateReviewFeedback This method is used to Creates the ReviewFeedback .
      Parameters:
      storeId - It contains the storeId associated with ratingandreviews.
      userid - Holds the identifier of the user.
      locale - API Response and error messages will be responded in the mentioned locale. Indicates the locale in which the API response and the error messages will be responded. The locale should be mentioned in the Java standard locale format.
      request - Holds the value for request.
      ratingsReviewsId - holds the id for rating and reviews
      Returns:
      ResponseEntity returns in the form of ResponseEntity.
    • updateReviewFeedback

      @PatchMapping("") @PreAuthorize("hasValidSession()") public org.springframework.http.ResponseEntity<ReviewFeedbackResponse> updateReviewFeedback(@RequestHeader(value="x-auth-token",required=true) String authToken, @RequestHeader(required=false) String userid, @RequestParam(required=false,defaultValue="en_US") @IgnoreAudit String locale, @RequestHeader(value="id",required=true) long ratingsReviewsId, @RequestHeader(value="x-store-id",required=false) String storeId, @RequestBody(required=true) ReviewFeedbackRequest request)
      method UpdateReviewFeedback This method is used to UpdateReviewFeedback.
      Parameters:
      storeId - It contains the storeId associated with ratingandreviews.
      userid - Holds the identifier of the user.
      locale - API Response and error messages will be responded in the mentioned locale. Indicates the locale in which the API response and the error messages will be responded. The locale should be mentioned in the Java standard locale format.
      request - Holds the value for request.
      ratingsReviewsId - holds the id for rating and reviews
      Returns:
      ResponseEntity returns in the form of ResponseEntity.