@@ -0,0 +1,1264 @@
+package com.kodcu.rapid.path;%0A%0Aimport com.kodcu.rapid.config.DockerClient;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.PathParam;%0Aimport javax.ws.rs.QueryParam;%0Aimport javax.ws.rs.client.WebTarget;%0Aimport javax.ws.rs.core.Response;%0Aimport java.util.Objects;%0Aimport java.util.concurrent.ExecutionException;%0A%0A/**%0A * Created by hakan on 15/02/2017.%0A */%0A@Path(%22tasks%22)%0Apublic class Task extends DockerClient %7B%0A%0A    @GET%0A    public String listTasks(@QueryParam(%22filters%22) String filters)%0A            throws ExecutionException, InterruptedException %7B%0A%0A        WebTarget target = resource().path(%22tasks%22);%0A%0A        if (Objects.nonNull(filters))%0A            target = target.queryParam(%22filters%22, filters);%0A%0A        Response response = getResponse(target);%0A        String entity = response.readEntity(String.class);%0A        response.close();%0A        return entity;%0A    %7D%0A%0A    @GET%0A    @Path(%22%7Bid%7D%22)%0A    public String inspectTask(@PathParam(%22id%22) String id)%0A            throws ExecutionException, InterruptedException %7B%0A%0A        WebTarget target = resource().path(%22tasks%22).path(id);%0A%0A        Response response = getResponse(target);%0A        String entity = response.readEntity(String.class);%0A        response.close();%0A        return entity;%0A    %7D%0A%7D%0A

add tasks queries