Skip to content

Commit

Permalink
feat(md): delete delivery configs (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored Feb 4, 2020
1 parent 9935d8d commit a42dbb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ List<Map<String, Object>> getResourceEvents(
@POST("/delivery-configs")
DeliveryConfig upsertManifest(@Body DeliveryConfig manifest);

@DELETE("/delivery-configs/{name}")
DeliveryConfig deleteManifest(@Path("name") String name);

@POST("/delivery-configs/diff")
List<Map> diffManifest(@Body DeliveryConfig manifest);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ DeliveryConfig upsertManifest(@RequestBody DeliveryConfig manifest) {
return keelService.upsertManifest(manifest);
}

@ApiOperation(value = "Delete a delivery config manifest", response = DeliveryConfig.class)
@DeleteMapping(path = "/delivery-configs/{name}")
DeliveryConfig deleteManifest(@PathVariable("name") String name) {
return keelService.deleteManifest(name);
}

@ApiOperation(value = "Ad-hoc validate and diff a config manifest", response = Map.class)
@PostMapping(
path = "/delivery-configs/diff",
Expand Down

0 comments on commit a42dbb7

Please sign in to comment.