Package org.localify.search
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 Summary
ConstructorsConstructorDescriptionSearchController(SearchService searchService, UserService userService) Constructs a new SearchController. -
Method Summary
Modifier and TypeMethodDescriptionsearchAll(UserDetailsImpl user, @Valid SpotifySearchQuery query) Searches for all types of entities.
-
Constructor Details
-
SearchController
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.
-