fix(api): add docker_cleanup parameter to stop endpoints (#8899)

This commit is contained in:
Andras Bacsai
2026-03-11 10:18:22 +01:00
committed by GitHub
3 changed files with 35 additions and 3 deletions
@@ -3670,6 +3670,15 @@ class ApplicationsController extends Controller
type: 'string',
)
),
new OA\Parameter(
name: 'docker_cleanup',
in: 'query',
description: 'Perform docker cleanup (prune networks, volumes, etc.).',
schema: new OA\Schema(
type: 'boolean',
default: true,
)
),
],
responses: [
new OA\Response(
@@ -3718,7 +3727,8 @@ class ApplicationsController extends Controller
$this->authorize('deploy', $application);
StopApplication::dispatch($application);
$dockerCleanup = $request->boolean('docker_cleanup', true);
StopApplication::dispatch($application, false, $dockerCleanup);
return response()->json(
[