Interface IncidentRestService

  • All Known Implementing Classes:
    IncidentRestServiceImpl

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

      • getIncidents

        @GET
        @Produces("application/json")
        java.util.List<IncidentDto> getIncidents​(@Context
                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                 @QueryParam("firstResult")
                                                 java.lang.Integer firstResult,
                                                 @QueryParam("maxResults")
                                                 java.lang.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)
      • getIncident

        @Path("/{id}")
        IncidentResource getIncident​(@PathParam("id")
                                     java.lang.String incidentId)