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 142cfe2dee..2f3fc4eaf2 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 @@ -114,12 +114,23 @@ class OpsmxSsdController { return opsMxSsdService.updateSsdServiceResponse(version, type, stage, policy, policyId, id, scope, appId, vulnAlert, integratorType, name, data) } + @ApiOperation(value = "Update endpoint in ssd rest service") + @RequestMapping(value = "/{version}/{type}/{source}", method = RequestMethod.PUT) + Object updateSsdService1(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @RequestParam(value = "integratorType", required = false) String integratorType, + @RequestBody(required = false) Object data) { + return opsMxSsdService.updateSsdServiceResponse1(version, type, source, integratorType, data) + } + @ApiOperation(value = "Update cluster details in ssd rest service") @RequestMapping(value = "/{version}/cluster/{id}", method = RequestMethod.PUT) Object updateClusterInSsd(@PathVariable("version") String version, @PathVariable("id") String id, @RequestParam(value = "name", required = false) String name, @RequestParam(value = "account", required = false) String account, + @RequestParam(value = "integratorType", required = false) String integratorType, @RequestParam MultipartFile file) { return updateCluster(file, name, account, version, id) } 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 212d9849ef..b4b3c7865e 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 @@ -226,6 +226,13 @@ interface OpsmxSsdService { @Query("name") String name, @Body Object data) + @PUT("/ssdservice/{version}/{type}/{source}") + Object updateSsdServiceResponse1(@Path('version') String version, + @Path('type') String type, + @Query("source") String source, + @Query("integratorType") String integratorType, + @Body Object data) + @GET("/ssdservice/{version}/{type}/{source}/download/json") Response downloadJsonFile(@Path('version') String version, @Path('type') String type,