@@ -0,0 +1,1051 @@
+package main.java.sociam.pybossa.rest;%0A%0Aimport java.io.InputStream;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.QueryParam;%0Aimport javax.ws.rs.core.Response;%0A%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.log4j.PropertyConfigurator;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport sociam.pybossa.config.Config;%0A%0A@Path(%22/getTasks%22)%0Apublic class GetTasks %7B%0A%09private static final Logger logger = Logger.getLogger(sendTaskRun.class);%0A%0A%09@GET%0A%09@Produces(%22application/json%22)%0A%09public Response getTasks(@QueryParam(%22offset%22) Integer offset) %7B%0A%09%09JSONObject result = new JSONObject();%0A%0A%09%09try %7B%0A%0A%09%09%09InputStream stream = sendTaskRun.class.getResourceAsStream(%22/log4j.properties%22);%0A%09%09%09PropertyConfigurator.configure(stream);%0A%09%09%09Config.reload();%0A%09%09%09if (offset == null) %7B%0A%09%09%09%09offset = 0;%0A%09%09%09%7D%0A%0A%09%09%09return Response.status(500).entity(result.toString()).build();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09logger.error(%22error%22, e);%0A%09%09%09return Response.status(500).entity(result.toString()).build();%0A%09%09%7D%0A%09%7D%0A%7D%0A

add getTasks