Skip to main content

SearchRouteConfig

The SearchRouteConfig route-config array maps the SearchController to the URLs.

Available routes

  • ${base}/{version}/products/search -> maps to SearchController.searchByTerm
  • ${base}/{version}/products/category/{categoryId} -> maps to SearchController.searchByCategory
  • ${base}/{version}/products/suggestions/query -> maps to SearchController.getSearchQuerySuggestions
  • ${base}/{version}/products/suggestions/product -> maps to SearchController.getSearchProductSuggestions
  • ${base}/{version}/products/recommendations -> maps to SearchController.getSearchProductRecommendations