@Path(value="/patch") public class AlertPatcher extends Object
| Constructor and Description |
|---|
AlertPatcher() |
| Modifier and Type | Method and Description |
|---|---|
AlertPatchCreationResponse |
createPatches(AlertPatchSet alertPatches) |
AlertPatchResponse |
getRoutePatches(String agency,
String id)
Return a list of all patches that apply to a given route
|
AlertPatchResponse |
getStopPatches(String agency,
String id)
Return a list of all patches that apply to a given stop
|
@GET
@Path(value="/stopPatches")
@Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"})
public AlertPatchResponse getStopPatches(@QueryParam(value="agency")
String agency,
@QueryParam(value="id")
String id)
@GET
@Path(value="/routePatches")
@Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"})
public AlertPatchResponse getRoutePatches(@QueryParam(value="agency")
String agency,
@QueryParam(value="id")
String id)
@RolesAllowed(value="user") @POST @Path(value="/patch") @Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"}) @Consumes(value={"application/json","application/xml","text/xml"}) public AlertPatchCreationResponse createPatches(AlertPatchSet alertPatches)
Copyright © 2018. All rights reserved.