diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxAutopilotController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxAutopilotController.groovy index 5d695f929b..0d34d2c3ba 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxAutopilotController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxAutopilotController.groovy @@ -272,12 +272,13 @@ class OpsmxAutopilotController { @ApiOperation(value = "Endpoint for autopilot rest services") @RequestMapping(value = "/{type}/{source}/{source1}/{source2}/{source3}", method = RequestMethod.GET) Object getAutoResponse6(@PathVariable("type") String type, - @PathVariable("source") String source, - @PathVariable("source1") String source1, - @PathVariable("source2") String source2, - @PathVariable("source3") String source3) { + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @PathVariable("source2") String source2, + @PathVariable("source3") String source3, + @RequestParam(value = "verificationType", required = false) String verificationType) { - return opsmxAutopilotService.getAutoResponse6(type, source, source1, source2, source3) + return opsmxAutopilotService.getAutoResponse6(type, source, source1, source2, source3, verificationType) } @ApiOperation(value = "Endpoint for autopilot rest services") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxAutopilotService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxAutopilotService.groovy index 4899b952ab..5147e9e6f8 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxAutopilotService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxAutopilotService.groovy @@ -126,10 +126,11 @@ interface OpsmxAutopilotService { @GET("/autopilot/{type}/{source}/{source1}/{source2}/{source3}") Object getAutoResponse6(@Path('type') String type, - @Path('source') String source, - @Path('source1') String source1, - @Path('source2') String source2, - @Path('source3') String source3) + @Path('source') String source, + @Path('source1') String source1, + @Path('source2') String source2, + @Path('source3') String source3, + @Query("verificationType") String verificationType) @GET("/autopilot/{type}/{source}/{source1}/{source2}/{source3}/{source4}") Object getAutoResponse7(@Path('type') String type,