diff --git a/src/main/java/com/poststats/golf/rs/api/AdministrativeApi.java b/src/main/java/com/poststats/golf/rs/api/AdministrativeApi.java new file mode 100644 index 0000000..9970a90 --- /dev/null +++ b/src/main/java/com/poststats/golf/rs/api/AdministrativeApi.java @@ -0,0 +1,42 @@ +package com.poststats.golf.rs.api; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.responses.ApiResponses; +import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; + +/** + * @author brian.long@poststats.com + */ +@Path("/golf/admin") +@Tag(name = "Administrative API") +public interface AdministrativeApi { + + @PUT + @Path("/init/pointIndex/season/{season}") + @Operation( + summary = "Transforms the legacy pointID to the new pointIndexID for the virtual tournament." + ) + @ApiResponses({ + @ApiResponse(responseCode = "200", description = "Success"), + }) + void transformScoringPointSeason(@Parameter(description = "A year") + @NotNull @Min(2000) @PathParam("season") int season); + + @PUT + @Path("/init/pointIndex/season") + @Operation( + summary = "Transforms the legacy pointID to the new pointIndexID for the virtual tournament." + ) + @ApiResponses({ + @ApiResponse(responseCode = "200", description = "Success"), + }) + void transformScoringPointSeason(); + +}