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 Details

    • PublicEndpointsController

      @Autowired public PublicEndpointsController(ArtistService artistService)
      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.