feat: register import
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m49s

This commit is contained in:
2026-01-22 22:01:03 +01:00
parent 3d8597869d
commit 197ee0d5b1
9 changed files with 695 additions and 17 deletions

View File

@@ -50,6 +50,16 @@ public class CompetitionEndpoints {
return service.addRegisterComb(securityCtx, id, data, source);
}
@POST
@Path("{id}/registers/{source}")
@Authenticated
@Produces(MediaType.APPLICATION_JSON)
@Operation(hidden = true)
public Uni<List<SimpleRegisterComb>> addRegistersComb(@PathParam("id") Long id, @PathParam("source") String source,
List<RegisterRequestData> data) {
return service.addRegistersComb(securityCtx, id, data, source);
}
@DELETE
@Path("{id}/register/{comb_id}/{source}")
@Authenticated

View File

@@ -20,7 +20,7 @@ public class RegisterRequestData {
private Integer weight;
private Integer weightReal;
private int overCategory;
private Integer overCategory;
private boolean lockEdit = false;
private List<Long> categoriesInscrites;

View File

@@ -8,12 +8,14 @@ import fr.titionfire.ffsaf.utils.Utils;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@RegisterForReflection
public class SimpleRegisterComb {
private long id;