fix: return 204 No Content from restart endpoints
All checks were successful
CI / build (push) Successful in 52s
CI / docker (push) Successful in 34s

Empty 200 responses caused JSON parse errors in the API client.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-10 17:41:17 +02:00
parent 6dc5e558a3
commit 0a1e848ef7
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ public class TenantPortalController {
@PostMapping("/server/restart")
public ResponseEntity<Void> restartServer() {
portalService.restartServer();
return ResponseEntity.ok().build();
return ResponseEntity.noContent().build();
}
@GetMapping("/settings")

View File

@@ -113,7 +113,7 @@ public class VendorTenantController {
public ResponseEntity<Void> restart(@PathVariable UUID id) {
try {
vendorTenantService.restartServer(id);
return ResponseEntity.ok().build();
return ResponseEntity.noContent().build();
} catch (IllegalArgumentException e) {
return ResponseEntity.notFound().build();
}