@Produces(value="application/json")
public interface IncidentRestService
Modifier and Type | Method and Description |
---|---|
IncidentResource |
getIncident(String incidentId) |
List<IncidentDto> |
getIncidents(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults)
Exposes the
IncidentQuery interface as a REST service. |
CountResultDto |
getIncidentsCount(javax.ws.rs.core.UriInfo uriInfo) |
static final String PATH
@GET @Produces(value="application/json") List<IncidentDto> getIncidents(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
IncidentQuery
interface as a REST service.uriInfo
- firstResult
- maxResults
- @GET @Path(value="/count") @Produces(value="application/json") CountResultDto getIncidentsCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@Path(value="/{id}") IncidentResource getIncident(@PathParam(value="id") String incidentId)
Copyright © 2021. All rights reserved.