Class StatisticsController

java.lang.Object
ch.admin.bit.jeap.reaction.observer.web.api.StatisticsController

@RestController @RequestMapping("/api") public class StatisticsController extends Object
  • Constructor Details

    • StatisticsController

      public StatisticsController(ReactionObserverProperties properties, ch.admin.bit.jeap.reaction.observer.domain.ObservedReactionsAggregatedRepository observedReactionsAggregatedRepository)
  • Method Details

    • getStatisticsForComponent

      @PreAuthorize("hasAnyRole(\'reaction-observer-read\')") @GetMapping("/statistics/{component}") public org.springframework.http.ResponseEntity<List<ch.admin.bit.jeap.reaction.observer.domain.ObservedReactionsAggregatedStatistics>> getStatisticsForComponent(@PathVariable String component)