added round removal by admins
This commit is contained in:
@@ -12,6 +12,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.security.RolesAllowed;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Positive;
|
||||
import jakarta.ws.rs.DELETE;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.PUT;
|
||||
import jakarta.ws.rs.Path;
|
||||
@@ -41,4 +42,9 @@ public interface RoundApi {
|
||||
@Operation(summary = "Recomputes a round's score and its impact on leaderboards and future handicaps.")
|
||||
void recompute(@NotNull @Positive @PathParam("roundId") BigInteger roundId);
|
||||
|
||||
@DELETE
|
||||
@SecurityRequirement(name = "basic")
|
||||
@Operation(summary = "Deletes a round.")
|
||||
void remove(@NotNull @Positive @PathParam("roundId") BigInteger roundId);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user