added parameter to pointIndex recompute

This commit is contained in:
2024-05-27 12:44:37 -04:00
parent aa9df77208
commit a0b6ff4153

View File

@@ -13,6 +13,7 @@ import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
/**
* @author brian.long@poststats.com
@@ -65,6 +66,8 @@ public interface CoursesAdminApi {
summary = "Intializes golf course point ratings",
description = "Computes the point rating/adjustment for all golf courses and stores the result in the database. The result is a count of updated records."
)
long initGolfCoursePointRatings();
long initGolfCoursePointRatings(
@Parameter(description = "false to compute missing ratings only; true will compute all ratings")
@QueryParam("overwrite") boolean overwrite);
}