Package org.localify.common
Class PublicEndpointsController
java.lang.Object
org.localify.common.PublicEndpointsController
@RestController
@RequestMapping("/v1/public")
@PermitAll
@ConditionalOnWebApplication
public class PublicEndpointsController
extends Object
Controller for public endpoints that do not require authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionPublicEndpointsController(ArtistService artistService) Constructs a new PublicEndpointsController. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of popular artists.Gets a random quote.
-
Constructor Details
-
PublicEndpointsController
Constructs a new PublicEndpointsController.- Parameters:
artistService- The artist service.
-
-
Method Details
-
getRandomQuote
@GetMapping(value="random-quote", produces="application/json") @ResponseBody public QuoteResponse getRandomQuote()Gets a random quote.- Returns:
- A random quote.
-
getPopularArtists
@GetMapping(value="random-artists", produces="application/json") @ResponseBody public List<PopularArtist> getPopularArtists()Gets a list of popular artists.- Returns:
- A list of popular artists.
-