Class StatsWebService

java.lang.Object
ubic.gemma.rest.StatsWebService

@Service @Path("/stats") public class StatsWebService extends Object
Public statistics endpoints used by the Gemma home page and similar landing widgets. The snapshot is precomputed daily by ubic.gemma.core.analysis.report.HomeStatsRefresher so individual requests do not pay the aggregation cost.
  • Constructor Details

    • StatsWebService

      public StatsWebService()
  • Method Details

    • getHomeStats

      @GET @Path("/home") @Produces("application/json") public ResponseDataObject<HomeStats> getHomeStats()
    • refreshHomeStats

      @POST @Path("/home/refresh") @PreAuthorize("hasAuthority('GROUP_ADMIN')") @Produces("application/json") public ResponseDataObject<HomeStats> refreshHomeStats()