Class SearchController

java.lang.Object
org.localify.search.SearchController

@RestController @RequestMapping("/v1/search") @ConditionalOnWebApplication public class SearchController extends Object
Controller for handling search-related requests.
  • Constructor Details

    • SearchController

      public SearchController(SearchService searchService, UserService userService)
      Constructs a new SearchController.
      Parameters:
      searchService - The search service.
      userService - The user service.
  • Method Details

    • searchAll

      @GetMapping(value="", produces="application/json") @ResponseBody public SearchApiResponse searchAll(@AuthenticationPrincipal UserDetailsImpl user, @Valid @Valid SpotifySearchQuery query)
      Searches for all types of entities.
      Parameters:
      user - The authenticated user.
      query - The search query.
      Returns:
      A response containing lists of all found entities.