Skip to content

Commit

Permalink
feat(md): get config by app endpoint (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored Apr 22, 2020
1 parent 19cf3c0 commit f5c4ac7
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 @@ -75,6 +75,9 @@ List<Map<String, Object>> getResourceEvents(
@Headers("Accept: application/json")
Map validateManifest(@Body DeliveryConfig manifest);

@GET("/application/{application}/config")
DeliveryConfig getConfigBy(@Path("application") String application);

@GET("/application/{application}/environment/{environment}/constraints")
List<ConstraintState> getConstraintState(
@Path("application") String application,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ List<ConstraintState> getConstraintState(
return keelService.getConstraintState(application, environment, Integer.valueOf(limit));
}

@ApiOperation(
value = "Get the delivery config associated with an application",
response = DeliveryConfig.class)
@GetMapping(path = "/application/{application}/config")
DeliveryConfig getConfigBy(@PathVariable("application") String application) {
return keelService.getConfigBy(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 f5c4ac7

Please sign in to comment.