Class DashboardController

java.lang.Object
org.localify.dashboard.DashboardController

@RestController @RequestMapping("/v1/dashboard") @ConditionalOnWebApplication public class DashboardController extends Object
Controller for dashboard-related endpoints.
  • Constructor Details

    • DashboardController

      public DashboardController(DashboardService dashboardService)
      Constructs a new DashboardController.
      Parameters:
      dashboardService - The dashboard service.
  • Method Details

    • getUserStats

      @GetMapping(value="/user", produces="application/json") @ResponseBody public DashUserStatsResponse getUserStats()
      Gets user statistics.
      Returns:
      The user statistics.
    • getFavoriteStats

      @GetMapping(value="/favorite", produces="application/json") @ResponseBody public DashFavoriteStatsResponse getFavoriteStats()
      Gets favorite statistics.
      Returns:
      The favorite statistics.
    • getCrowdsourcingStats

      @GetMapping(value="/crowdsourcing", produces="application/json") @ResponseBody public DashCrowdsourcingStatsResponse getCrowdsourcingStats()
      Gets crowdsourcing statistics.
      Returns:
      The crowdsourcing statistics.
    • getRecStats

      @GetMapping(value="/recsys", produces="application/json") @ResponseBody public DashRecStatsResponse getRecStats()
      Gets recommendation system statistics.
      Returns:
      The recommendation system statistics.
    • getViewStats

      @GetMapping(value="/view", produces="application/json") @ResponseBody public DashViewStatsResponse getViewStats()
      Gets view statistics.
      Returns:
      The view statistics.
    • getEventsScrapedStats

      @GetMapping(value="/scraped-events", produces="application/json") @ResponseBody public DashEventsCreatedResponse getEventsScrapedStats()
      Gets scraped events statistics.
      Returns:
      The scraped events statistics.
    • getEventsCreatedStats

      @GetMapping(value="/scraped-new-events", produces="application/json") @ResponseBody public DashEventsCreatedResponse getEventsCreatedStats()
      Gets newly created events statistics.
      Returns:
      The newly created events statistics.
    • getArtistsScrapedStats

      @GetMapping(value="/scraped-artists", produces="application/json") @ResponseBody public DashArtistsCreatedResponse getArtistsScrapedStats()
      Gets scraped artists statistics.
      Returns:
      The scraped artists statistics.
    • getArtistsCreatedStats

      @GetMapping(value="/scraped-new-artists", produces="application/json") @ResponseBody public DashArtistsCreatedResponse getArtistsCreatedStats()
      Gets newly created artists statistics.
      Returns:
      The newly created artists statistics.
    • getUpcomingEvents

      @GetMapping(value="/upcoming-events", produces="application/json") @ResponseBody public TimeStatsContainer getUpcomingEvents()
      Gets upcoming events statistics.
      Returns:
      The upcoming events statistics.
    • getFeedback

      @GetMapping(value="/feedback", produces="application/json") @ResponseBody public List<UserFeedbackResponse> getFeedback()
      Gets user feedback.
      Returns:
      A list of user feedback responses.
    • getLandingStats

      @GetMapping(value="/landing-stats", produces="application/json") @ResponseBody public LandingStatsResponse getLandingStats()
      Gets landing page statistics.
      Returns:
      The landing page statistics.
    • getDiscoveredArtists

      @GetMapping(value="/discovered-artists", produces="application/json") @ResponseBody public DiscoveredArtistsResponse getDiscoveredArtists()
      Gets discovered artists statistics.
      Returns:
      The discovered artists statistics.
    • ScrapeCity

      @GetMapping(value="/scrape-city", produces="text/plain") @ResponseBody public org.springframework.http.ResponseEntity<String> ScrapeCity(@RequestParam UUID q)
      Triggers a scrape for a city.
      Parameters:
      q - The ID of the city to scrape.
      Returns:
      A response entity with a success message.
    • ScrapeArtist

      @GetMapping(value="/scrape-artist", produces="text/plain") @ResponseBody public org.springframework.http.ResponseEntity<String> ScrapeArtist(@RequestParam UUID q)
      Triggers a scrape for an artist.
      Parameters:
      q - The ID of the artist to scrape.
      Returns:
      A response entity with a success message.