Class TmaReviewApiController

    • Constructor Detail

      • TmaReviewApiController

        @Autowired
        public TmaReviewApiController​(javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • createReview

        @RequestMapping(value="/review",
                        produces="application/json;charset=utf-8",
                        consumes="application/json;charset=utf-8",
                        method=POST)
        public org.springframework.http.ResponseEntity<Review> createReview​(@Valid @RequestBody
                                                                            @Valid Review review,
                                                                            @Valid @RequestParam(value="productOffering.id",required=true)
                                                                            @Valid java.lang.String productOfferingId,
                                                                            @Valid @RequestParam(value="relatedParty.id",required=true)
                                                                            @Valid java.lang.String relatedPartyId)
        Specified by:
        createReview in interface ReviewApi
      • listReview

        @RequestMapping(value="/review",
                        produces="application/json;charset=utf-8",
                        method=GET)
        public org.springframework.http.ResponseEntity<java.util.List<Review>> listReview​(@NotNull @Valid @RequestParam("productOffering.id")
                                                                                          @NotNull @Valid java.lang.String productOfferingId,
                                                                                          @Valid @RequestParam(value="fields",required=false)
                                                                                          @Valid java.lang.String fields,
                                                                                          @Valid @RequestParam(value="offset",required=false)
                                                                                          @Valid java.lang.Integer offset,
                                                                                          @Valid @RequestParam(value="limit",required=false)
                                                                                          @Valid java.lang.Integer limit)
        Specified by:
        listReview in interface ReviewApi
      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)