package ge.edu.freeuni.sdp.todo.core;

import ge.edu.freeuni.sdp.todo.data.RepositoryFactory;
import ge.edu.freeuni.sdp.todo.data.TaskEntity;
import ge.edu.freeuni.sdp.todo.data.Repository;

import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

@Path("ping")
@Consumes( { MediaType.APPLICATION_JSON})
@Produces( { MediaType.APPLICATION_JSON})
public class PingService {

  @GET
  public Response get() {
    return Response.ok().build();
  }

}

@@ -528,10 +528,187 @@
 );%0A  %7D%0A%0A
+  @GET%0A  @Path(%22%7Bid%7D%22)%0A  public TaskDo getJson(@PathParam(%22id%22) String id) %7B%0A    TaskDo task = new TaskDo();%0A    task.setId(id);%0A    task.setText(%22test%22);%0A    return task;%0A  %7D%0A%0A
 %7D%0A

add /webapi/ping/{id} json service. freeuni-sdp/xo-webui#11