added AdministrativeApi
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
Reference in New Issue
Block a user