Interface TaskRestService

  • All Known Implementing Classes:
    TaskRestServiceImpl

    @Produces("application/json")
    public interface TaskRestService
    • Method Detail

      • getTasks

        @GET
        @Produces({"application/json","application/hal+json"})
        Object getTasks​(@Context
                        javax.ws.rs.core.Request request,
                        @Context
                        javax.ws.rs.core.UriInfo uriInfo,
                        @QueryParam("firstResult")
                        Integer firstResult,
                        @QueryParam("maxResults")
                        Integer maxResults)
      • queryTasks

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        List<TaskDto> queryTasks​(TaskQueryDto query,
                                 @QueryParam("firstResult")
                                 Integer firstResult,
                                 @QueryParam("maxResults")
                                 Integer maxResults)
        Expects the same parameters as TaskRestService#getTasks(UriInfo, Integer, Integer) (as JSON message body) and allows more than one variable check.
        Parameters:
        query -
        firstResult -
        maxResults -
        Returns:
      • getTasksCount

        @GET
        @Path("/count")
        @Produces("application/json")
        CountResultDto getTasksCount​(@Context
                                     javax.ws.rs.core.UriInfo uriInfo)
      • queryTasksCount

        @POST
        @Path("/count")
        @Consumes("application/json")
        @Produces("application/json")
        CountResultDto queryTasksCount​(TaskQueryDto query)
      • createTask

        @POST
        @Path("/create")
        @Consumes("application/json")
        void createTask​(TaskDto taskDto)