feat: affiliation request

This commit is contained in:
2024-07-16 12:45:11 +02:00
parent d03ec054d2
commit dae32e3607
3 changed files with 47 additions and 11 deletions

View File

@@ -287,4 +287,8 @@ public class AffiliationService {
public Uni<?> deleteAffiliation(long id) {
return Panache.withTransaction(() -> repository.deleteById(id));
}
public Uni<?> deleteReqAffiliation(long id) {
return Panache.withTransaction(() -> repositoryRequest.deleteById(id));
}
}

View File

@@ -52,6 +52,14 @@ public class AffiliationEndpoints {
return service.getRequest(id);
}
@DELETE
@Path("/request/{id}")
@RolesAllowed({"federation_admin"})
@Produces(MediaType.APPLICATION_JSON)
public Uni<?> getDelAffRequest(@PathParam("id") long id) {
return service.deleteReqAffiliation(id);
}
@PUT
@Path("/request/save")
@RolesAllowed({"federation_admin"})