Interface TaskRestService

  • All Known Implementing Classes:
    TaskRestServiceImpl

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

      • getTask

        @Path("/{id}")
        TaskResource getTask​(@PathParam("id")
                             java.lang.String id)
      • getTasks

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

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        java.util.List<TaskDto> queryTasks​(TaskQueryDto query,
                                           @QueryParam("firstResult")
                                           java.lang.Integer firstResult,
                                           @QueryParam("maxResults")
                                           java.lang.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)