Search in sources :

Example 6 with ReviewSeries

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

the class ReviewSeriesResource method getReviewSeries.

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

Aggregations

ReviewSeries (com.furyviewer.domain.ReviewSeries)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