Skip to content

Commit

Permalink
fix(keel): fix managed controller endpoint (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns committed Oct 17, 2019
1 parent 0e29589 commit e3a38ba
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Resource upsertResource(@RequestBody Resource resource) {
return keelService.upsertResource(resource);
}

@ApiOperation(value = "Ad-hoc validate and diff a resource", response = Resource.class)
@ApiOperation(value = "Ad-hoc validate and diff a resource", response = Map.class)
@RequestMapping(value = "/resources/diff", method = POST)
Map diffResource(@RequestBody Resource resource) {
return keelService.diffResource(resource);
Expand All @@ -88,10 +88,8 @@ DeliveryConfig upsertManifest(@RequestBody DeliveryConfig manifest) {
return keelService.upsertManifest(manifest);
}

@ApiOperation(
value = "Ad-hoc validate and diff a config manifest",
response = DeliveryConfig.class)
@RequestMapping(value = "/delivery-configs", method = POST)
@ApiOperation(value = "Ad-hoc validate and diff a config manifest", response = Map.class)
@RequestMapping(value = "/delivery-configs/diff", method = POST)
Map diffManifest(@RequestBody DeliveryConfig manifest) {
return keelService.diffManifest(manifest);
}
Expand Down

0 comments on commit e3a38ba

Please sign in to comment.