Interface IncidentRestService

  • All Known Implementing Classes:
    IncidentRestServiceImpl

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

      • getIncidents

        @GET
        @Produces("application/json")
        List<IncidentDto> getIncidents​(@Context
                                       javax.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
                                         javax.ws.rs.core.UriInfo uriInfo)