Zugangslinks können gelöscht werden

DELETE-Endpoint im Backend, API-Client-Methode und Löschen-Button
mit Bestätigungsdialog in der Anbieter-Admin-Oberfläche ergänzt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-31 17:07:42 +02:00
parent e79826d37c
commit 8267b32c39
3 changed files with 29 additions and 2 deletions

View File

@@ -184,5 +184,17 @@ public class ProviderAdminResource {
.build();
}
@DELETE
@Path("/access-links/{id}")
@Transactional
public Response deleteAccessLink(@PathParam("id") Long id) {
AccessLink link = AccessLink.findById(id);
if (link == null) {
return Response.status(Response.Status.NOT_FOUND).build();
}
link.delete();
return Response.noContent().build();
}
public record ProviderReportDto(String month, List<MonthlyReportDto> companies, long grandTotalCents) {}
}