Skip to content

Commit

Permalink
feat(md): delete delivery config by application (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored May 5, 2020
1 parent f857d38 commit 842854b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ List<Map<String, Object>> getResourceEvents(
@DELETE("/delivery-configs/{name}")
DeliveryConfig deleteManifest(@Path("name") String name);

@DELETE("/application/{application}/config")
DeliveryConfig deleteManifestByAppName(@Path("application") String application);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ DeliveryConfig getConfigBy(@PathVariable("application") String application) {
return keelService.getConfigBy(application);
}

@ApiOperation(
value = "Delete a delivery config manifest for an application",
response = DeliveryConfig.class)
@DeleteMapping(path = "/application/{application}/config")
DeliveryConfig deleteManifestByApp(@PathVariable("application") String application) {
return keelService.deleteManifestByAppName(application);
}

@ApiOperation(value = "Update the status of an environment constraint")
@PostMapping(path = "/application/{application}/environment/{environment}/constraint")
void updateConstraintStatus(
Expand Down

0 comments on commit 842854b

Please sign in to comment.