From 4294252adbfde9c888f41e9a4af38fd6aeaa015d Mon Sep 17 00:00:00 2001 From: sriharshakancharla Date: Fri, 22 Sep 2023 08:56:51 +0530 Subject: [PATCH] OP-21153 : Added new query param for application DBOM --- .../spinnaker/gate/controllers/OpsmxSsdController.groovy | 5 +++-- .../spinnaker/gate/services/internal/OpsmxSsdService.groovy | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy index 7f1fc1dc33..318f20c49f 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy @@ -184,8 +184,9 @@ class OpsmxSsdController { @RequestParam(value = "ComponentVersion", required = false) String ComponentVersion, @RequestParam(value = "fromApp", required = false) String fromApp, @RequestParam(value = "service", required = false) String service, - @RequestParam(value = "toApp", required = false) String toApp) { - return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id, fromImage, toImage, fromImageTag, toImageTag, fromAccount, toAccount, kind, active, Vulnerability, Component, ComponentVersion,fromApp,service,toApp) + @RequestParam(value = "toApp", required = false) String toApp, + @RequestParam(value = "dbomType", required = false) String dbomType) { + return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id, fromImage, toImage, fromImageTag, toImageTag, fromAccount, toAccount, kind, active, Vulnerability, Component, ComponentVersion,fromApp,service,toApp, dbomType) } @ApiOperation(value = "Endpoint for ssd services") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy index 078600a0c4..5d4482c6c5 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy @@ -129,7 +129,9 @@ interface OpsmxSsdService { @Query("ComponentVersion") String ComponentVersion, @Query("fromApp") String fromApp, @Query("service") String service, - @Query("toApp") String toApp) + @Query("toApp") String toApp, + @Query("dbomType") String dbomType) + @GET("/ssdservice/{version}/{type}/{source}/{source1}/{source2}/{source3}") Object getSddResponse5(@Path('version') String version, @Path('type') String type,