Class StoreController
java.lang.Object
de.hybris.platform.ycommercewebservices.v1.controller.BaseController
de.hybris.platform.ycommercewebservices.v1.controller.StoreController
Main Controller for available data
-
Field Summary
Fields inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns all possible card types.
Sample call : http://localhost:9001/rest/v1/cardtypes
Request method :GETreturns all currencies defined for the current store.
Sample call : http://localhost:9001/rest/v1/{SITE}/currencies
Request method :GETreturns all delivery countries defined for the curent store.
Sample call : http://localhost:9001/rest/v1/{SITE}/deliverycountries
Request method :GETreturns all languages defined for the base store.
Sample call : http://localhost:9001/rest/v1/{SITE}/languages
Request method :GETreturns all possible titles (code and name).
Sample call : http://localhost:9001/rest/v1/titles
Request method :GETMethods inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
handleErrorInternal, handleModelNotFoundException, sanitize
-
Constructor Details
-
StoreController
public StoreController()
-
-
Method Details
-
getLanguages
@RequestMapping(value="/{baseSiteId}/languages", method=GET) @ResponseBody public LanguageDataList getLanguages()returns all languages defined for the base store.
Sample call : http://localhost:9001/rest/v1/{SITE}/languages
Request method :GET- Returns:
- list of languages
-
getCurrencies
@RequestMapping(value="/{baseSiteId}/currencies", method=GET) @ResponseBody public CurrencyDataList getCurrencies()returns all currencies defined for the current store.
Sample call : http://localhost:9001/rest/v1/{SITE}/currencies
Request method :GET- Returns:
- list of currencies
-
getDeliveryCountries
@RequestMapping(value="/{baseSiteId}/deliverycountries", method=GET) @ResponseBody public CountryDataList getDeliveryCountries()returns all delivery countries defined for the curent store.
Sample call : http://localhost:9001/rest/v1/{SITE}/deliverycountries
Request method :GET- Returns:
- list of countries
-
getTitles
@RequestMapping(value="/{baseSiteId}/titles", method=GET) @ResponseBody public TitleDataList getTitles()returns all possible titles (code and name).
Sample call : http://localhost:9001/rest/v1/titles
Request method :GET- Returns:
- list of titles
-
getCardTypes
@RequestMapping(value="/{baseSiteId}/cardtypes", method=GET) @ResponseBody public CardTypeDataList getCardTypes()returns all possible card types.
Sample call : http://localhost:9001/rest/v1/cardtypes
Request method :GET- Returns:
- list of card types
-