added AdministrativeApi

This commit is contained in:
2024-03-27 10:52:44 -04:00
parent f302b65f47
commit 5480a951b7

View File

@@ -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();
}