Skip to content

Commit

Permalink
feat(managed): endpoint for getting artifact versions per environment
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Dec 18, 2019
1 parent 0267943 commit 740e0d9
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 @@ -53,6 +53,9 @@ List<Map<String, Object>> getResourceEvents(
@GET("/delivery-configs/{name}")
DeliveryConfig getManifest(@Path("name") String name);

@GET("/delivery-configs/{name}/artifacts")
List<Map<String, Object>> getManifestArtifacts(@Path("name") String name);

@POST("/delivery-configs")
DeliveryConfig upsertManifest(@Body DeliveryConfig manifest);

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

@ApiOperation(
value = "Get the status of each version of each artifact in each environment",
response = List.class)
@GetMapping(path = "/delivery-configs/{name}/artifacts")
List<Map<String, Object>> getManifestArtifacts(@PathVariable("name") String name) {
return keelService.getManifestArtifacts(name);
}

@ApiOperation(
value = "Create or update a delivery config manifest",
response = DeliveryConfig.class)
Expand Down

0 comments on commit 740e0d9

Please sign in to comment.