getProductSuggestions
@GET
@Produces(value="application/vnd.epages.v1+json, application/json")
public javax.ws.rs.core.Response getProductSuggestions(@PathParam(value="shopId")
java.lang.String shopId,
@QueryParam(value="locale")
java.util.Locale locale,
@QueryParam(value="query") @NotBlank
java.lang.String query,
@QueryParam(value="limit") @Range(min=1L,max=100L,message="limit must be between {min} and {max}") @DefaultValue(value="10")
int limit)
Returns suggestions for a given product search query.
- Parameters:
shopId
- The id of the shop.
locale
- The ISO 639-1 for language code and ISO 3166-1 for country code. (Example: de_DE).
query
- The search query. (Example: A query string for the product 'Jack Wolfskin Blizzard Jacket' could be
'Jac'). If no query is specified, a wildcard search is triggered.
limit
- Maximum number of entries to be returned (between 1 and 100). Defaults to 10.
- HTTP:
- 200 Request ok., 400 If the limit parameter is out of range
- ReturnWrapped:
- com.epages.suggest.SuggestResponse
- RequestHeader:
- Authorization OAuth = ...