@Override // @ApiMethod(name = "ratings.add", httpMethod = "post") public void addRating(RatingInfo ratingInfo) throws IllegalArgumentException { ObjectifyService.begin(); ratingManager.add(ratingInfo); }
@Override // @ApiMethod(name = "ratings.get", httpMethod = "post") public List<RatingInfo> getRatings(RouteInfo routeInfo) throws IllegalArgumentException { ObjectifyService.begin(); return ratingManager.getRatings(routeInfo); }