public Response getAvailabilitySummary(
@ApiParam("Id of the resource to query") @PathParam("id") int resourceId,
@Context HttpHeaders headers) {
fetchResource(resourceId);
ResourceAvailabilitySummary summary = resMgr.getAvailabilitySummary(caller,resourceId);
AvailabilitySummary as = new AvailabilitySummary(resourceId,summary);
Response.ResponseBuilder builder = Response.ok(as);
MediaType type = headers.getAcceptableMediaTypes().get(0);