Class TmaReviewApiController
- java.lang.Object
-
- de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
-
- de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaReviewApiController
-
- All Implemented Interfaces:
ReviewApi
@Controller public class TmaReviewApiController extends TmaBaseController implements ReviewApi
Default implementation ofReviewApi- Since:
- 1907
-
-
Constructor Summary
Constructors Constructor Description TmaReviewApiController(javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Review>createReview(@Valid Review review, @Valid java.lang.String productOfferingId, @Valid java.lang.String relatedPartyId)voidinitBinder(org.springframework.web.bind.WebDataBinder binder)org.springframework.http.ResponseEntity<java.util.List<Review>>listReview(@NotNull @Valid java.lang.String productOfferingId, @Valid java.lang.String fields, @Valid java.lang.Integer offset, @Valid java.lang.Integer limit)-
Methods inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
encodeUrl, filter, getDataMapper, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getRequestUrl, getUnsuccessfulResponse, getUnsuccessfulResponseWithErrorRepresentation, handleInternalError, handleModelNotFoundException, handleTmaApiErrorInternal, init, sanitize, sanitizeQueryString
-
-
-
-
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:
createReviewin interfaceReviewApi
-
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:
listReviewin interfaceReviewApi
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-
-