diff --git a/WikiRating/WebContent/WEB-INF/web.xml b/WikiRating/WebContent/WEB-INF/web.xml
index 46d129a..f5127db 100644
--- a/WikiRating/WebContent/WEB-INF/web.xml
+++ b/WikiRating/WebContent/WEB-INF/web.xml
@@ -1,21 +1,23 @@
WikiRating
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
+
+
Jersey Web Application
com.sun.jersey.spi.container.servlet.ServletContainer
1
Jersey Web Application
/engine/*
\ No newline at end of file
diff --git a/WikiRating/pom.xml b/WikiRating/pom.xml
index e955b62..083c209 100644
--- a/WikiRating/pom.xml
+++ b/WikiRating/pom.xml
@@ -1,82 +1,90 @@
4.0.0
WikiRating
WikiRating
0.0.1-SNAPSHOT
war
src
maven-compiler-plugin
3.3
1.7
1.7
maven-war-plugin
2.6
WebContent
false
org.wikidata.wdtk
wdtk-wikibaseapi
0.6.0
+
+
+ org.glassfish.main.extras
+ glassfish-embedded-all
+ 4.0
+ provided
+
+
com.tinkerpop.blueprints
blueprints-core
2.6.0
com.fasterxml.jackson.core
jackson-databind
2.6.3
net.sourceforge
jwbf
3.1.0
com.orientechnologies
orientdb-jdbc
2.1.16
asm
asm
3.3.1
com.sun.jersey
jersey-bundle
1.19
org.json
json
20140107
com.sun.jersey
jersey-server
1.19
com.sun.jersey
jersey-core
1.19
\ No newline at end of file
diff --git a/WikiRating/src/main/java/controllers/PageInfo.java b/WikiRating/src/main/java/controllers/PageInfo.java
new file mode 100644
index 0000000..4d5f92c
--- /dev/null
+++ b/WikiRating/src/main/java/controllers/PageInfo.java
@@ -0,0 +1,51 @@
+package main.java.controllers;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.server.JSONP;
+
+
+@Path("employee")
+public class PageInfo {
+
+ @GET
+ @Path("search1")
+ @Produces("application/json")
+
+ public Response getEmployeeDetails(@QueryParam("param1") int employeeId,@QueryParam("param2") String employeeName)
+ {
+ System.out.println(employeeName+" is a good person having an ID of "+employeeId);
+
+ String m=employeeName+" is a good person having an ID of "+employeeId;
+
+
+ return Response.status(200).entity(m).build();
+
+ }
+
+ @GET
+ @Path("search")
+ @JSONP(queryParam="callback")
+ @Produces({"application/x-javascript"})
+ public String getAllTestData(@QueryParam("callback") String callback,@QueryParam("param1") int PageId,@QueryParam("param2") String PageName) {
+
+
+ System.out.println("I got executed!");
+ System.out.println(callback);
+ System.out.println(PageId);
+ System.out.println(PageName);
+ //String sJson="{\"data\":{\"id\":1}}";
+ //String sJson="{\"id\":1}";
+ String sJson="{\"PageName\":78,\"Ratings\":1.0}";
+ String result=callback+"("+sJson+");";
+ //return Response.status(200).entity("{ foo: 'bar' }").build();
+ return result;
+ //return Response.ok("mycallback({status: 'success'})").header("Access-Control-Allow-Origin", true).build();
+ }
+
+}