示例#1
0
 @RequestMapping(method = RequestMethod.GET, value = "/{id}/child-containers")
 @ResponseStatus(HttpStatus.OK)
 @ResponseBody
 public List<StorageContainerSummary> getChildContainers(@PathVariable("id") Long containerId) {
   RequestEvent<ContainerQueryCriteria> req =
       new RequestEvent<>(new ContainerQueryCriteria(containerId));
   ResponseEvent<List<StorageContainerSummary>> resp = storageContainerSvc.getChildContainers(req);
   resp.throwErrorIfUnsuccessful();
   return resp.getPayload();
 }