@Path("/routePatches")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML + Q, MediaType.TEXT_XML + Q })
public AlertPatchResponse getRoutePatches(@QueryParam("agency") String agency,
@QueryParam("id") String id) {
AlertPatchResponse response = new AlertPatchResponse();
Collection<AlertPatch> alertPatches =
alertPatchService.getRoutePatches(new AgencyAndId(agency, id));
for (AlertPatch alertPatch : alertPatches) {
response.addAlertPatch(alertPatch);
}
return response;
}