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));
}
Aggregations