Search in sources :

Example 6 with SeriesStats

use of com.furyviewer.domain.SeriesStats in project FuryViewer by TheDoctor-95.

the class SeriesStatsResource method getSeriesStats.

/**
 * GET  /series-stats/:id : get the "id" seriesStats.
 *
 * @param id the id of the seriesStats to retrieve
 * @return the ResponseEntity with status 200 (OK) and with body the seriesStats, or with status 404 (Not Found)
 */
@GetMapping("/series-stats/{id}")
@Timed
public ResponseEntity<SeriesStats> getSeriesStats(@PathVariable Long id) {
    log.debug("REST request to get SeriesStats : {}", id);
    SeriesStats seriesStats = seriesStatsRepository.findOne(id);
    return ResponseUtil.wrapOrNotFound(Optional.ofNullable(seriesStats));
}
Also used : SeriesStats(com.furyviewer.domain.SeriesStats) Timed(com.codahale.metrics.annotation.Timed)

Aggregations

SeriesStats (com.furyviewer.domain.SeriesStats)6 Timed (com.codahale.metrics.annotation.Timed)3 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 Transactional (org.springframework.transaction.annotation.Transactional)3 BadRequestAlertException (com.furyviewer.web.rest.errors.BadRequestAlertException)1 URI (java.net.URI)1