Merge pull request #3011 from stooit/feat/enhance-services-api

Return applications & databases in service API.
This commit is contained in:
Andras Bacsai 2024-08-07 12:02:18 +02:00 committed by GitHub
commit 052565f4e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -413,6 +413,8 @@ public function service_by_uuid(Request $request)
return response()->json(['message' => 'Service not found.'], 404);
}
$service = $service->load(['applications', 'databases']);
return response()->json($this->removeSensitiveData($service));
}