Class TmaGeographicAddressApiController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaGeographicAddressApiController
- All Implemented Interfaces:
GeographicAddressApi
@Controller
public class TmaGeographicAddressApiController
extends TmaBaseController
implements GeographicAddressApi
Default implementation of
GeographicAddressApi- Since:
- 1907
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
BAD_REQUEST, NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<GeographicAddress>createGeographicAddress(@Valid GeographicAddress geographicAddress, @NotNull @Valid String relatedPartyId) org.springframework.http.ResponseEntity<Void>deleteGeographicAddress(String addressId, @NotNull @Valid String relatedPartyId) org.springframework.http.ResponseEntity<List<GeographicAddress>>geographicAddressFind(@Valid String fields, @Valid String baseSiteId, @Valid String relatedPartyId, @Valid String offset, @Valid String limit) org.springframework.http.ResponseEntity<GeographicAddress>getGeographicAddressById(String id, @Valid String fields, @Valid String relatedPartyId) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) org.springframework.http.ResponseEntity<GeographicAddress>updateGeographicAddressById(String id, @Valid GeographicAddress geographicAddress, @NotNull @Valid String relatedPartyId) 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
-
Constructor Details
-
TmaGeographicAddressApiController
public TmaGeographicAddressApiController()
-
-
Method Details
-
geographicAddressFind
@RequestMapping(value="/geographicAddress", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<List<GeographicAddress>> geographicAddressFind(@Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId, @Valid @RequestParam(value="relatedParty.id",required=false) @Valid String relatedPartyId, @Valid @RequestParam(value="offset",required=false) @Valid String offset, @Valid @RequestParam(value="limit",required=false) @Valid String limit) - Specified by:
geographicAddressFindin interfaceGeographicAddressApi
-
createGeographicAddress
@RequestMapping(value="/geographicAddress", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) public org.springframework.http.ResponseEntity<GeographicAddress> createGeographicAddress(@Valid @RequestBody @Valid GeographicAddress geographicAddress, @NotNull @Valid @RequestParam("relatedParty.id") @NotNull @Valid String relatedPartyId) - Specified by:
createGeographicAddressin interfaceGeographicAddressApi
-
getGeographicAddressById
@RequestMapping(value="/geographicAddress/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<GeographicAddress> getGeographicAddressById(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="relatedParty.id",required=false) @Valid String relatedPartyId) - Specified by:
getGeographicAddressByIdin interfaceGeographicAddressApi
-
deleteGeographicAddress
@RequestMapping(value="/geographicAddress/{id}", produces="application/json;charset=utf-8", method=DELETE) public org.springframework.http.ResponseEntity<Void> deleteGeographicAddress(@PathVariable("id") String addressId, @NotNull @Valid @RequestParam(value="relatedParty.id",required=true) @NotNull @Valid String relatedPartyId) - Specified by:
deleteGeographicAddressin interfaceGeographicAddressApi
-
updateGeographicAddressById
@RequestMapping(value="/geographicAddress/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) public org.springframework.http.ResponseEntity<GeographicAddress> updateGeographicAddressById(@PathVariable("id") String id, @Valid @RequestBody @Valid GeographicAddress geographicAddress, @NotNull @Valid @RequestParam(value="relatedParty.id",required=true) @NotNull @Valid String relatedPartyId) - Specified by:
updateGeographicAddressByIdin interfaceGeographicAddressApi
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-