Class QuoteController

java.lang.Object
com.espacogeek.geek.controllers.QuoteController

@Controller public class QuoteController extends Object
  • Constructor Details

    • QuoteController

      public QuoteController()
  • Method Details

    • getQuoteAndRandomArtwork

      @QueryMapping(name="quote") public QuoteArtwork getQuoteAndRandomArtwork()
      Fetches a random quote along with a random artwork URL.
      Returns:
      A QuoteArtwork object containing the quote, author, and artwork URL.
      Throws:
      GenericException - if no artwork is found.