feat(api): require POST for state-changing endpoints

Make start/stop/restart, deploy, enable/disable, and server validate
POST-only, with GET returning 405. Server validate accepts optional
install and uses ValidateAndInstallServerJob. Update OpenAPI and tests.
This commit is contained in:
Andras Bacsai committed 2026-07-19 11:42:04 +02:00
1 parent e2c2180f4f
commit 0633b543ee
16 files changed
+297 -605

No files matched your search

+1 -1
View File
@@ -397,7 +397,7 @@ describe('API mutation audit logging', function () {
$response = $this->withHeaders([
'Authorization' => 'Bearer '.$token,
])->getJson('/api/v1/enable');
])->postJson('/api/v1/enable');
$response->assertStatus(403);
});