Interface IncidentRestService

All Known Implementing Classes:
IncidentRestServiceImpl

@Produces("application/json") public interface IncidentRestService
Author:
Roman Smirnov
  • Field Details

  • Method Details

    • getIncidents

      @GET @Produces("application/json") List<IncidentDto> getIncidents(@Context jakarta.ws.rs.core.UriInfo uriInfo, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") Integer maxResults)
      Exposes the IncidentQuery interface as a REST service.
      Parameters:
      uriInfo -
      firstResult -
      maxResults -
      Returns:
    • getIncidentsCount

      @GET @Path("/count") @Produces("application/json") CountResultDto getIncidentsCount(@Context jakarta.ws.rs.core.UriInfo uriInfo)
    • getIncident

      @Path("/{id}") IncidentResource getIncident(@PathParam("id") String incidentId)